public class PropertyValidation extends java.lang.Object implements PropertyFactory
| Modifier and Type | Field and Description |
|---|---|
private java.util.Vector |
notifyOnSet |
| Constructor and Description |
|---|
PropertyValidation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertySetNotification(PropertySetCallback who)
Add a callback for a change in any property value.
|
java.io.Serializable |
doMap(java.lang.String key,
java.io.Serializable value,
java.util.Dictionary set)
Call the property set callbacks to map a proposed property value
to a value to save.
|
java.io.Serializable |
doValidateApplyAndMap(TransactionController tc,
java.lang.String key,
java.io.Serializable value,
java.util.Dictionary d,
boolean dbOnlyProperty) |
void |
validateSingleProperty(java.lang.String key,
java.io.Serializable value,
java.util.Dictionary set)
validation a single property
|
void |
verifyPropertySet(java.util.Properties p,
java.util.Properties ignore)
Validate a Property set.
|
public java.io.Serializable doValidateApplyAndMap(TransactionController tc, java.lang.String key, java.io.Serializable value, java.util.Dictionary d, boolean dbOnlyProperty) throws StandardException
doValidateApplyAndMap in interface PropertyFactoryStandardExceptionpublic java.io.Serializable doMap(java.lang.String key,
java.io.Serializable value,
java.util.Dictionary set)
throws StandardException
The caller must run this in a block synchronized on this to serialize validations with changes to the set of property callbacks
doMap in interface PropertyFactoryStandardExceptionpublic void validateSingleProperty(java.lang.String key,
java.io.Serializable value,
java.util.Dictionary set)
throws StandardException
PropertyFactoryvalidateSingleProperty in interface PropertyFactoryStandardExceptionpublic void addPropertySetNotification(PropertySetCallback who)
PropertyFactoryaddPropertySetNotification in interface PropertyFactorywho - which object is calledpublic void verifyPropertySet(java.util.Properties p,
java.util.Properties ignore)
throws StandardException
PropertyFactoryValidate a Property set by calling all the registered property set notification functions with .
verifyPropertySet in interface PropertyFactoryp - Properties to validate.ignore - Properties to not validate in p. Usefull for properties
that may not be set after boot.StandardException - Throws if p fails a check.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.