Package io.jmix.eclipselink.impl
Class JmixEntityManager
java.lang.Object
io.jmix.eclipselink.impl.JmixEntityManager
- All Implemented Interfaces:
javax.persistence.EntityManager
-
Constructor Summary
ConstructorDescriptionJmixEntityManager
(javax.persistence.EntityManager delegate, org.springframework.beans.factory.ListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
boolean
<T> javax.persistence.EntityGraph<T>
createEntityGraph
(Class<T> rootType) javax.persistence.EntityGraph<?>
createEntityGraph
(String graphName) javax.persistence.Query
createNamedQuery
(String name) <T> javax.persistence.TypedQuery<T>
createNamedQuery
(String name, Class<T> resultClass) javax.persistence.StoredProcedureQuery
javax.persistence.Query
createNativeQuery
(String sqlString) javax.persistence.Query
createNativeQuery
(String sqlString, Class resultClass) javax.persistence.Query
createNativeQuery
(String sqlString, String resultSetMapping) javax.persistence.Query
createQuery
(String qlString) <T> javax.persistence.TypedQuery<T>
createQuery
(String qlString, Class<T> resultClass) javax.persistence.Query
createQuery
(javax.persistence.criteria.CriteriaDelete deleteQuery) <T> javax.persistence.TypedQuery<T>
createQuery
(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery) javax.persistence.Query
createQuery
(javax.persistence.criteria.CriteriaUpdate updateQuery) javax.persistence.StoredProcedureQuery
createStoredProcedureQuery
(String procedureName) javax.persistence.StoredProcedureQuery
createStoredProcedureQuery
(String procedureName, Class... resultClasses) javax.persistence.StoredProcedureQuery
createStoredProcedureQuery
(String procedureName, String... resultSetMappings) protected void
deepCopyIgnoringNulls
(Object source, Object dest, Set<Object> visited) Copies all property values from source to dest excluding null values.void
<T> T
<T> T
<T> T
<T> T
find
(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode, Map<String, Object> properties) protected <T> T
findOrCreate
(Class<T> entityClass, Object id) void
flush()
javax.persistence.criteria.CriteriaBuilder
javax.persistence.EntityGraph<?>
getEntityGraph
(String graphName) <T> List<javax.persistence.EntityGraph<? super T>>
getEntityGraphs
(Class<T> entityClass) javax.persistence.EntityManagerFactory
javax.persistence.FlushModeType
javax.persistence.LockModeType
getLockMode
(Object entity) javax.persistence.metamodel.Metamodel
<T> T
getReference
(Class<T> entityClass, Object primaryKey) javax.persistence.EntityTransaction
boolean
boolean
isOpen()
void
void
void
<T> T
merge
(T object) void
void
void
void
void
void
protected void
void
setFlushMode
(javax.persistence.FlushModeType flushMode) void
setProperty
(String propertyName, Object value) <T> T
-
Constructor Details
-
JmixEntityManager
public JmixEntityManager(javax.persistence.EntityManager delegate, org.springframework.beans.factory.ListableBeanFactory beanFactory)
-
-
Method Details
-
persist
- Specified by:
persist
in interfacejavax.persistence.EntityManager
-
merge
public <T> T merge(T object) - Specified by:
merge
in interfacejavax.persistence.EntityManager
-
remove
- Specified by:
remove
in interfacejavax.persistence.EntityManager
-
find
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
- Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
@Nullable public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode) - Specified by:
find
in interfacejavax.persistence.EntityManager
-
find
@Nullable public <T> T find(Class<T> entityClass, Object primaryKey, javax.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
find
in interfacejavax.persistence.EntityManager
-
getReference
- Specified by:
getReference
in interfacejavax.persistence.EntityManager
-
flush
public void flush()- Specified by:
flush
in interfacejavax.persistence.EntityManager
-
setFlushMode
public void setFlushMode(javax.persistence.FlushModeType flushMode) - Specified by:
setFlushMode
in interfacejavax.persistence.EntityManager
-
getFlushMode
public javax.persistence.FlushModeType getFlushMode()- Specified by:
getFlushMode
in interfacejavax.persistence.EntityManager
-
lock
- Specified by:
lock
in interfacejavax.persistence.EntityManager
-
lock
public void lock(Object entity, javax.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
lock
in interfacejavax.persistence.EntityManager
-
refresh
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
refresh
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
refresh
- Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
refresh
public void refresh(Object entity, javax.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
refresh
in interfacejavax.persistence.EntityManager
-
clear
public void clear()- Specified by:
clear
in interfacejavax.persistence.EntityManager
-
detach
- Specified by:
detach
in interfacejavax.persistence.EntityManager
-
contains
- Specified by:
contains
in interfacejavax.persistence.EntityManager
-
getLockMode
- Specified by:
getLockMode
in interfacejavax.persistence.EntityManager
-
setProperty
- Specified by:
setProperty
in interfacejavax.persistence.EntityManager
-
getProperties
- Specified by:
getProperties
in interfacejavax.persistence.EntityManager
-
createQuery
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
-
createQuery
public <T> javax.persistence.TypedQuery<T> createQuery(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery) - Specified by:
createQuery
in interfacejavax.persistence.EntityManager
-
createQuery
public javax.persistence.Query createQuery(javax.persistence.criteria.CriteriaUpdate updateQuery) - Specified by:
createQuery
in interfacejavax.persistence.EntityManager
-
createQuery
public javax.persistence.Query createQuery(javax.persistence.criteria.CriteriaDelete deleteQuery) - Specified by:
createQuery
in interfacejavax.persistence.EntityManager
-
createQuery
- Specified by:
createQuery
in interfacejavax.persistence.EntityManager
-
createNamedQuery
- Specified by:
createNamedQuery
in interfacejavax.persistence.EntityManager
-
createNamedQuery
- Specified by:
createNamedQuery
in interfacejavax.persistence.EntityManager
-
createNativeQuery
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
-
createNativeQuery
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
-
createNativeQuery
- Specified by:
createNativeQuery
in interfacejavax.persistence.EntityManager
-
createNamedStoredProcedureQuery
- Specified by:
createNamedStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
- Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses) - Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
createStoredProcedureQuery
public javax.persistence.StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings) - Specified by:
createStoredProcedureQuery
in interfacejavax.persistence.EntityManager
-
joinTransaction
public void joinTransaction()- Specified by:
joinTransaction
in interfacejavax.persistence.EntityManager
-
isJoinedToTransaction
public boolean isJoinedToTransaction()- Specified by:
isJoinedToTransaction
in interfacejavax.persistence.EntityManager
-
unwrap
- Specified by:
unwrap
in interfacejavax.persistence.EntityManager
-
getDelegate
- Specified by:
getDelegate
in interfacejavax.persistence.EntityManager
-
close
public void close()- Specified by:
close
in interfacejavax.persistence.EntityManager
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacejavax.persistence.EntityManager
-
getTransaction
public javax.persistence.EntityTransaction getTransaction()- Specified by:
getTransaction
in interfacejavax.persistence.EntityManager
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()- Specified by:
getEntityManagerFactory
in interfacejavax.persistence.EntityManager
-
getCriteriaBuilder
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()- Specified by:
getCriteriaBuilder
in interfacejavax.persistence.EntityManager
-
getMetamodel
public javax.persistence.metamodel.Metamodel getMetamodel()- Specified by:
getMetamodel
in interfacejavax.persistence.EntityManager
-
createEntityGraph
- Specified by:
createEntityGraph
in interfacejavax.persistence.EntityManager
-
createEntityGraph
- Specified by:
createEntityGraph
in interfacejavax.persistence.EntityManager
-
getEntityGraph
- Specified by:
getEntityGraph
in interfacejavax.persistence.EntityManager
-
getEntityGraphs
- Specified by:
getEntityGraphs
in interfacejavax.persistence.EntityManager
-
findOrCreate
-
deepCopyIgnoringNulls
Copies all property values from source to dest excluding null values. -
setAdditionalProperties
protected void setAdditionalProperties()
-