Interface CustomPersistenceHandler
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
AdminPermissionCustomPersistenceHandler
,AdminUserCustomPersistenceHandler
,CategoryCustomPersistenceHandler
,ChildCategoriesCustomPersistenceHandler
,ClassCustomPersistenceHandlerAdapter
,CrossSaleProductCustomPersistenceHandler
,CustomerCustomPersistenceHandler
,CustomerPasswordCustomPersistenceHandler
,CustomerPaymentCustomPersistenceHandler
,CustomPersistenceHandlerAdapter
,FieldOnlyPropertiesCustomPersistenceHandler
,IndexFieldCustomPersistenceHandler
,ISOCountryPersistenceHandler
,OfferCodeCustomPersistenceHandler
,OfferCustomPersistenceHandler
,PageTemplateCustomPersistenceHandler
,ProductCustomPersistenceHandler
,ProductOptionsCustomPersistenceHandler
,ProductOptionValuesCustomPersistenceHandler
,RequestDTOCustomPersistenceHandler
,SearchFacetCustomPersistenceHandler
,SearchFacetRangeCustomPersistenceHandler
,SkuBundleItemCustomPersistenceHandler
,SkuCustomPersistenceHandler
,SkuLookupByProductCustomPersistenceHandler
,StructuredContentTypeCustomPersistenceHandler
,SystemPropertyCustomPersistenceHandler
,TimeDTOCustomPersistenceHandler
,TranslationCustomPersistenceHandler
,UpSaleProductCustomPersistenceHandler
public interface CustomPersistenceHandler
extends org.springframework.core.Ordered
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.
- Author:
- Jeff Fischer
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionadd
(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) canHandleAdd
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an add request from the admincanHandleFetch
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an fetch request from the admincanHandleInspect
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an inspect request from the admincanHandleRemove
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with a remove request from the admincanHandleUpdate
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an update request from the adminfetch
(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) inspect
(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) void
remove
(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) update
(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) willHandleSecurity
(PersistencePackage persistencePackage) Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Field Details
-
DEFAULT_ORDER
static final int DEFAULT_ORDER- See Also:
-
-
Method Details
-
canHandleInspect
Is this persistence handler capable of dealing with an inspect request from the admin- Parameters:
persistencePackage
- details about the inspect operation- Returns:
- whether or not this handler supports inspects
-
canHandleFetch
Is this persistence handler capable of dealing with an fetch request from the admin- Parameters:
persistencePackage
- details about the fetch operation- Returns:
- whether or not this handler supports fetches
-
canHandleAdd
Is this persistence handler capable of dealing with an add request from the admin- Parameters:
persistencePackage
- details about the add operation- Returns:
- whether or not this handler supports adds
-
canHandleRemove
Is this persistence handler capable of dealing with a remove request from the admin- Parameters:
persistencePackage
- details about the remove operation- Returns:
- whether or not this handler supports remove
-
canHandleUpdate
Is this persistence handler capable of dealing with an update request from the admin- Parameters:
persistencePackage
- details about the update operation- Returns:
- whether or not this handler supports updatess
-
willHandleSecurity
-
inspect
DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException - Throws:
ServiceException
-
fetch
DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Throws:
ServiceException
-
add
Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Throws:
ServiceException
-
remove
void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Throws:
ServiceException
-
update
Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Throws:
ServiceException
-