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
  • Field Details

  • Constructor Details

    • EclipselinkPersistenceSupport

      public EclipselinkPersistenceSupport()
  • Method Details

    • createEntitySet

      protected static Set<Object> createEntitySet()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • registerSynchronizations

      public void registerSynchronizations(String transactionManagerKey)
      INTERNAL. Register synchronizations with a just started transaction.
    • registerInstance

      public void registerInstance(Object entity, javax.persistence.EntityManager entityManager)
    • registerInstance

      public void registerInstance(Object entity, org.eclipse.persistence.internal.sessions.AbstractSession session)
    • getInstances

      public Collection<Object> getInstances(javax.persistence.EntityManager entityManager)
    • getSavedInstances

      public Collection<Object> getSavedInstances(String storeName)
    • getSavedInstancesByTransactionManager

      public Collection<Object> getSavedInstancesByTransactionManager(String tmKey)
    • getStorageName

      public String getStorageName(org.eclipse.persistence.sessions.Session session)
    • 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

      protected void fireBeforeDetachEntityListener(Object entity, String storeName)
    • 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

      public void detach(javax.persistence.EntityManager entityManager, Object entity)
    • makeDetached

      protected void makeDetached(Object instance)
    • fireFlush

      protected void fireFlush(String storeName)
    • fireEntityChange

      protected void fireEntityChange(Object entity, EntityOp entityOp, @Nullable AttributeChanges changes)