public interface EntityManagerHandler extends BaseEntityManagerHandler
EntityManager and EntityManagerFactory access| Modifier and Type | Method and Description |
|---|---|
void |
checkAccess(IEntity entity)
Enforces the given entity to be accessible by the currently authenticated user
|
<E extends IInternalNamedEntity> |
find(java.lang.Class<E> entityClass,
java.lang.String internalName)
Finds the given entity by internal name in the current network.
If the entity was not found and entityClass is a INamedEntity then it try to find by name. |
<E extends IInternalNamedEntity> |
find(java.lang.Class<E> entityClass,
java.lang.String internalName,
SimpleEntity ownerEntity)
Finds the given entity by internal name in the current network filtering by the specified owner entity.
If the entity was not found and entityClass is a INamedEntity then it try to find by name. |
java.lang.String |
getQualifiedInternalName(IInternalNamedEntity entity)
Resolves the fully qualified internal name, from the topmost owner entity.
|
clear, delete, detach, find, flush, from, getReference, newCacheFlusher, persist, persist, refresh, remove, remove, selectFrom, subQuery, updatevoid checkAccess(IEntity entity)
<E extends IInternalNamedEntity> E find(java.lang.Class<E> entityClass, java.lang.String internalName) throws EntityNotFoundException
INamedEntity then it try to find by name.
Supports nesting of internal names, like finding a transfer type by account_type/transfer_type.EntityNotFoundException<E extends IInternalNamedEntity> E find(java.lang.Class<E> entityClass, java.lang.String internalName, SimpleEntity ownerEntity) throws EntityNotFoundException
INamedEntity then it try to find by name.
Supports nesting of internal names, like finding a transfer type by account_type/transfer_type.ownerEntity - the entity used as a filterEntityNotFoundExceptionjava.lang.String getQualifiedInternalName(IInternalNamedEntity entity)