Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.services.property
Interface PropertyFactory  view PropertyFactory download PropertyFactory.java

All Known Implementing Classes:
PropertyValidation

public interface PropertyFactory

Module interface for an Property validation.

An PropertyFactory is typically obtained from the Monitor:

        // Get the current validation factory.
        PropertyFactory af;
        af = (PropertyFactory) Monitor.findServiceModule(this, org.apache.derby.iapi.reference.Module.PropertyFactory);
  


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(org.apache.derby.iapi.store.access.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.
 

Method Detail

addPropertySetNotification

public void addPropertySetNotification(PropertySetCallback who)
Add a callback for a change in any property value.
The callback is made in the context of the transaction making the change.


verifyPropertySet

public void verifyPropertySet(java.util.Properties p,
                              java.util.Properties ignore)
                       throws org.apache.derby.iapi.error.StandardException
Validate a Property set.

Validate a Property set by calling all the registered property set notification functions with .


validateSingleProperty

public void validateSingleProperty(java.lang.String key,
                                   java.io.Serializable value,
                                   java.util.Dictionary set)
                            throws org.apache.derby.iapi.error.StandardException
validation a single property


doValidateApplyAndMap

public java.io.Serializable doValidateApplyAndMap(org.apache.derby.iapi.store.access.TransactionController tc,
                                                  java.lang.String key,
                                                  java.io.Serializable value,
                                                  java.util.Dictionary d,
                                                  boolean dbOnlyProperty)
                                           throws org.apache.derby.iapi.error.StandardException

doMap

public java.io.Serializable doMap(java.lang.String key,
                                  java.io.Serializable value,
                                  java.util.Dictionary set)
                           throws org.apache.derby.iapi.error.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