public class QueryLogEntityManager
extends java.lang.Object
Constructor and Description |
---|
QueryLogEntityManager(EntityManager entityManager,
java.lang.String level) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
contains(java.lang.Object entity) |
<T> <any> |
createEntityGraph(java.lang.Class<T> rootType) |
<any> |
createEntityGraph(java.lang.String graphName) |
Query |
createNamedQuery(java.lang.String name) |
<T> <any> |
createNamedQuery(java.lang.String name,
java.lang.Class<T> resultClass) |
StoredProcedureQuery |
createNamedStoredProcedureQuery(java.lang.String name) |
Query |
createNativeQuery(java.lang.String sqlString) |
Query |
createNativeQuery(java.lang.String sqlString,
java.lang.Class resultClass) |
Query |
createNativeQuery(java.lang.String sqlString,
java.lang.String resultSetMapping) |
<T> <any> |
createQuery(<any> criteriaQuery) |
Query |
createQuery(CriteriaDelete deleteQuery) |
Query |
createQuery(CriteriaUpdate updateQuery) |
Query |
createQuery(java.lang.String qlString) |
<T> <any> |
createQuery(java.lang.String qlString,
java.lang.Class<T> resultClass) |
StoredProcedureQuery |
createStoredProcedureQuery(java.lang.String procedureName) |
StoredProcedureQuery |
createStoredProcedureQuery(java.lang.String procedureName,
java.lang.Class... resultClasses) |
StoredProcedureQuery |
createStoredProcedureQuery(java.lang.String procedureName,
java.lang.String... resultSetMappings) |
void |
detach(java.lang.Object entity) |
<T> T |
find(java.lang.Class<T> entityClass,
java.lang.Object primaryKey) |
<T> T |
find(java.lang.Class<T> entityClass,
java.lang.Object primaryKey,
LockModeType lockMode) |
<T> T |
find(java.lang.Class<T> entityClass,
java.lang.Object primaryKey,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties) |
<T> T |
find(java.lang.Class<T> entityClass,
java.lang.Object primaryKey,
java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
flush() |
CriteriaBuilder |
getCriteriaBuilder() |
java.lang.Object |
getDelegate() |
<any> |
getEntityGraph(java.lang.String graphName) |
<T> java.util.List<<any>> |
getEntityGraphs(java.lang.Class<T> entityClass) |
EntityManagerFactory |
getEntityManagerFactory() |
FlushModeType |
getFlushMode() |
LockModeType |
getLockMode(java.lang.Object entity) |
Metamodel |
getMetamodel() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
<T> T |
getReference(java.lang.Class<T> entityClass,
java.lang.Object primaryKey) |
EntityTransaction |
getTransaction() |
boolean |
isJoinedToTransaction() |
boolean |
isOpen() |
void |
joinTransaction() |
void |
lock(java.lang.Object entity,
LockModeType lockMode) |
void |
lock(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties) |
<T> T |
merge(T entity) |
void |
persist(java.lang.Object entity) |
void |
refresh(java.lang.Object entity) |
void |
refresh(java.lang.Object entity,
LockModeType lockMode) |
void |
refresh(java.lang.Object entity,
LockModeType lockMode,
java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
refresh(java.lang.Object entity,
java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
remove(java.lang.Object entity) |
void |
setFlushMode(FlushModeType flushMode) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value) |
<T> T |
unwrap(java.lang.Class<T> cls) |
public QueryLogEntityManager(EntityManager entityManager, java.lang.String level)
public void persist(java.lang.Object entity)
public <T> T merge(T entity)
public void remove(java.lang.Object entity)
public <T> T find(java.lang.Class<T> entityClass, java.lang.Object primaryKey)
public <T> T find(java.lang.Class<T> entityClass, java.lang.Object primaryKey, java.util.Map<java.lang.String,java.lang.Object> properties)
public <T> T find(java.lang.Class<T> entityClass, java.lang.Object primaryKey, LockModeType lockMode)
public <T> T find(java.lang.Class<T> entityClass, java.lang.Object primaryKey, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)
public <T> T getReference(java.lang.Class<T> entityClass, java.lang.Object primaryKey)
public void flush()
public void setFlushMode(FlushModeType flushMode)
public FlushModeType getFlushMode()
public void lock(java.lang.Object entity, LockModeType lockMode)
public void lock(java.lang.Object entity, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)
public void refresh(java.lang.Object entity)
public void refresh(java.lang.Object entity, java.util.Map<java.lang.String,java.lang.Object> properties)
public void refresh(java.lang.Object entity, LockModeType lockMode)
public void refresh(java.lang.Object entity, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)
public void clear()
public void detach(java.lang.Object entity)
public boolean contains(java.lang.Object entity)
public LockModeType getLockMode(java.lang.Object entity)
public void setProperty(java.lang.String propertyName, java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public Query createQuery(java.lang.String qlString)
public <T> <any> createQuery(<any> criteriaQuery)
public Query createQuery(CriteriaUpdate updateQuery)
public Query createQuery(CriteriaDelete deleteQuery)
public <T> <any> createQuery(java.lang.String qlString, java.lang.Class<T> resultClass)
public Query createNamedQuery(java.lang.String name)
public <T> <any> createNamedQuery(java.lang.String name, java.lang.Class<T> resultClass)
public Query createNativeQuery(java.lang.String sqlString)
public Query createNativeQuery(java.lang.String sqlString, java.lang.Class resultClass)
public Query createNativeQuery(java.lang.String sqlString, java.lang.String resultSetMapping)
public StoredProcedureQuery createNamedStoredProcedureQuery(java.lang.String name)
public StoredProcedureQuery createStoredProcedureQuery(java.lang.String procedureName)
public StoredProcedureQuery createStoredProcedureQuery(java.lang.String procedureName, java.lang.Class... resultClasses)
public StoredProcedureQuery createStoredProcedureQuery(java.lang.String procedureName, java.lang.String... resultSetMappings)
public void joinTransaction()
public boolean isJoinedToTransaction()
public <T> T unwrap(java.lang.Class<T> cls)
public java.lang.Object getDelegate()
public void close()
public boolean isOpen()
public EntityTransaction getTransaction()
public EntityManagerFactory getEntityManagerFactory()
public CriteriaBuilder getCriteriaBuilder()
public Metamodel getMetamodel()
public <T> <any> createEntityGraph(java.lang.Class<T> rootType)
public <any> createEntityGraph(java.lang.String graphName)
public <any> getEntityGraph(java.lang.String graphName)
public <T> java.util.List<<any>> getEntityGraphs(java.lang.Class<T> entityClass)