Class ISOCountryPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.ISOCountryPersistenceHandler
- All Implemented Interfaces:
CustomPersistenceHandler
,org.springframework.core.Ordered
@Component("blISOCountryPersistenceHandler")
public class ISOCountryPersistenceHandler
extends CustomPersistenceHandlerAdapter
By default, we will filter all ISOCountries to return only those that have names.
(i.e. the International Standards Organization has officially assigned the 2 character alpha code to a country or region)
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
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 TypeMethodDescriptioncanHandleFetch
(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with an fetch request from the adminfetch
(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
add, canHandleAdd, canHandleInspect, canHandleRemove, canHandleUpdate, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, update, willHandleSecurity
-
Constructor Details
-
ISOCountryPersistenceHandler
public ISOCountryPersistenceHandler()
-
-
Method Details
-
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:
persistencePackage
- details about the fetch operation- Returns:
- whether or not this handler supports fetches
-
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
-