|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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.AttributeInfo
This class contains those properties necessary to support LOV lookups and initializations and default value initialization. AttributeInfo is derived from ColumnInfo, so it has a notion of a SQL type and column name. An AttributeInfo is an attribute of a query and can make reference to an LOV. When an LOV is used to populate a column or set of columns, that reference to the LOV is attached to the AttributeInfo.
An AttributeInfo column can have default values. This allows a default value for a column to be set when a new row is instantiated. AttributeInfo columns may be queriable; that is, you can set a WHERE clause for them.
All other column-specific properties are inherited from the ColumnInfo class.
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 | |
|
AttributeInfo()
Public constructor. |
|
AttributeInfo(int sqlType)
Constructor requiring the java.sql.Type of the AttributeInfo. |
protected |
AttributeInfo(java.lang.String colName)
Constructor requiring the name of the AttributeInfo column. |
Method Summary | |
java.lang.Object |
clone()
Clones the object. |
java.lang.String |
getDefaultValue()
Returns the default or initial value for the AttributeInfo. |
LOVInterface |
getLOV()
Returns the LOV currently in use. |
java.lang.String |
getLOVForeignKeyName()
Gets the foreign key name to be used in the LOV WHERE clause. |
java.lang.String |
getName()
Returns the name of the DacObject. |
RowSetInfo |
getRowSetInfo()
Returns the parent RowSetInfo. |
protected void |
internalValidation(int eventLevel)
Internal: Applications should not use this method. |
boolean |
isDisplayLOVOnNavigateIn()
Returns true if the LOV dialog will be displayed when focus shifts to a control bound to this object. |
boolean |
isQueryable()
Returns true if the attribute is queryable. |
void |
publishAttribute()
Publishes the Attribute and its child items on the InfoBus. |
void |
publishAttribute(boolean activate)
Deprecated. Use publishAttribute() |
void |
revokeAttribute()
Revokes the Attribute and its child items on the InfoBus. |
void |
setDefaultValue(java.lang.String nuDefaultValue)
Sets the default or initial value. |
void |
setDisplayLOVOnNavigateIn(boolean displayOn)
Set to true to display the LOV dialog in response to a navigated-in event on a control bound to this object. |
void |
setLOV(LOVInterface lov)
Specifies the LOV which should be used for selection or validation. |
void |
setLOVForeignKeyName(java.lang.String lovForeignKeyName)
Sets the foreign key name to be used in the LOV WHERE clause. |
void |
setName(java.lang.String st)
Sets the InfoBus bind name of the object. |
void |
setQueryable(boolean queryable)
Sets the queryable property for the attribute. |
void |
validate()
Internal: Applications should not use this method. |
Methods inherited from class oracle.dacf.dataset.InfoObject |
addChangeListener, addValidationListener, areParentsValid, clearDirty, createChild, fireValidationEvent, forceValid, getChangeListeners, getLocale, getUpdateMode, getValidationListeners, isActive, processValidationEvent, removeChangeListener, removeValidationListener, setActive, setLocale, setUpdateable, toString, validate, validate |
Methods inherited from class oracle.dacf.dataset.ProducerObject |
addChild, addClonedDataItem, close, findDataItem, findProducerObject, findProducerObject, getClonedDataItems, getDataItemImpl, getDataProducer, getDataSourceName, getFullName, isAClonedDataItem, isOpen, open, 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 AttributeInfo()
public AttributeInfo(int sqlType)
sqlType
- the SQL type of the attribute, according to
java.sql.Types.protected AttributeInfo(java.lang.String colName)
colName
- the name of the AttributeInfo column.Method Detail |
public java.lang.Object clone()
The LOV cannot be recursively cloned. The caller of AttributeInfo.clone() is responsible for creating and initializing the LOV, and setting the LOV on the cloned AttributeInfo.
clone
in class ColumnInfo
public void setName(java.lang.String st)
ProducerObject
setName
in class ColumnInfo
public java.lang.String getName()
DacObject
getName
in class ColumnInfo
public void setDefaultValue(java.lang.String nuDefaultValue)
The default or initial value is the value given to an Attribute whenever a new row is created in the rowset.
nuDefaultValue
- the default or initial value as a String.getDefaultValue()
public java.lang.String getDefaultValue()
The default or initial value is the value given to an Attribute whenever a new row is created in the RowSet.
setDefaultValue(String nuDefaultValue)
public void setLOV(LOVInterface lov)
lov
- the LOV object to be used.public LOVInterface getLOV()
public boolean isDisplayLOVOnNavigateIn()
public void setDisplayLOVOnNavigateIn(boolean displayOn)
displayOn
- true to display the LOV on a navigated-in
event; false otherwise.public void setLOVForeignKeyName(java.lang.String lovForeignKeyName)
public java.lang.String getLOVForeignKeyName()
public RowSetInfo getRowSetInfo()
public void publishAttribute()
This method will cause the Attribute to be opened if it hasn't been previously opened.
public void publishAttribute(boolean activate)
public void revokeAttribute()
publishAttribute()
public void validate() throws ValidationException
InfoObject
validate
in class InfoObject
ValidationException
protected void internalValidation(int eventLevel) throws ValidationException
Empty, default implementation. Subclasses will override to perform class specific validation strategies.
internalValidation
in class InfoObject
ValidationException
public boolean isQueryable()
Queryable attributes can be used to restrict the query populating the rowset and will be displayed by the FindDialog.
public void setQueryable(boolean queryable)
Queryable attributes can be used to restrict the query populating the rowset and will be displayed by the FindDialog.
queryable
- true if the attribute is queryable;
false otherwise.
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.