@Component(value="blTypedEntityFieldPersistenceProvider") @Scope(value="prototype") public class TypedEntityFieldPersistenceProvider extends DefaultFieldPersistenceProvider
TypedEntity
s and ensures that they are always
marked as dirty when they change, regardless of PreAdd state.Constructor and Description |
---|
TypedEntityFieldPersistenceProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canHandlePersistence(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected boolean |
checkDirtyState(PopulateValueRequest request,
Object instance,
Object checkValue) |
MetadataProviderResponse |
extractValue(ExtractValueRequest extractValueRequest,
Property property)
Retrieve the property value from the requestedValue field from the request.
|
int |
getOrder() |
MetadataProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
addSearchMapping, filterProperties, isFieldDirty, setNonDisplayableValues
alwaysRun, buildFieldInfo, canHandlePopulateNull, getListFieldType, getMapFieldType
public MetadataProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance)
FieldPersistenceProvider
populateValue
in interface FieldPersistenceProvider
populateValue
in class DefaultFieldPersistenceProvider
populateValueRequest
- contains the requested value and support classes.instance
- the persistence entity instance on which to set the value harvested from the requestpublic MetadataProviderResponse extractValue(ExtractValueRequest extractValueRequest, Property property) throws PersistenceException
FieldPersistenceProvider
extractValue
in interface FieldPersistenceProvider
extractValue
in class DefaultFieldPersistenceProvider
extractValueRequest
- contains the requested value and support classes.property
- the property for the admin that will contain the information harvested from the persistence valuePersistenceException
protected boolean checkDirtyState(PopulateValueRequest request, Object instance, Object checkValue) throws Exception
checkDirtyState
in class FieldPersistenceProviderAdapter
Exception
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
getOrder
in class FieldPersistenceProviderAdapter
protected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance)
Copyright © 2022. All rights reserved.