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