@Component(value="blBasicFieldPersistenceProvider") @Scope(value="prototype") public class BasicFieldPersistenceProvider extends FieldPersistenceProviderAdapter
| Modifier and Type | Field and Description |
|---|---|
protected BasicFieldPersistenceProviderExtensionManager |
extensionManager |
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
BasicFieldPersistenceProvider() |
| 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 boolean |
canHandleSearchMapping(AddSearchMappingRequest addSearchMappingRequest,
List<FilterMapping> filterMappings) |
protected boolean |
detectAdditionalSearchTypes(FieldMetadata md,
Property property) |
protected boolean |
detectBasicType(FieldMetadata md,
Property property) |
FieldProviderResponse |
extractValue(ExtractValueRequest extractValueRequest,
Property property)
Retrieve the property value from the requestedValue field from the request.
|
int |
getOrder() |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
checkDirtyState, filterProperties, setNonDisplayableValuesalwaysRun, buildFieldInfo, getListFieldType, getMapFieldTypeprotected BasicFieldPersistenceProviderExtensionManager extensionManager
protected static final org.apache.commons.logging.Log LOG
protected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance)
protected boolean detectBasicType(FieldMetadata md, Property property)
protected boolean detectAdditionalSearchTypes(FieldMetadata md, Property property)
protected boolean canHandleExtraction(ExtractValueRequest extractValueRequest, Property property)
protected boolean canHandleSearchMapping(AddSearchMappingRequest addSearchMappingRequest, List<FilterMapping> filterMappings)
public FieldProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance)
FieldPersistenceProviderpopulateValue in interface FieldPersistenceProviderpopulateValue in class FieldPersistenceProviderAdapterpopulateValueRequest - 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 FieldPersistenceProviderAdapterextractValueRequest - 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 FieldPersistenceProviderAdapteraddSearchMappingRequest - 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 FieldPersistenceProviderAdapterCopyright © 2017. All rights reserved.