public interface BaseEntityManagerHandler
EntityManager and EntityManagerFactory access| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the underlying
EntityManager |
com.querydsl.jpa.impl.JPADeleteClause |
delete(com.querydsl.core.types.EntityPath<?> entity)
Returns a delete clause
|
void |
detach(IEntity entity)
Detaches the given entity from the underlying EntityManager
|
<E extends IEntity> |
find(java.lang.Class<E> entityClass,
java.lang.Long id)
Finds the given entity by id
|
void |
flush()
Flushes the underlying
EntityManager |
org.cyclos.impl.utils.persistence.DBQuery<?> |
from(com.querydsl.core.types.EntityPath<?>... from)
Creates a new query, assigning the from clause
|
<E extends IEntity> |
getReference(java.lang.Class<E> entityClass,
java.lang.Long id)
Returns an unitialized proxy (reference) for the given class and id
|
org.cyclos.impl.utils.persistence.CacheFlusher |
newCacheFlusher()
Returns a new
CacheFlusher |
void |
persist(IEntity entity)
Persists the given entity
|
void |
persist(IEntity entity,
boolean flush)
Persists the given entity, optionally flushing the underlying entity manager
|
void |
refresh(IEntity entity)
Refreshes the current state of the given entity
|
void |
remove(IEntity entity)
Removes the given entity, flushing the underlying entity manager
|
void |
remove(IEntity entity,
boolean flush)
Removes the given entity, optionally flushing the underlying entity manager
|
<T> org.cyclos.impl.utils.persistence.DBQuery<T> |
selectFrom(com.querydsl.core.types.EntityPath<T> from)
Creates a new query, assigning the from clause and select clauses
|
org.cyclos.impl.utils.persistence.DBQuery<?> |
subQuery(com.querydsl.core.types.EntityPath<?>... from)
Creates a new subquery, assigning the from clause
|
com.querydsl.jpa.impl.JPAUpdateClause |
update(com.querydsl.core.types.EntityPath<?> entity)
Returns an update clause
|
void clear()
EntityManagercom.querydsl.jpa.impl.JPADeleteClause delete(com.querydsl.core.types.EntityPath<?> entity)
void detach(IEntity entity)
<E extends IEntity> E find(java.lang.Class<E> entityClass, java.lang.Long id) throws EntityNotFoundException
EntityNotFoundExceptionvoid flush()
EntityManagerorg.cyclos.impl.utils.persistence.DBQuery<?> from(com.querydsl.core.types.EntityPath<?>... from)
<E extends IEntity> E getReference(java.lang.Class<E> entityClass, java.lang.Long id)
org.cyclos.impl.utils.persistence.CacheFlusher newCacheFlusher()
CacheFlushervoid persist(IEntity entity)
void persist(IEntity entity, boolean flush)
void refresh(IEntity entity)
void remove(IEntity entity) throws ConstraintViolatedOnRemoveException
void remove(IEntity entity, boolean flush) throws ConstraintViolatedOnRemoveException
<T> org.cyclos.impl.utils.persistence.DBQuery<T> selectFrom(com.querydsl.core.types.EntityPath<T> from)
org.cyclos.impl.utils.persistence.DBQuery<?> subQuery(com.querydsl.core.types.EntityPath<?>... from)
com.querydsl.jpa.impl.JPAUpdateClause update(com.querydsl.core.types.EntityPath<?> entity)