@Component(value="cuba_PersistenceImplSupport")
public class PersistenceImplSupport
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
Modifier and Type | Class and Description |
---|---|
static class |
PersistenceImplSupport.ContainerResourceHolder |
protected class |
PersistenceImplSupport.ContainerResourceSynchronization |
static interface |
PersistenceImplSupport.EntityVisitor |
protected class |
PersistenceImplSupport.OnCommitEntityVisitor |
protected class |
PersistenceImplSupport.OnFlushEntityVisitor |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AfterCompleteTransactionListener> |
afterCompleteTxListeners |
protected java.util.List<BeforeCommitTransactionListener> |
beforeCommitTxListeners |
protected EntityChangedEventManager |
entityChangedEventManager |
protected EntityFetcher |
entityFetcher |
protected EntityListenerManager |
entityListenerManager |
protected EntityLogAPI |
entityLog |
protected Events |
events |
protected FtsSender |
ftsSender |
protected Metadata |
metadata |
protected MetadataTools |
metadataTools |
static java.lang.String |
NAME |
protected OrmCacheSupport |
ormCacheSupport |
protected Persistence |
persistence |
static java.lang.String |
PROP_NAME |
protected QueryCacheManager |
queryCacheManager |
static java.lang.String |
RESOURCE_HOLDER_KEY |
protected MiddlewareStatisticsAccumulator |
statisticsAccumulator |
Constructor and Description |
---|
PersistenceImplSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeStore(PersistenceImplSupport.ContainerResourceHolder container,
PersistenceImplSupport.EntityVisitor visitor,
java.util.Collection<Entity> instances,
java.util.Set<Entity> processed,
boolean warnAboutImplicitFlush) |
protected static java.util.Set<Entity> |
createEntitySet() |
void |
detach(EntityManager entityManager,
Entity entity) |
protected void |
fireBeforeDetachEntityListener(BaseGenericIdEntity entity,
java.lang.String storeName) |
void |
fireEntityListeners(EntityManager entityManager,
boolean warnAboutImplicitFlush) |
PersistenceImplSupport.ContainerResourceHolder |
getInstanceContainerResourceHolder(java.lang.String storeName) |
java.util.Collection<Entity> |
getInstances(EntityManager entityManager) |
java.util.Collection<Entity> |
getSavedInstances(java.lang.String storeName) |
java.lang.String |
getStorageName(org.eclipse.persistence.sessions.Session session) |
protected static boolean |
isDeleted(BaseGenericIdEntity entity,
org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener changeListener) |
protected void |
makeDetached(java.lang.Object instance) |
protected void |
processDeletePolicy(Entity entity) |
void |
registerInstance(Entity entity,
org.eclipse.persistence.internal.sessions.AbstractSession session) |
void |
registerInstance(Entity entity,
EntityManager entityManager) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected void |
traverseEntities(PersistenceImplSupport.ContainerResourceHolder container,
PersistenceImplSupport.EntityVisitor visitor,
boolean warnAboutImplicitFlush) |
public static final java.lang.String NAME
public static final java.lang.String RESOURCE_HOLDER_KEY
public static final java.lang.String PROP_NAME
@Inject protected Persistence persistence
@Inject protected EntityListenerManager entityListenerManager
@Inject protected Metadata metadata
@Inject protected MetadataTools metadataTools
@Inject protected Events events
@Inject protected EntityFetcher entityFetcher
@Inject protected QueryCacheManager queryCacheManager
@Inject protected EntityLogAPI entityLog
protected volatile FtsSender ftsSender
@Inject protected OrmCacheSupport ormCacheSupport
@Inject protected MiddlewareStatisticsAccumulator statisticsAccumulator
@Inject protected EntityChangedEventManager entityChangedEventManager
protected java.util.List<BeforeCommitTransactionListener> beforeCommitTxListeners
protected java.util.List<AfterCompleteTransactionListener> afterCompleteTxListeners
protected static java.util.Set<Entity> createEntitySet()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void registerInstance(Entity entity, EntityManager entityManager)
public void registerInstance(Entity entity, org.eclipse.persistence.internal.sessions.AbstractSession session)
public java.util.Collection<Entity> getInstances(EntityManager entityManager)
public java.util.Collection<Entity> getSavedInstances(java.lang.String storeName)
public java.lang.String getStorageName(org.eclipse.persistence.sessions.Session session)
public PersistenceImplSupport.ContainerResourceHolder getInstanceContainerResourceHolder(java.lang.String storeName)
public void fireEntityListeners(EntityManager entityManager, boolean warnAboutImplicitFlush)
protected void fireBeforeDetachEntityListener(BaseGenericIdEntity entity, java.lang.String storeName)
protected static boolean isDeleted(BaseGenericIdEntity entity, org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener changeListener)
protected void traverseEntities(PersistenceImplSupport.ContainerResourceHolder container, PersistenceImplSupport.EntityVisitor visitor, boolean warnAboutImplicitFlush)
protected void beforeStore(PersistenceImplSupport.ContainerResourceHolder container, PersistenceImplSupport.EntityVisitor visitor, java.util.Collection<Entity> instances, java.util.Set<Entity> processed, boolean warnAboutImplicitFlush)
public void detach(EntityManager entityManager, Entity entity)
protected void makeDetached(java.lang.Object instance)
protected void processDeletePolicy(Entity entity)