public class PersistenceManagerEventHandlerAdapter extends Object implements PersistenceManagerEventHandler
Constructor and Description |
---|
PersistenceManagerEventHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
PersistenceManagerEventHandlerResponse |
postAdd(PersistenceManager persistenceManager,
Entity entity,
PersistencePackage persistencePackage)
Called after an add
|
PersistenceManagerEventHandlerResponse |
postFetch(PersistenceManager persistenceManager,
DynamicResultSet resultSet,
PersistencePackage persistencePackage,
CriteriaTransferObject cto)
Called after the fetch, which is a request for one or more persisted entities
|
PersistenceManagerEventHandlerResponse |
postInspect(PersistenceManager persistenceManager,
DynamicResultSet resultSet,
PersistencePackage persistencePackage)
Called after the inspection for the entity described by persistencePackage
|
PersistenceManagerEventHandlerResponse |
postRemove(PersistenceManager persistenceManager,
PersistencePackage persistencePackage)
Called after a remove
|
PersistenceManagerEventHandlerResponse |
postUpdate(PersistenceManager persistenceManager,
Entity entity,
PersistencePackage persistencePackage)
Called after an update
|
PersistenceManagerEventHandlerResponse |
preAdd(PersistenceManager persistenceManager,
PersistencePackage persistencePackage)
Called prior to an add
|
PersistenceManagerEventHandlerResponse |
preFetch(PersistenceManager persistenceManager,
PersistencePackage persistencePackage,
CriteriaTransferObject cto)
Called prior to a fetch, which is a request for one or more persisted entities
|
PersistenceManagerEventHandlerResponse |
preInspect(PersistenceManager persistenceManager,
PersistencePackage persistencePackage)
Called prior to inspection for the entity described by persistencePackage
|
PersistenceManagerEventHandlerResponse |
preRemove(PersistenceManager persistenceManager,
PersistencePackage persistencePackage)
Called prior to a remove
|
PersistenceManagerEventHandlerResponse |
preUpdate(PersistenceManager persistenceManager,
PersistencePackage persistencePackage)
Called prior to an update
|
PersistenceManagerEventHandlerResponse |
processValidationError(PersistenceManager persistenceManager,
Entity entity,
PersistencePackage persistencePackage)
Called after a validation error.
|
public PersistenceManagerEventHandlerAdapter()
public PersistenceManagerEventHandlerResponse postAdd(PersistenceManager persistenceManager, Entity entity, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
postAdd
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callentity
- the result of the addpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse preFetch(PersistenceManager persistenceManager, PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
PersistenceManagerEventHandler
preFetch
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callcto
- the criteria describing the parameters of the fetch - converted into the where clause for the select queryServiceException
public PersistenceManagerEventHandlerResponse postFetch(PersistenceManager persistenceManager, DynamicResultSet resultSet, PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
PersistenceManagerEventHandler
postFetch
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callresultSet
- the fetch result datapersistencePackage
- the descriptive information for the callcto
- the criteria describing the parameters of the fetch - converted into the where clause for the select queryServiceException
public PersistenceManagerEventHandlerResponse preAdd(PersistenceManager persistenceManager, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
preAdd
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse preUpdate(PersistenceManager persistenceManager, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
preUpdate
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse postUpdate(PersistenceManager persistenceManager, Entity entity, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
postUpdate
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callentity
- the result of the updatepersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse preRemove(PersistenceManager persistenceManager, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
preRemove
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse postRemove(PersistenceManager persistenceManager, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
postRemove
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse postInspect(PersistenceManager persistenceManager, DynamicResultSet resultSet, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
postInspect
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callresultSet
- the inspection result datapersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse preInspect(PersistenceManager persistenceManager, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
preInspect
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callpersistencePackage
- the descriptive information for the callServiceException
public PersistenceManagerEventHandlerResponse processValidationError(PersistenceManager persistenceManager, Entity entity, PersistencePackage persistencePackage) throws ServiceException
PersistenceManagerEventHandler
Entity.getPropertyValidationErrors()
processValidationError
in interface PersistenceManagerEventHandler
persistenceManager
- the PersistenceManager instance making the callentity
- the results of the persistence requestpersistencePackage
- the descriptive information for the callServiceException
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2022. All rights reserved.