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

Quick Search    Search Deep

org.apache.derby.impl.sql
Class LanguageDbPropertySetter  view LanguageDbPropertySetter download LanguageDbPropertySetter.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.LanguageDbPropertySetter
All Implemented Interfaces:
org.apache.derby.iapi.services.property.PropertySetCallback

public class LanguageDbPropertySetter
extends java.lang.Object
implements org.apache.derby.iapi.services.property.PropertySetCallback

A class to handle setting language database properties


Constructor Summary
LanguageDbPropertySetter()
           
 
Method Summary
 org.apache.derby.iapi.services.daemon.Serviceable apply(java.lang.String key, java.io.Serializable value, java.util.Dictionary p)
          Apply a property change.
 void init(boolean dbOnly, java.util.Dictionary p)
          Initialize the properties for this callback.
 java.io.Serializable map(java.lang.String key, java.io.Serializable value, java.util.Dictionary p)
          Map a proposed new value for a property to an official value.
 boolean validate(java.lang.String key, java.io.Serializable value, java.util.Dictionary p)
          Validate a property change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageDbPropertySetter

public LanguageDbPropertySetter()
Method Detail

init

public void init(boolean dbOnly,
                 java.util.Dictionary p)
Description copied from interface: org.apache.derby.iapi.services.property.PropertySetCallback
Initialize the properties for this callback. Called when addPropertySetNotification() is called with a non-null transaction controller. This allows code to set read its initial property values at boot time.

Code within an init() method should use the 3 argument PropertyUtil method getPropertyFromSet() to obtain a property's value.

Specified by:
init in interface org.apache.derby.iapi.services.property.PropertySetCallback

validate

public boolean validate(java.lang.String key,
                        java.io.Serializable value,
                        java.util.Dictionary p)
                 throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.services.property.PropertySetCallback
Validate a property change.

Specified by:
validate in interface org.apache.derby.iapi.services.property.PropertySetCallback

apply

public org.apache.derby.iapi.services.daemon.Serviceable apply(java.lang.String key,
                                                               java.io.Serializable value,
                                                               java.util.Dictionary p)
Description copied from interface: org.apache.derby.iapi.services.property.PropertySetCallback
Apply a property change. Will only be called after validate has been called and only if validate returned true. If this method is called then the new value is the value to be used, ie. the property is not set in the overriding JVM system set.

Specified by:
apply in interface org.apache.derby.iapi.services.property.PropertySetCallback

map

public java.io.Serializable map(java.lang.String key,
                                java.io.Serializable value,
                                java.util.Dictionary p)
Description copied from interface: org.apache.derby.iapi.services.property.PropertySetCallback
Map a proposed new value for a property to an official value. Will only be called after apply() has been called.

Specified by:
map in interface org.apache.derby.iapi.services.property.PropertySetCallback