|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.dataset.DacObject
oracle.dacf.dataset.ProducerObject
oracle.dacf.dataset.InfoObject
This abstract class defines the root object of the InfoObject tree. This is the base class for:
This class provides functionality for opening and closing a connection between client and server objects. It also provides validation functionality. It is possible to subclass InfoObject, but you must ensure that the Navigation Manager, Validation Manager, Error Manager, and Style Manager will be able to handle the new objects correctly.
InfoObjects can abstract Java Business Objects and add additional funtionality on top of them: validation, navigation, formatting, subsetting, and so on.
Applications should not instantiate this class directly.
SessionInfo
,
ResultSetInfo
,
RowSetInfo
,
LOVRowSetInfo
,
ColumnInfo
,
AttributeInfo
,
LOVAttributeInfo
Field Summary | |
protected int |
_updateMode
Property used to determine whether the InfoObject is updateable. |
static int |
LEVEL_APPLICATION
Integer constant used by the Navigation and Validation Managers. |
static int |
LEVEL_ATTRIBUTE
Integer constant used by the Navigation and Validation Managers. |
static int |
LEVEL_COLUMN
Deprecated. replaced by LEVEL_ATTRIBUTE |
static int |
LEVEL_QUERY_VIEW
Deprecated. replaced by LEVEL_ROWSET |
static int |
LEVEL_ROOT
Integer constant used by the Navigation and Validation Managers. |
static int |
LEVEL_ROW
Integer constant used by the Navigation and Validation Managers. |
static int |
LEVEL_ROWSET
Integer constant used by the Navigation and Validation Managers. |
static int |
LEVEL_SESSION
Integer constant used by the Navigation and Validation Managers. |
static java.lang.String |
PROPERTIES_COLUMN_NAME
String constant used by the Navigation and Validation Managers. |
protected static int |
UPDATEABLE_FALSE
Integer constant used by the Navigation and Validation Managers. |
protected static int |
UPDATEABLE_MAX_VAL
Integer constant used by the Navigation and Validation Managers. |
protected static int |
UPDATEABLE_TRUE
Integer constant used by the Navigation and Validation Managers. |
protected static int |
UPDATEABLE_UNDEFINED
Integer constant used by the Navigation and Validation Managers. |
Fields inherited from class oracle.dacf.dataset.ProducerObject |
_openLock |
Fields inherited from class oracle.dacf.dataset.DacObject |
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER |
Constructor Summary | |
protected |
InfoObject()
Default constructor. |
protected |
InfoObject(java.lang.String name)
Constructor requiring the name of the InfoObject. |
protected |
InfoObject(java.lang.String n,
InfoObject p,
InfoObject[] c)
Constructor requiring the name of the InfoObject, name of a parent object and an array of one or more child objects. |
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds a Change listener to this InfoObject. |
void |
addValidationListener(ValidationListener listener)
Adds a Validation listener to this InfoObject. |
boolean |
areParentsValid()
Determines if the chain of parent objects are valid. |
protected void |
clearDirty()
Clears the dirty state of the InfoObject and all its children. |
java.lang.Object |
clone()
Clones the DacObject. |
protected ProducerObject |
createChild(java.lang.String childName)
This method is provided to be overriden by the derived classes to support creation of InfoObjects on the fly. |
protected void |
fireValidationEvent(java.lang.String itemName,
int eventLevel,
javax.infobus.DataItem item)
Causes any attached validation listeners for the specified validation level to be executed. |
void |
forceValid()
Forces an InfoObject and all of its children into a valid state. |
protected ChangeListener[] |
getChangeListeners()
Returns all the registered change listeners |
protected java.util.Locale |
getLocale()
Returns the locale for the InfoObject. |
protected int |
getUpdateMode()
Returns the value of the Updateable tri-state property. |
protected ValidationListener[] |
getValidationListeners()
Returns all of the registered validation listeners. |
protected void |
internalValidation(int eventLevel)
Internal: Applications should not use this method. |
boolean |
isActive()
Deprecated. |
boolean |
isDirty()
Indicates whether the InfoObject is dirty. |
boolean |
isUpdateable()
Returns the updateable property value. |
boolean |
isValid()
Indicates whether the InfoObject is valid. |
protected void |
processValidationEvent(java.lang.String childItemName,
int eventLevel)
Deprecated. Non-functional |
void |
removeChangeListener(ChangeListener listener)
Removes a Change listener from this control. |
void |
removeValidationListener(ValidationListener listener)
Removes a Validation listener from this control. |
void |
setActive(boolean nuActive,
boolean propagate)
Deprecated. |
protected void |
setDirty(boolean dirty)
Sets the dirty state of the InfoObject. |
protected void |
setLocale(java.util.Locale nuLocale)
Sets the locale for the InfoObject and all of its child objects. |
void |
setUpdateable(boolean nuUpdateable)
Sets the updateable property. |
protected void |
setValid(boolean valid)
Sets the validation state of the InfoObject. |
java.lang.String |
toString()
Returns a string containing the class name and the name of the specific instance. |
protected void |
validate()
Internal: Applications should not use this method. |
protected void |
validate(int eventLevel)
Internal: Applications should not use this method. |
protected void |
validate(java.lang.String name,
int eventLevel,
DataItemImpl di)
Internal: Applications should not use this method. |
Methods inherited from class oracle.dacf.dataset.ProducerObject |
addChild, addClonedDataItem, close, closeCheck, closeChildren, closeDataItems, closeProducerObject, findDataItem, findProducerObject, findProducerObject, getClonedDataItems, getDataItem, getDataItemImpl, getDataProducer, getDataSourceName, getFullName, isAClonedDataItem, isOpen, open, openChildren, openDataItems, openProducerObject, publishDataItem, publishDataItem, removeChild, removeClonedDataItem, revokeDataItem, setClonedDataItems, setDataItem, setDataSourceName, setName, setOpen |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setParent, setPrefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int LEVEL_COLUMN
public static final int LEVEL_ATTRIBUTE
public static final int LEVEL_ROW
public static final int LEVEL_QUERY_VIEW
public static final int LEVEL_ROWSET
public static final int LEVEL_SESSION
public static final int LEVEL_APPLICATION
public static final int LEVEL_ROOT
public static final java.lang.String PROPERTIES_COLUMN_NAME
protected static final int UPDATEABLE_UNDEFINED
protected static final int UPDATEABLE_FALSE
protected static final int UPDATEABLE_TRUE
protected static final int UPDATEABLE_MAX_VAL
protected int _updateMode
Constructor Detail |
protected InfoObject()
protected InfoObject(java.lang.String name)
name
- the name of the InfoObject.protected InfoObject(java.lang.String n, InfoObject p, InfoObject[] c)
n
- the name of the InfoObject.p
- the parent object for the InfoObject.c
- an array of child InfoObjects.Method Detail |
public java.lang.Object clone()
ProducerObject
The returned clone will not be open. The clone must be opened via open() prior to use.
clone
in class ProducerObject
ProducerObject.open(boolean openChildren)
public void setActive(boolean nuActive, boolean propagate)
public boolean isActive()
public void addValidationListener(ValidationListener listener)
listener
- the listener to add.public void removeValidationListener(ValidationListener listener)
listener
- the listener to remove.public void addChangeListener(ChangeListener listener)
listener
- the listener to add.public void removeChangeListener(ChangeListener listener)
listener
- the listener to remove.public java.lang.String toString()
public void setUpdateable(boolean nuUpdateable)
nuUpdateable
- the new value of for the updateable property.#getUpdatable(>)
,
#isUpdatable()
public boolean isUpdateable()
setUpdateable(boolean)
,
#getUpdateable()
protected int getUpdateMode()
The property can have one of three values:
setUpdateable(boolean)
,
isUpdateable()
protected void setLocale(java.util.Locale nuLocale)
nuLocale
- the new locale to be used.getLocale()
protected java.util.Locale getLocale()
setLocale(Locale nuLocale)
protected ValidationListener[] getValidationListeners()
protected ChangeListener[] getChangeListeners()
protected void processValidationEvent(java.lang.String childItemName, int eventLevel) throws ValidationException
ValidationException
protected void validate() throws ValidationException
ValidationException
protected void validate(int eventLevel) throws ValidationException
ValidationException
protected void validate(java.lang.String name, int eventLevel, DataItemImpl di) throws ValidationException
name
- dataitem nameeventLevel
- validation leveldi
- DataItemImpl pointed to by name
ValidationException
protected void internalValidation(int eventLevel) throws ValidationException
Empty, default implementation. Subclasses will override to perform class specific validation strategies.
ValidationException
protected void fireValidationEvent(java.lang.String itemName, int eventLevel, javax.infobus.DataItem item) throws ValidationException
ValidationException
- passes on any thrown
ValidationException objects.public boolean isValid()
setValid(boolean)
public boolean areParentsValid()
Recurses up the containment hierarchy checking if any of the parent objects are valid.
isValid()
protected void setValid(boolean valid)
valid
- true if the value is valid.isValid()
public boolean isDirty()
setDirty(boolean)
protected void setDirty(boolean dirty)
dirty
- true if the value is dirty.isDirty()
protected void clearDirty()
isDirty()
public void forceValid()
isValid()
protected ProducerObject createChild(java.lang.String childName)
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.