Class OfferCodeCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.openadmin.server.service.handler.ClassCustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.OfferCodeCustomPersistenceHandler
- All Implemented Interfaces:
CustomPersistenceHandler,org.springframework.core.Ordered
@Component("blOfferCodeCustomPersistenceHandler")
public class OfferCodeCustomPersistenceHandler
extends ClassCustomPersistenceHandlerAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected OfferCodeDaoFields inherited from interface org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandler
DEFAULT_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
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 admincanHandleUpdate(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an update request from the adminupdate(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) protected EntityvalidateOfferCode(Entity entity, OfferCode offerCode) Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.ClassCustomPersistenceHandlerAdapter
classIsAssignableFrom, classMatchesMethods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
canHandleFetch, canHandleInspect, canHandleRemove, fetch, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, willHandleSecurity
-
Field Details
-
offerCodeDao
-
em
protected jakarta.persistence.EntityManager em
-
-
Constructor Details
-
OfferCodeCustomPersistenceHandler
public OfferCodeCustomPersistenceHandler()
-
-
Method Details
-
canHandleAdd
Description copied from interface:CustomPersistenceHandlerIs this persistence handler capable of dealing with an add request from the admin- Specified by:
canHandleAddin interfaceCustomPersistenceHandler- Overrides:
canHandleAddin classCustomPersistenceHandlerAdapter- Parameters:
persistencePackage- details about the add operation- Returns:
- whether or not this handler supports adds
-
canHandleUpdate
Description copied from interface:CustomPersistenceHandlerIs this persistence handler capable of dealing with an update request from the admin- Specified by:
canHandleUpdatein interfaceCustomPersistenceHandler- Overrides:
canHandleUpdatein classCustomPersistenceHandlerAdapter- Parameters:
persistencePackage- details about the update operation- Returns:
- whether or not this handler supports updatess
-
add
public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Specified by:
addin interfaceCustomPersistenceHandler- Overrides:
addin classCustomPersistenceHandlerAdapter- Throws:
ServiceException
-
update
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Specified by:
updatein interfaceCustomPersistenceHandler- Overrides:
updatein classCustomPersistenceHandlerAdapter- Throws:
ServiceException
-
validateOfferCode
-
checkIfOfferHasAdditionStatusNew
-