org.apache.derby.iapi.services.property
Class PropertyValidation

java.lang.Object
  extended by org.apache.derby.iapi.services.property.PropertyValidation
All Implemented Interfaces:
PropertyFactory

public class PropertyValidation
extends java.lang.Object
implements PropertyFactory


Field Summary
private  java.util.Vector notifyOnSet
           
 
Constructor Summary
PropertyValidation()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notifyOnSet

private java.util.Vector notifyOnSet
Constructor Detail

PropertyValidation

public PropertyValidation()
Method Detail

doValidateApplyAndMap

public java.io.Serializable doValidateApplyAndMap(TransactionController tc,
                                                  java.lang.String key,
                                                  java.io.Serializable value,
                                                  java.util.Dictionary d,
                                                  boolean dbOnlyProperty)
                                           throws StandardException
Specified by:
doValidateApplyAndMap in interface PropertyFactory
Throws:
StandardException

doMap

public java.io.Serializable doMap(java.lang.String key,
                                  java.io.Serializable value,
                                  java.util.Dictionary set)
                           throws StandardException
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 interface PropertyFactory
Throws:
StandardException

validateSingleProperty

public void validateSingleProperty(java.lang.String key,
                                   java.io.Serializable value,
                                   java.util.Dictionary set)
                            throws StandardException
Description copied from interface: PropertyFactory
validation a single property

Specified by:
validateSingleProperty in interface PropertyFactory
Throws:
StandardException

addPropertySetNotification

public void addPropertySetNotification(PropertySetCallback who)
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 interface PropertyFactory
Parameters:
who - which object is called

verifyPropertySet

public void verifyPropertySet(java.util.Properties p,
                              java.util.Properties ignore)
                       throws StandardException
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 interface PropertyFactory
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.

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.