Class PropertyValidation
java.lang.Object
org.apache.derby.iapi.services.property.PropertyValidation
- All Implemented Interfaces:
PropertyFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a callback for a change in any property value.doMap
(String key, Serializable value, Dictionary set) Call the property set callbacks to map a proposed property value to a value to save.doValidateApplyAndMap
(TransactionController tc, String key, Serializable value, Dictionary d, boolean dbOnlyProperty) void
validateSingleProperty
(String key, Serializable value, Dictionary set) validation a single propertyvoid
verifyPropertySet
(Properties p, Properties ignore) Validate a Property set.
-
Field Details
-
notifyOnSet
-
-
Constructor Details
-
PropertyValidation
public PropertyValidation()
-
-
Method Details
-
doValidateApplyAndMap
public Serializable doValidateApplyAndMap(TransactionController tc, String key, Serializable value, Dictionary d, boolean dbOnlyProperty) throws StandardException - Specified by:
doValidateApplyAndMap
in interfacePropertyFactory
- Throws:
StandardException
-
doMap
Call the property set callbacks to map a proposed property value to a value to save.The caller must run this in a block synchronized on this to serialize validations with changes to the set of property callbacks
- Specified by:
doMap
in interfacePropertyFactory
- Throws:
StandardException
-
validateSingleProperty
public void validateSingleProperty(String key, Serializable value, Dictionary set) throws StandardException Description copied from interface:PropertyFactory
validation a single property- Specified by:
validateSingleProperty
in interfacePropertyFactory
- Throws:
StandardException
-
addPropertySetNotification
Description copied from interface:PropertyFactory
Add a callback for a change in any property value.
The callback is made in the context of the transaction making the change.- Specified by:
addPropertySetNotification
in interfacePropertyFactory
- Parameters:
who
- which object is called
-
verifyPropertySet
Description copied from interface:PropertyFactory
Validate a Property set.Validate a Property set by calling all the registered property set notification functions with .
- Specified by:
verifyPropertySet
in interfacePropertyFactory
- Parameters:
p
- Properties to validate.ignore
- Properties to not validate in p. Usefull for properties that may not be set after boot.- Throws:
StandardException
- Throws if p fails a check.
-