@Component(value="blMapFieldPersistenceProvider") @Scope(value="prototype") public class MapFieldPersistenceProvider extends BasicFieldPersistenceProvider
extensionManager, LOG| Constructor and Description |
|---|
MapFieldPersistenceProvider() |
| Modifier and Type | Method and Description |
|---|---|
FieldProviderResponse |
addSearchMapping(AddSearchMappingRequest addSearchMappingRequest,
List<FilterMapping> filterMappings)
Add
FilterMapping instances. |
protected boolean |
canHandleExtraction(ExtractValueRequest extractValueRequest,
Property property) |
protected boolean |
canHandlePersistence(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected ValueAssignable |
establishAssignableValue(PopulateValueRequest populateValueRequest,
Object parent) |
FieldProviderResponse |
extractValue(ExtractValueRequest extractValueRequest,
Property property)
Retrieve the property value from the requestedValue field from the request.
|
int |
getOrder() |
protected Class<?> |
getStartingValueType(PopulateValueRequest populateValueRequest) |
protected Class<?> |
getValueType(PopulateValueRequest populateValueRequest,
Class<?> startingValueType) |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
protected void |
setupJoinEntityParent(PopulateValueRequest populateValueRequest,
Serializable instance,
Object parent) |
protected void |
updateAssignableValue(PopulateValueRequest populateValueRequest,
Serializable instance,
Object parent,
Class<?> valueType,
boolean persistValue,
ValueAssignable assignableValue) |
canHandleSearchMapping, detectAdditionalSearchTypes, detectBasicTypecheckDirtyState, filterProperties, setNonDisplayableValuesalwaysRun, buildFieldInfo, getListFieldType, getMapFieldTypeprotected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance)
canHandlePersistence in class BasicFieldPersistenceProviderprotected boolean canHandleExtraction(ExtractValueRequest extractValueRequest, Property property)
canHandleExtraction in class BasicFieldPersistenceProviderpublic FieldProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance)
FieldPersistenceProviderpopulateValue in interface FieldPersistenceProviderpopulateValue in class BasicFieldPersistenceProviderpopulateValueRequest - contains the requested value and support classes.instance - the persistence entity instance on which to set the value harvested from the requestpublic FieldProviderResponse extractValue(ExtractValueRequest extractValueRequest, Property property) throws PersistenceException
FieldPersistenceProviderextractValue in interface FieldPersistenceProviderextractValue in class BasicFieldPersistenceProviderextractValueRequest - contains the requested value and support classes.property - the property for the admin that will contain the information harvested from the persistence valuePersistenceExceptionpublic FieldProviderResponse addSearchMapping(AddSearchMappingRequest addSearchMappingRequest, List<FilterMapping> filterMappings)
FieldPersistenceProviderFilterMapping instances. The FilterMappings are used by the system to refine the fetch criteria
used to retrieve lists of records for the admin. The requestedCto contains filters requested from the admin
and is generally used to drive the added FilterMapping instances.addSearchMapping in interface FieldPersistenceProvideraddSearchMapping in class BasicFieldPersistenceProvideraddSearchMappingRequest - contains the requested cto and support classes.filterMappings - filter criteria should be added here. It is used to generate the final search criteria.public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class BasicFieldPersistenceProviderprotected void updateAssignableValue(PopulateValueRequest populateValueRequest, Serializable instance, Object parent, Class<?> valueType, boolean persistValue, ValueAssignable assignableValue) throws IllegalAccessException, FieldNotAvailableException, InstantiationException
protected ValueAssignable establishAssignableValue(PopulateValueRequest populateValueRequest, Object parent) throws IllegalAccessException, FieldNotAvailableException
protected void setupJoinEntityParent(PopulateValueRequest populateValueRequest, Serializable instance, Object parent) throws IllegalAccessException, FieldNotAvailableException, InstantiationException
protected Class<?> getValueType(PopulateValueRequest populateValueRequest, Class<?> startingValueType)
protected Class<?> getStartingValueType(PopulateValueRequest populateValueRequest) throws ClassNotFoundException, IllegalAccessException
Copyright © 2017. All rights reserved.