Class CustomerPaymentCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.openadmin.server.service.handler.ClassCustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.CustomerPaymentCustomPersistenceHandler
- All Implemented Interfaces:
CustomPersistenceHandler
,org.springframework.core.Ordered
@Component("blCustomerPaymentCustomPersistenceHandler")
public class CustomerPaymentCustomPersistenceHandler
extends ClassCustomPersistenceHandlerAdapter
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomerPaymentService
protected jakarta.persistence.EntityManager
protected static final String
protected static final String
Fields inherited from interface org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandler
DEFAULT_ORDER
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildPropertyValueIfAvailable
(String columnDisplayValue, String propertyValue) protected String
buildSavedPaymentDisplayValue
(CustomerPayment customerPayment) Is this persistence handler capable of dealing with an fetch request from the adminIs this persistence handler capable of dealing with an inspect request from the adminfetch
(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) inspect
(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.ClassCustomPersistenceHandlerAdapter
classIsAssignableFrom, classMatches
Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
add, canHandleAdd, canHandleRemove, canHandleUpdate, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, update, willHandleSecurity
-
Field Details
-
SAVED_PAYMENT_INFO
- See Also:
-
NULL_LAST_FOUR
- See Also:
-
em
protected jakarta.persistence.EntityManager em -
customerPaymentService
-
-
Constructor Details
-
CustomerPaymentCustomPersistenceHandler
public CustomerPaymentCustomPersistenceHandler()
-
-
Method Details
-
canHandleInspect
Description copied from interface:CustomPersistenceHandler
Is this persistence handler capable of dealing with an inspect request from the admin- Specified by:
canHandleInspect
in interfaceCustomPersistenceHandler
- Overrides:
canHandleInspect
in classCustomPersistenceHandlerAdapter
- Parameters:
pkg
- details about the inspect operation- Returns:
- whether or not this handler supports inspects
-
canHandleFetch
Description copied from interface:CustomPersistenceHandler
Is this persistence handler capable of dealing with an fetch request from the admin- Specified by:
canHandleFetch
in interfaceCustomPersistenceHandler
- Overrides:
canHandleFetch
in classCustomPersistenceHandlerAdapter
- Parameters:
pkg
- details about the fetch operation- Returns:
- whether or not this handler supports fetches
-
inspect
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException - Specified by:
inspect
in interfaceCustomPersistenceHandler
- Overrides:
inspect
in classCustomPersistenceHandlerAdapter
- Throws:
ServiceException
-
fetch
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Specified by:
fetch
in interfaceCustomPersistenceHandler
- Overrides:
fetch
in classCustomPersistenceHandlerAdapter
- Throws:
ServiceException
-
buildSavedPaymentDisplayValue
-
buildPropertyValueIfAvailable
-