Top Fields Constructors Methods
org.apache.derby.iapi.services.property

public Class PropertyValidation

extends Object
implements PropertyFactory
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.property.PropertyFactory
Imports
org.apache.derby.shared.common.reference.Attribute, .Property, .SQLState, org.apache.derby.iapi.services.property.PropertyUtil, .PropertySetCallback, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.daemon.Serviceable, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.iapi.store.access.conglomerate.TransactionManager, java.io.Serializable, java.util.Dictionary, .Enumeration, .Properties, .Vector

Field Summary

Modifier and TypeField and Description
private Vector<PropertySetCallback>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addPropertySetNotification(PropertySetCallback
which object is called
who
)

Implements org.apache.derby.iapi.services.property.PropertyFactory.addPropertySetNotification.

Add a callback for a change in any property value.

public Serializable
doMap(String
The property key
key
,
Serializable
The value to be bound to the key
value
,
Dictionary<K, V>
The property set for this key
set
)

Implements org.apache.derby.iapi.services.property.PropertyFactory.doMap.

Call the property set callbacks to map a proposed property value to a value to save.

public Serializable
public void
validateSingleProperty(String
The property key
key
,
Serializable
The proposed value for the key
value
,
Dictionary<K, V>
The set containing the key/value pair
set
)

Implements org.apache.derby.iapi.services.property.PropertyFactory.validateSingleProperty.

validate a single property

public synchronized void
verifyPropertySet(Properties
Properties to validate.
p
,
Properties
Properties to not validate in p. Usefull for properties that may not be set after boot.
ignore
)

Implements org.apache.derby.iapi.services.property.PropertyFactory.verifyPropertySet.

Validate a Property set.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

notifyOnSetback to summary
private Vector<PropertySetCallback> notifyOnSet

Constructor Detail

PropertyValidationback to summary
public PropertyValidation()

Method Detail

addPropertySetNotificationback to summary
public synchronized void addPropertySetNotification(PropertySetCallback who)

Implements org.apache.derby.iapi.services.property.PropertyFactory.addPropertySetNotification.

Doc from org.apache.derby.iapi.services.property.PropertyFactory.addPropertySetNotification.

Add a callback for a change in any property value.
The callback is made in the context of the transaction making the change.

Parameters
who:PropertySetCallback

which object is called

doMapback to summary
public Serializable doMap(String key, Serializable value, Dictionary<K, V> set) throws StandardException

Implements org.apache.derby.iapi.services.property.PropertyFactory.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

Parameters
key:String

Doc from org.apache.derby.iapi.services.property.PropertyFactory.doMap.

The property key

value:Serializable

Doc from org.apache.derby.iapi.services.property.PropertyFactory.doMap.

The value to be bound to the key

set:Dictionary<K, V>

Doc from org.apache.derby.iapi.services.property.PropertyFactory.doMap.

The property set for this key

Returns:Serializable

Doc from org.apache.derby.iapi.services.property.PropertyFactory.doMap.

a serializable

Exceptions
StandardException:

Doc from org.apache.derby.iapi.services.property.PropertyFactory.doMap.

if the key/value pair is invalid

doValidateApplyAndMapback to summary
public Serializable doValidateApplyAndMap(TransactionController tc, String key, Serializable value, Dictionary<K, V> d, boolean dbOnlyProperty) throws StandardException

Implements org.apache.derby.iapi.services.property.PropertyFactory.doValidateApplyAndMap.

validateSinglePropertyback to summary
public void validateSingleProperty(String key, Serializable value, Dictionary<K, V> set) throws StandardException

Implements org.apache.derby.iapi.services.property.PropertyFactory.validateSingleProperty.

Doc from org.apache.derby.iapi.services.property.PropertyFactory.validateSingleProperty.

validate a single property

Parameters
key:String

The property key

value:Serializable

The proposed value for the key

set:Dictionary<K, V>

The set containing the key/value pair

Exceptions
StandardException:
if the key/value pair is invalid
verifyPropertySetback to summary
public synchronized void verifyPropertySet(Properties p, Properties ignore) throws StandardException

Implements org.apache.derby.iapi.services.property.PropertyFactory.verifyPropertySet.

Doc from org.apache.derby.iapi.services.property.PropertyFactory.verifyPropertySet.

Validate a Property set.

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

Parameters
p:Properties

Properties to validate.

ignore:Properties

Properties to not validate in p. Usefull for properties that may not be set after boot.

Exceptions
StandardException:
Throws if p fails a check.