|
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
This class is the base class for all class that make DataItems available on the InfoBus. It defines the basic mechanisms for:
Field Summary | |
protected java.lang.Object |
_openLock
|
Fields inherited from class oracle.dacf.dataset.DacObject |
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER |
Constructor Summary | |
protected |
ProducerObject()
|
protected |
ProducerObject(java.lang.String name)
|
protected |
ProducerObject(java.lang.String n,
ProducerObject p,
ProducerObject[] c)
|
Method Summary | |
void |
addChild(ProducerObject child)
Add a column to the ResultSetInfo. |
protected void |
addClonedDataItem(DataItemImpl di)
Add a cloned ScrollableRowsetAccess to the ResultSetInfo. |
java.lang.Object |
clone()
Clones the DacObject. |
void |
close()
Generic method for disconnecting the Producer objects from the server objects and revoking any consumed DataItems |
protected abstract void |
closeCheck()
Checks to see if close is permitted. |
protected abstract void |
closeChildren()
A subclass specific method for disconnecting the child objects from their server objects counterparts. |
protected abstract void |
closeDataItems()
A subclass specific method for disconnecting and revoking Dataitems Internal to the framework; should never be called by client classes |
protected abstract void |
closeProducerObject()
A subclass specific method for disconnecting the client object from the appropriate server objects. |
protected javax.infobus.DataItem |
findDataItem(java.lang.String name)
Finds the DataItem indicated by name. |
protected ProducerObject |
findProducerObject(ItemNameTokenizer tokenizer)
Internal: Applications should not use this method. |
protected ProducerObject |
findProducerObject(java.lang.String dataItemName)
Finds the ProducerObject corresponding to dataItemName. |
protected DataItemImpl[] |
getClonedDataItems()
Retrieves the list of cloned ScrollableRowsetAccess for the ResultSetInfo. |
protected javax.infobus.DataItem |
getDataItem()
Returns this object's DataItem. |
protected DataItemImpl |
getDataItemImpl()
Used internally to accesses a DataItem and test for null. |
protected javax.infobus.InfoBusDataProducer |
getDataProducer()
Returns a reference to the InfoBusDataProducer. |
java.lang.String |
getDataSourceName()
Returns the name of the data source. |
java.lang.String |
getFullName()
Returns the full name of the ProducerObject. |
protected boolean |
isAClonedDataItem(DataItemImpl di)
Returns true if the DataItemImpl is on the cloned dataitem list. |
boolean |
isOpen()
Returns true if the ProducerObject has been opened. |
void |
open(boolean openChildren)
Generic method for connecting the producer objects to the server objects. |
protected abstract void |
openChildren()
A subclass specific method for connecting the child objects to their server counterparts. |
protected abstract void |
openDataItems()
A subclass specific method for connecting the Dataitems Internal to the framework; should never be called by client classes |
protected abstract void |
openProducerObject()
A subclass specific method for connecting the client object from the appropriate server objects. |
void |
publishDataItem()
Publishes the DataItem associated with the ProducerObject. |
void |
publishDataItem(boolean publishKids)
Publishes the DataItem associated with the ProducerObject. |
protected void |
removeChild(ProducerObject child)
remove a child from the ProducerObject. |
protected void |
removeClonedDataItem(DataItemImpl di)
Remove a cloned ScrollableRowsetAccess from the ResultSetInfo. |
void |
revokeDataItem()
Revokes the DataItem associated with the ProducerObject. |
protected void |
setClonedDataItems(DataItemImpl[] diList)
Initializes the list of cloned ScrollableRowsetAccess for the ResultSetInfo. |
protected void |
setDataItem(javax.infobus.DataItem nuDataItem)
Sets this object's DataItem. |
void |
setDataSourceName(java.lang.String nuDataSourceName)
Sets the name of the data source. |
void |
setName(java.lang.String name)
Sets the InfoBus bind name of the object. |
protected void |
setOpen(boolean isopen)
Sets the open state of the ProducerObject. |
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, toString, wait, wait, wait |
Field Detail |
protected transient java.lang.Object _openLock
Constructor Detail |
protected ProducerObject()
protected ProducerObject(java.lang.String name)
protected ProducerObject(java.lang.String n, ProducerObject p, ProducerObject[] c)
Method Detail |
public java.lang.Object clone()
The returned clone will not be open. The clone must be opened via open() prior to use.
clone
in class DacObject
open(boolean openChildren)
public void addChild(ProducerObject child)
DacObject.addChild(oracle.dacf.dataset.DacObject)
protected void removeChild(ProducerObject child)
DacObject.removeChild(oracle.dacf.dataset.DacObject)
public void open(boolean openChildren)
openChildren
- true: open all of the child objects.protected abstract void openProducerObject()
protected abstract void openChildren()
protected abstract void openDataItems()
public void close()
protected abstract void closeCheck()
Internal to the framework; should never be called by client classes
DataSourceOperationException
- Occurs when closing isn't
allowed.protected abstract void closeProducerObject()
protected abstract void closeChildren()
protected abstract void closeDataItems()
protected ProducerObject findProducerObject(java.lang.String dataItemName)
dataItemName
- fully qualified DataItem name.
protected ProducerObject findProducerObject(ItemNameTokenizer tokenizer)
This method can cause unpredictable results. Used by findProducerObject(String dataItemName).
findProducerObject(String dataItemName)
public boolean isOpen()
protected void setOpen(boolean isopen)
isopen
- ture if the ProducerObject has been opened.public void setName(java.lang.String name)
setName
in class DacObject
name
- the InfoBus bind name.public void setDataSourceName(java.lang.String nuDataSourceName)
nuDataSourceName
- the name of the data source.getDataSourceName()
public java.lang.String getDataSourceName()
setDataSourceName(String nuDataSourceName)
public java.lang.String getFullName()
The full name has the form session/iterator/column.
public void revokeDataItem()
All consumers of the DataItem must stop using it. Any attempt to access a DataItem after it has been revoked will produce undefined results.
If the DataItem is published again, it will refresh itself based upon its new value.
public void publishDataItem()
all InfoBus listeners will be notified that the DataItem object has become available for consumption.
This method unconditionally publishes the DataItems for all child objects.
A published but unopend DataItem will be un retrievable by InfoBus consumers. The recommend steps are 1) open the object and 2) publish it.
public void publishDataItem(boolean publishKids)
if true, it will also publish the DataItems for all child objects. If false, the method will not publish the child objects.
A published but unopend DataItem will be un retrievable by InfoBus consumers. The recommend steps are 1) open the object and 2) publish it.
publishKids
- if true, descends down the containment
heirarchy, publishing the DataItems for all child
objects.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 javax.infobus.DataItem getDataItem()
A side effect of getDataItem is that if the DataItem does not already exist, it will be created.
This method in all cases will be overridden to handle the particulars of creating the specific type of DataItem associated with each subclass.
protected DataItemImpl getDataItemImpl()
getDataItem()
protected void setDataItem(javax.infobus.DataItem nuDataItem)
This method will first revoke the current DataItem if is has been created.
nuDataItem
- the new DataItem to be associated with this
ProducerObject.protected void addClonedDataItem(DataItemImpl di)
A cloned ScrollableRowsetAccess is a ScrollableRowsetAccess that exposes the ResultSetInfo under a bind name other than the ResultSetInfo's.
di
- The DataItem to be added.protected void removeClonedDataItem(DataItemImpl di)
A cloned ScrollableRowsetAccess is a ScrollableRowsetAccess that exposes the ResultSetInfo under a bind name other than the ResultSetInfo's.
di
- The DataItem to be removed.protected boolean isAClonedDataItem(DataItemImpl di)
protected DataItemImpl[] getClonedDataItems()
A cloned ScrollableRowsetAccess is a ScrollableRowsetAccess that exposes the ResultSetInfo under a bind name other than the ResultSetInfo's.
protected void setClonedDataItems(DataItemImpl[] diList)
A cloned ScrollableRowsetAccess is a ScrollableRowsetAccess that exposes the ResultSetInfo under a bind name other than the ResultSetInfo's.
diList
- The list of cloned DataItems.protected javax.infobus.InfoBusDataProducer getDataProducer()
|
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.