vle.domain
Class PersistableDomain

java.lang.Object
  extended by vle.domain.PersistableDomain
Direct Known Subclasses:
Annotation, CRaterRequest, IdeaBasket, Journal, JournalEntry, Node, PeerReviewGate, PeerReviewWork, StepWork, StepWorkCache, UserInfo, VLEStatistics

public abstract class PersistableDomain
extends Object

Author:
hirokiterashima

Field Summary
protected static String fromQuery
           
 
Constructor Summary
PersistableDomain()
           
 
Method Summary
 void delete()
          Deletes this Environments in the datastore.
static PersistableDomain getById(Long id, Class<?> clazz)
          Returns an Environment with the specified id or null if no such Environment exists.
static List<? extends PersistableDomain> getList(Class<?> clazz)
          Returns a list of all Environment in the datastore.
protected abstract  Class<?> getObjectClass()
           
 void saveOrUpdate()
          Saves this environment to the datastore in a transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromQuery

protected static String fromQuery
Constructor Detail

PersistableDomain

public PersistableDomain()
Method Detail

getObjectClass

protected abstract Class<?> getObjectClass()

saveOrUpdate

public void saveOrUpdate()
Saves this environment to the datastore in a transaction


delete

public void delete()
Deletes this Environments in the datastore.


getList

public static List<? extends PersistableDomain> getList(Class<?> clazz)
Returns a list of all Environment in the datastore.

Parameters:
class1 -
Returns:

getById

public static PersistableDomain getById(Long id,
                                        Class<?> clazz)
Returns an Environment with the specified id or null if no such Environment exists.

Parameters:
id -
clazz -
Returns:


Copyright © 2012. All Rights Reserved.