|
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
oracle.dacf.dataset.ColumnInfo
oracle.dacf.dataset.CalculatedAttributeInfo
The CalculatedAttributeInfo class represents a read-only column derived from
ColumnInfo
. CalculatedAttributeInfo captures the
notion that
a given value is dependent on the values of other columns. This
class, however, does not perform the calculations itself. Methods on
CalculatedAttributeInfo
identify "sources", where a source is a ColumnInfo object that the
CalculatedAttributeInfo is dependent upon.
For example, addSource adds a dependency that should be
tracked by the CalculatedAttributeInfo.
CalculatedAttributeInfo
tracks the changes in its dependencies. When a change occurs, it calls the
calculate method on an object
that implements the Calculator
interface. The
calculate method computes the new value and stores it
through the ImmediateAccess interface into a transient column in the
underlying Java Business Objects rowset.
ColumnInfo
,
Calculator
Field Summary |
Fields inherited from class oracle.dacf.dataset.ColumnInfo |
DEFAULT, ERR_PROD_CODE, UPDATEABLE_IF_NEW |
Fields inherited from class oracle.dacf.dataset.InfoObject |
_updateMode, LEVEL_APPLICATION, LEVEL_ATTRIBUTE, LEVEL_COLUMN, LEVEL_QUERY_VIEW, LEVEL_ROOT, LEVEL_ROW, LEVEL_ROWSET, LEVEL_SESSION, PROPERTIES_COLUMN_NAME, UPDATEABLE_FALSE, UPDATEABLE_MAX_VAL, UPDATEABLE_TRUE, UPDATEABLE_UNDEFINED |
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 | |
CalculatedAttributeInfo()
Public constructor. |
|
CalculatedAttributeInfo(int sqlType)
Public constructor requiring the java.sql.Type of the CalculatedAttributeInfo. |
|
CalculatedAttributeInfo(java.lang.String colName)
Constructor requiring the name of the CalculatedAttributeInfo column. |
Method Summary | |
void |
addSource(ColumnInfo col)
Adds a ColumnInfo as a source. |
void |
attributeChanged(AttributeChangeEvent e)
A method defined by the ChangeListener interface, called whenever an attribute of the current row is changed. |
Calculator |
getCalculator()
Returns a reference to the current Calculator. |
java.lang.String |
getName()
Returns the name of the DacObject. |
RowSetInfo |
getRowSetInfo()
Returns the parent RowSetInfo. |
ColumnInfo[] |
getSources()
Returns a list of all of the source ColumnInfos. |
boolean |
isQueryable()
Returns true if the attribute is queryable. |
void |
open(boolean openChildren)
Generic method for connecting the producer objects to the server objects. |
void |
removeSource(ColumnInfo col)
Removes a ColumnInfo as a source. |
void |
rowAdded(RowChangeEvent e)
A method defined by the ChangeListener interface, called whenever a row has been added to a rowset. |
void |
rowsetCleared(RowSetChangeEvent e)
A method defined by the ChangeListener interface, called whenever the rowset is cleared. |
void |
rowsetPopulated(RowSetChangeEvent e)
A method defined by the ChangeListener interface, called whenever the rowset is populated. |
void |
rowToBeRemoved(RowChangeEvent e)
A method defined by the ChangeListener interface, called whenever a before a row is removed from a rowset. |
void |
rowUpdated(RowChangeEvent e)
A method defined by the ChangeListener interface, called whenever a row has been updated. |
void |
setCalculator(Calculator calculator)
Specifies the Calculator that will compute the value. |
void |
setName(java.lang.String st)
Sets the InfoBus bind name of the object. |
void |
setSources(ColumnInfo[] sources)
Sets the source ColumnInfos. |
Methods inherited from class oracle.dacf.dataset.InfoObject |
addChangeListener, addValidationListener, areParentsValid, clearDirty, createChild, fireValidationEvent, forceValid, getChangeListeners, getLocale, getUpdateMode, getValidationListeners, internalValidation, isActive, processValidationEvent, removeChangeListener, removeValidationListener, setActive, setLocale, setUpdateable, toString, validate, validate, validate |
Methods inherited from class oracle.dacf.dataset.ProducerObject |
addChild, addClonedDataItem, close, findDataItem, findProducerObject, findProducerObject, getClonedDataItems, getDataItemImpl, getDataProducer, getDataSourceName, getFullName, isAClonedDataItem, isOpen, publishDataItem, publishDataItem, removeChild, removeClonedDataItem, revokeDataItem, setClonedDataItems, setDataItem, setDataSourceName, setOpen |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, 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 |
Constructor Detail |
public CalculatedAttributeInfo()
public CalculatedAttributeInfo(int sqlType)
sqlType
- the SQL type of the attribute, according to java.sql.Types.public CalculatedAttributeInfo(java.lang.String colName)
colName
- the name of the CalculatedAttributeInfo column.Method Detail |
public void setCalculator(Calculator calculator)
The Calculator is responsible for computing the value based upon the value of the source ColumnInfo objects.
calculator
- the Calculator that will compute the value.getCalculator()
,
Calculator
public Calculator getCalculator()
The Calculator is responsible for computing the value based upon the value of the source ColumnInfo objects.
setCalculator(Calculator calculator)
,
Calculator
public void addSource(ColumnInfo col)
col
- the ColumnInfo to be added as a source.Calculator
public void removeSource(ColumnInfo col)
col
- the ColumnInfo to be added as a source.Calculator
public ColumnInfo[] getSources()
public void setSources(ColumnInfo[] sources)
sources
- a list of all the source ColumnInfos.public void setName(java.lang.String st)
ProducerObject
setName
in class ColumnInfo
public java.lang.String getName()
DacObject
getName
in class ColumnInfo
public RowSetInfo getRowSetInfo()
public boolean isQueryable()
Queryable attributes can be used to restrict the query populating the rowset and will be displayed by the FindDialog.
public void rowsetPopulated(RowSetChangeEvent e)
rowsetPopulated
in interface ChangeListener
e
- a RowChangeEvent.RowSetChangeEvent
public void rowsetCleared(RowSetChangeEvent e)
rowsetCleared
in interface ChangeListener
e
- a RowChangeEvent.RowSetChangeEvent
public void rowAdded(RowChangeEvent e)
rowAdded
in interface ChangeListener
e
- a RowChangeEvent.RowChangeEvent
public void rowUpdated(RowChangeEvent e)
rowUpdated
in interface ChangeListener
e
- a RowChangeEvent.RowChangeEvent
public void rowToBeRemoved(RowChangeEvent e)
rowToBeRemoved
in interface ChangeListener
e
- a RowChangeEvent.RowChangeEvent
public void attributeChanged(AttributeChangeEvent e)
attributeChanged
in interface ChangeListener
e
- a RowChangeEvent.AttributeChangeEvent
public void open(boolean openChildren)
ProducerObject
open
in class ProducerObject
openChildren
- true: open all of the child objects.
|
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.