Class AbstractMaintenanceServiceDelegate

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public abstract class AbstractMaintenanceServiceDelegate
    extends Object
    implements org.springframework.context.ApplicationContextAware
    Provides common functionality for service delegates.
    • Constructor Detail

      • AbstractMaintenanceServiceDelegate

        public AbstractMaintenanceServiceDelegate()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • checkLevelOneCache

        protected boolean checkLevelOneCache()
        Determines if we are in a context where the level 1 cache is active.
        Returns:
        true if active, false otherwise
      • flushInsertsAndUpdates

        public abstract void flushInsertsAndUpdates()
        Flushes the transactionally-cached create, update associated with this delegate. Separate from delete as the often need to happen in reverse order for referential integrity.
      • flushDeletes

        public abstract void flushDeletes()
        Flushes the deletes associated with this delegate. Separate from insert and update as the often need to happen in reverse order for referential integrity.