Package io.jmix.eclipselink.impl
Class EclipselinkPersistenceSupport
java.lang.Object
io.jmix.eclipselink.impl.EclipselinkPersistenceSupport
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Component("eclipselink_EclipselinkPersistenceSupport")
public class EclipselinkPersistenceSupport
extends Object
implements org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected class
static interface
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<AfterCompleteTransactionListener>
protected AttributeChangesProvider
protected List<BeforeCommitTransactionListener>
protected org.springframework.beans.factory.ObjectProvider<DeletePolicyProcessor>
protected EntityChangedEventManager
protected EntityListenerManager
protected EntityStates
protected JpaCacheSupport
protected List<JpaLifecycleListener>
protected Metadata
protected MetadataTools
protected QueryCacheManager
static final String
protected StoreAwareLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeStore
(EclipselinkPersistenceSupport.ContainerResourceHolder container, EclipselinkPersistenceSupport.EntityVisitor visitor, Collection<Object> instances, Set<Object> processed, boolean warnAboutImplicitFlush) void
protected void
fireBeforeDetachEntityListener
(Object entity, String storeName) protected void
fireEntityChange
(Object entity, EntityOp entityOp, AttributeChanges changes) protected void
getInstanceContainerResourceHolder
(String storeName) getInstances
(javax.persistence.EntityManager entityManager) getSavedInstances
(String storeName) getStorageName
(org.eclipse.persistence.sessions.Session session) protected boolean
isDeleted
(Object entity, org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener changeListener) protected void
makeDetached
(Object instance) prepareInstanceContainerResourceHolder
(String transactionManagerKey) void
processFlush
(javax.persistence.EntityManager entityManager, boolean warnAboutImplicitFlush) void
registerInstance
(Object entity, javax.persistence.EntityManager entityManager) void
registerInstance
(Object entity, org.eclipse.persistence.internal.sessions.AbstractSession session) void
registerSynchronizations
(String transactionManagerKey) INTERNAL.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
traverseEntities
(EclipselinkPersistenceSupport.ContainerResourceHolder container, EclipselinkPersistenceSupport.EntityVisitor visitor, boolean warnAboutImplicitFlush)
-
Field Details
-
RESOURCE_HOLDER_KEY
-
storeAwareLocator
-
metadata
-
metadataTools
-
entityListenerManager
-
queryCacheManager
-
jpaCacheSupport
-
entityChangedEventManager
-
entityStates
-
attributeChangesProvider
-
lifecycleListeners
-
deletePolicyProcessorProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<DeletePolicyProcessor> deletePolicyProcessorProvider -
beforeCommitTxListeners
-
afterCompleteTxListeners
-
-
Constructor Details
-
EclipselinkPersistenceSupport
public EclipselinkPersistenceSupport()
-
-
Method Details
-
createEntitySet
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
registerSynchronizations
INTERNAL. Register synchronizations with a just started transaction. -
registerInstance
-
registerInstance
public void registerInstance(Object entity, org.eclipse.persistence.internal.sessions.AbstractSession session) -
getInstances
-
getSavedInstances
-
getSavedInstancesByTransactionManager
-
getStorageName
-
prepareInstanceContainerResourceHolder
public EclipselinkPersistenceSupport.ContainerResourceHolder prepareInstanceContainerResourceHolder(String transactionManagerKey) -
getInstanceContainerResourceHolder
public EclipselinkPersistenceSupport.ContainerResourceHolder getInstanceContainerResourceHolder(String storeName) -
processFlush
public void processFlush(javax.persistence.EntityManager entityManager, boolean warnAboutImplicitFlush) -
fireBeforeDetachEntityListener
-
isDeleted
protected boolean isDeleted(Object entity, org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener changeListener) -
traverseEntities
protected void traverseEntities(EclipselinkPersistenceSupport.ContainerResourceHolder container, EclipselinkPersistenceSupport.EntityVisitor visitor, boolean warnAboutImplicitFlush) -
beforeStore
protected void beforeStore(EclipselinkPersistenceSupport.ContainerResourceHolder container, EclipselinkPersistenceSupport.EntityVisitor visitor, Collection<Object> instances, Set<Object> processed, boolean warnAboutImplicitFlush) -
detach
-
makeDetached
-
fireFlush
-
fireEntityChange
protected void fireEntityChange(Object entity, EntityOp entityOp, @Nullable AttributeChanges changes)
-