vle.domain
Class PersistableDomain
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromQuery
protected static String fromQuery
PersistableDomain
public PersistableDomain()
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.