Class AbstractMaintenanceServiceDelegate
- java.lang.Object
-
- org.technologybrewery.fermenter.stout.client.service.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 Summary
Constructors Constructor Description AbstractMaintenanceServiceDelegate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancheckLevelOneCache()Determines if we are in a context where the level 1 cache is active.abstract voidflushDeletes()Flushes the deletes associated with this delegate.abstract voidflushInsertsAndUpdates()Flushes the transactionally-cached create, update associated with this delegate.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.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.
-
-