|
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.DataItemImpl
This class is the base class for all InfoBus data item implementations.
This class provides implementations for the DataItem, DataItemChangeManager, and DataItemValidate interfaces.
Field Summary |
Fields inherited from class oracle.dacf.dataset.DacObject |
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER |
Constructor Summary | |
protected |
DataItemImpl()
|
protected |
DataItemImpl(java.lang.String name,
javax.infobus.InfoBusEventListener source)
|
protected |
DataItemImpl(java.lang.String name,
javax.infobus.InfoBusEventListener source,
ProducerObject producerObject,
DacObject parent)
Creates a data item with a given name and InfoBus data source. |
Method Summary | |
void |
addDataItemChangeListener(javax.infobus.DataItemChangeListener l)
Adds a listener for DataItemChange events. |
java.lang.Object |
clone()
Copies the data item. |
protected void |
doPostRollback()
Internal: Applications should not use this method. |
protected void |
doPreRollback()
Internal: Applications should not use this method. |
protected javax.infobus.DataItem |
findDataItem(java.lang.String name)
Find the DataItem indicated by name. |
protected void |
fireItemsAvailable(javax.infobus.InfoBus ib,
java.lang.String prefix,
javax.infobus.InfoBusDataProducer src)
Publishes the availability of the DataItems on the InfoBus. |
protected void |
fireItemsAvailable(javax.infobus.InfoBus ib,
java.lang.String prefix,
javax.infobus.InfoBusDataProducer src,
boolean doKids)
Deprecated. |
protected void |
fireItemsRevoked(javax.infobus.InfoBus ib,
java.lang.String prefix,
javax.infobus.InfoBusDataProducer src)
Revokes the availability of the DataItems on the InfoBus. |
protected javax.infobus.DataItemChangeManagerSupport |
getDataItemChangeSupport()
Returns the InfoBus object that fires DataItemChange events. |
ProducerObject |
getProducerObject()
Returns the data object that created this data item. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a property of the data item. |
javax.infobus.InfoBusEventListener |
getSource()
Returns the InfoBus data source that produced this data item. |
boolean |
isPublished()
Indicates whether the DataItem has been published on the InfoBus. |
protected void |
postRollback()
Internal: Applications should not use this method. |
protected void |
preRollback()
Internal: Applications should not use this method. |
protected void |
publish()
|
protected void |
publish(boolean publishKids)
|
void |
release()
Disposes of this data item, and any of its sub-items. |
void |
removeDataItemChangeListener(javax.infobus.DataItemChangeListener l)
Removes a DataItemChange listener. |
protected void |
revoke()
|
protected void |
setProducerObject(ProducerObject producerObject)
Sets the data object that created this data item. |
void |
setSource(javax.infobus.InfoBusEventListener src)
Returns the InfoBus data source that produced this data item. |
protected void |
shutdown()
Internal: Applications should not use this method. |
java.lang.String |
toString()
Returns a string representation of the data item for debugging. |
void |
validateItem()
Validates the data item. |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setName, setParent, setPrefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected DataItemImpl()
protected DataItemImpl(java.lang.String name, javax.infobus.InfoBusEventListener source)
protected DataItemImpl(java.lang.String name, javax.infobus.InfoBusEventListener source, ProducerObject producerObject, DacObject parent)
name
- The name of the data item.source
- The InfoBus data source for the data item.Method Detail |
public java.lang.Object clone()
clone
in class DacObject
public final ProducerObject getProducerObject()
protected void shutdown()
protected void setProducerObject(ProducerObject producerObject)
protected javax.infobus.DataItem findDataItem(java.lang.String name)
The name is generally of the form: oracle/Session/Iterator/Column and will contain that portion that has yet to be resolved
protected void preRollback()
Caches the current row number. This method provides a hook to help calculatethe currency.
protected void doPreRollback()
protected void postRollback()
protected void doPostRollback()
protected void publish()
protected void publish(boolean publishKids)
public boolean isPublished()
protected void revoke()
protected void fireItemsAvailable(javax.infobus.InfoBus ib, java.lang.String prefix, javax.infobus.InfoBusDataProducer src)
ib
- The InfoBus to publish uponprefix
- The DataItem name prefix to be prepended to this
object's name.src
- The InfoBusDataProducer source object.protected void fireItemsAvailable(javax.infobus.InfoBus ib, java.lang.String prefix, javax.infobus.InfoBusDataProducer src, boolean doKids)
protected void fireItemsRevoked(javax.infobus.InfoBus ib, java.lang.String prefix, javax.infobus.InfoBusDataProducer src)
ib
- The InfoBus to publish uponprefix
- The DataItem name prefix to be prepended to this
object's name.src
- The InfoBusDataProducer source object.public java.lang.Object getProperty(java.lang.String propertyName)
DataItemProperties defines the properties supported.
getProperty
in interface javax.infobus.DataItem
propertyName
- The name of the property.
public javax.infobus.InfoBusEventListener getSource()
getSource
in interface javax.infobus.DataItem
public void setSource(javax.infobus.InfoBusEventListener src)
public void release()
release
in interface javax.infobus.DataItem
public final void addDataItemChangeListener(javax.infobus.DataItemChangeListener l)
addDataItemChangeListener
in interface javax.infobus.DataItemChangeManager
l
- The listener to add.public void removeDataItemChangeListener(javax.infobus.DataItemChangeListener l)
removeDataItemChangeListener
in interface javax.infobus.DataItemChangeManager
l
- The listener to remove.public void validateItem() throws javax.infobus.InvalidDataException
validateItem
in interface DataItemValidate
javax.infobus.InvalidDataException
- If the data item is invalid.protected final javax.infobus.DataItemChangeManagerSupport getDataItemChangeSupport()
Subclasses can use this object to fire change events to the data item's change listeners.
public java.lang.String toString()
|
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.