|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityManager
EntityManager interface.
| Method Summary | ||
|---|---|---|
|
copy(T entity)
Copies an entity and the entire tree of its children. |
|
void |
delete(java.lang.Object entity)
Deletes an entity from the persistence backend |
|
java.lang.Object |
find(WmId primaryKey)
Looks up an entity by its id |
|
|
getAll(java.lang.Class<T> entity)
Returns all entities of the specified type. |
|
WmId |
getId(java.lang.Object entity)
Get ID from the given entity. |
|
|
getInstance(java.lang.Class<T> entityClass)
Returns a newly created instance of the requested Class or an instance implementing the requested interface if the Class is an interface. |
|
java.lang.Object |
getInstance(java.lang.String entityClassname)
Returns a newly created instance of the requested Class or an instance implementing the requested interface if the Class is an interface. |
|
WmId |
getWmId(java.lang.String idString)
Returns a WmId object that corresponds to the idString. |
|
boolean |
isManageable(java.lang.Class<?> clazz)
Determine if the given class is manageable by the Entity Manager. |
|
|
persist(T entity)
Persists an entity which is not yet persisted (i.e. |
|
void |
removeProperty(java.lang.Object entity,
java.lang.String property)
Remove named property from the persistent image of the given entity. |
|
|
save(T entity)
Saves an entity that was persisted before (i.e. |
|
| Method Detail |
|---|
WmId getId(java.lang.Object entity)
entity - entity to get the ID from.
WmId getWmId(java.lang.String idString)
idString - a String-representation of a WmId
java.lang.Object find(WmId primaryKey)
primaryKey - the id identifying the entity to load
<T> T persist(T entity)
T - The type of the entity to persistentity - The entity to persist
<T> T copy(T entity)
throws DomainException
T - the type of the entity to copyentity - the entity to copy
DomainException - when something went wrong while copying the entity
void delete(java.lang.Object entity)
throws DomainException
entity - The entity to be deleted
DomainException - when something went wrong while deleting the entity
<T> T save(T entity)
throws DomainException
T - The type of the entity to persistentity - The entity to persist
DomainException - when something went wrong while saving the entity<T> java.util.Set<T> getAll(java.lang.Class<T> entity)
T - The requested typeentity - the Class of the requested type
<T> T getInstance(java.lang.Class<T> entityClass)
persist() method.
T - The type of Class to instantiateentityClass - The Class to get an instance of (is generally the interface of the required Class)
java.lang.Object getInstance(java.lang.String entityClassname)
persist() method.
entityClassname - The Class to get an instance of (is generally the interface of the required
Class)
boolean isManageable(java.lang.Class<?> clazz)
clazz - class to check for manageability.
true if the class can be managed by the EM.
void removeProperty(java.lang.Object entity,
java.lang.String property)
entity - entity for property removal.property - name of the property to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||