|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CustomPersistenceHandler
Custom Persistence Handlers provide a hook to override the normal persistence behavior of the admin application. This is useful when an alternate pathway for working with persisted data is desirable. For example, if you want to work directly with a service API, rather than go through the standard admin persistence pipeline. In such a case, you can use Spring to inject an instance of your service into your custom persistence handler and utilize that service to work with your entity. The implementation is responsible for converting domain object into the return type required by the admin. Helper classes are passed in to assist with conversion operations.
| Method Summary | |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
|
Boolean |
canHandleAdd(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an add request from the admin |
Boolean |
canHandleFetch(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an fetch request from the admin |
Boolean |
canHandleInspect(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an inspect request from the admin |
Boolean |
canHandleRemove(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with a remove request from the admin |
Boolean |
canHandleUpdate(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an update request from the admin |
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
|
DynamicResultSet |
inspect(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
InspectHelper helper)
|
void |
remove(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
|
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
|
Boolean |
willHandleSecurity(PersistencePackage persistencePackage)
|
| Method Detail |
|---|
Boolean canHandleInspect(PersistencePackage persistencePackage)
persistencePackage - details about the inspect operation
Boolean canHandleFetch(PersistencePackage persistencePackage)
persistencePackage - details about the fetch operation
Boolean canHandleAdd(PersistencePackage persistencePackage)
persistencePackage - details about the add operation
Boolean canHandleRemove(PersistencePackage persistencePackage)
persistencePackage - details about the remove operation
Boolean canHandleUpdate(PersistencePackage persistencePackage)
persistencePackage - details about the update operation
Boolean willHandleSecurity(PersistencePackage persistencePackage)
DynamicResultSet inspect(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
InspectHelper helper)
throws ServiceException
ServiceException
DynamicResultSet fetch(PersistencePackage persistencePackage,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
ServiceException
Entity add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
ServiceException
void remove(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
ServiceException
Entity update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||