Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db.property
Class PropertyInitializer

java.lang.Object
  extended by oracle.javatools.db.property.PropertyInitializer
Direct Known Subclasses:
UserPropertyInitializer

public abstract class PropertyInitializer
extends java.lang.Object


Nested Class Summary
static class PropertyInitializer.InitializationVeto
          For a particular DBObject instance and property name, a PropertyInitializer may choose to veto providing an initial value by throwing a PropertyInitializer.InitializationVeto exception.
 
Constructor Summary
protected PropertyInitializer(DBObjectProvider pro)
          NB Sub-classes must provide a DBObjectProvider on instantiation
 
Method Summary
abstract  java.lang.Object getPropertyInitialValue(DBObject obj, java.lang.String propertyName)
           
abstract  java.lang.String[] getPropertyNames(java.lang.Class<? extends DBObject> clz)
           
protected  DBObjectProvider getProvider()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyInitializer

protected PropertyInitializer(DBObjectProvider pro)
NB Sub-classes must provide a DBObjectProvider on instantiation

Method Detail

getProvider

protected final DBObjectProvider getProvider()
Returns:
the current DBObjectProvider

getPropertyNames

public abstract java.lang.String[] getPropertyNames(java.lang.Class<? extends DBObject> clz)
Parameters:
clz - the class of object for which supported properties are being requested.
Returns:
the names of properties for DBObjects of the the given class for which this PropertyInitializer will provide an initial value.

getPropertyInitialValue

public abstract java.lang.Object getPropertyInitialValue(DBObject obj,
                                                         java.lang.String propertyName)
                                                  throws PropertyInitializer.InitializationVeto
Returns:
the initial value of the property of the given name for the given DBObject, or throw a PropertyInitializer.InitializationVeto exception.
Throws:
PropertyInitializer.InitializationVeto

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.