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 org.broadleafcommerce.profile.core.service.CustomerPaymentServiceprotected jakarta.persistence.EntityManagerprotected static final Stringprotected static final StringFields 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 TypeMethodDescriptionprotected StringbuildPropertyValueIfAvailable(String columnDisplayValue, String propertyValue) protected StringbuildSavedPaymentDisplayValue(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment) fetch(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, classMatchesMethods 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
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService
-
-
Constructor Details
-
CustomerPaymentCustomPersistenceHandler
public CustomerPaymentCustomPersistenceHandler()
-
-
Method Details
-
canHandleInspect
- Specified by:
canHandleInspectin interfaceCustomPersistenceHandler- Overrides:
canHandleInspectin classCustomPersistenceHandlerAdapter
-
canHandleFetch
- Specified by:
canHandleFetchin interfaceCustomPersistenceHandler- Overrides:
canHandleFetchin classCustomPersistenceHandlerAdapter
-
inspect
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws org.broadleafcommerce.common.exception.ServiceException - Specified by:
inspectin interfaceCustomPersistenceHandler- Overrides:
inspectin classCustomPersistenceHandlerAdapter- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
fetch
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException - Specified by:
fetchin interfaceCustomPersistenceHandler- Overrides:
fetchin classCustomPersistenceHandlerAdapter- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
buildSavedPaymentDisplayValue
protected String buildSavedPaymentDisplayValue(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment) -
buildPropertyValueIfAvailable
-