|
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
Contains all of the Dac column-specific properties, validators, formatter, format string, column alignment values, and so on. Also contains the data to map between the ImmediateAccess DataItem and the attribute in the server-side Java Business Objects RowSet.
All InfoObjects contain metadata regarding the ImmediateAccess DataItems and the RowSet Access DataItems that goes across to the consumer. Validation listeners and navigation listeners are present, so if the DataItem needs to be validated, instead of propagating the validator among all the DataItems, the DataItems reference the InfoObject and cause the appropriate piece of code to be executed.
Field Summary | |
static int |
DEFAULT
The alignment for this column: DEFAULT is defined as LEFT for text and dates, and RIGHT for numbers. |
protected static java.lang.String |
ERR_PROD_CODE
|
protected static int |
UPDATEABLE_IF_NEW
This data can be updated if it has not been committed to the database. |
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 | |
|
ColumnInfo()
Default constructor. |
|
ColumnInfo(int sqlType)
Constructor requiring the column to be identified by its SQL type according to java.sql.Types. |
protected |
ColumnInfo(java.lang.String colName)
Constructor requiring the column to be identified by its name. |
Method Summary | |
java.lang.Object |
clone()
Clones the DacObject. |
protected void |
closeCheck()
Checks to see if close is permitted. |
protected void |
closeChildren()
A subclass specific method for disconnecting the child objects from their server objects counterparts. |
protected void |
closeDataItems()
Disconnects the ImmediateAccess from the server-side objects Internal to the framework; should never be called by client classes |
protected void |
closeProducerObject()
A subclass specific method for disconnecting the client object from the appropriate server objects. |
protected void |
createPropertyColumn()
Creates the property column for this ColumnView. |
protected oracle.jbo.AttributeDef |
getAttributeDef()
Returns the AttributeRef associated with this ColumnInfo's parent. |
int |
getColumnAlignment()
Returns column horizontal alignment used for display. |
int |
getColumnIndex()
Returns the index of the column within the underlying rowset. |
java.lang.String |
getColumnName()
Returns the column name that can be used in a dynamic WHERE clause. |
int |
getColumnWidth()
Returns the column width used for display. |
protected javax.infobus.DataItem |
getDataItem()
Returns a ImmediateAccess DataItem for this column reference. |
boolean |
getDisplayable()
Returns the value of the displayable property A column has two properties pertaining to its display state: Displayable: whether or not it can be displayed Displayed: whether or not it is displayed. |
boolean |
getDisplayed()
Returns the value of the displayed property A column has two properties pertaining to its display state: Displayable: whether or not it can be displayed Displayed: whether or not it is displayed. |
java.lang.String |
getFormatString()
Gets the format string currently in use. |
Formatter |
getFormatter()
Gets the Formatter currently in use. |
FormatterInfo |
getFormatterInfo()
Returns the information necessary for formatting the Attribute value. |
javax.infobus.ImmediateAccess |
getImmediateAccess()
Returns the ImmediateAccess interface published by this ColumnInfo. |
java.lang.String |
getLabel()
Gets the label to use as the column title or prompt. |
java.lang.String |
getName()
Returns the name of the DacObject. |
int |
getSQLType()
Gets the java.sql.Types of this attribute. |
boolean |
isDirty()
Determines whether the value of the object is changed and needs to be validated. |
boolean |
isNullAllowed()
Returns true if this attribute accepts null values. |
boolean |
isPrimaryKey()
Returns true if this attribute is a or part of a primary key. |
boolean |
isSortingEnabled()
Returns whether sorting is enabled for this column. |
boolean |
isUpdateable()
Returns true if this attribute is updateable. |
boolean |
isUpdateableIfNew()
Returns true if this attribute is updateable only when the current row is a new row. |
boolean |
isValid()
Indicates whether the value currently referenced by the ColumnView is valid. |
protected void |
openChildren()
A subclass specific method for connecting the child objects to their server counterparts. |
protected void |
openDataItems()
A subclass specific method for connecting the Dataitems Internal to the framework; should never be called by client classes |
protected void |
openProducerObject()
Connect to the server-side column objects. |
void |
setColumnAlignment(int alignment)
Specifies the column horizontal alignment. |
void |
setColumnName(java.lang.String columnName)
Deprecated. the column name is retrieved when the ColumnInfo is opened. |
void |
setColumnWidth(int width)
Specifies the column width for display. |
protected void |
setDirty(boolean dirty)
Set the dirty state of the ColumnInfo. |
void |
setDisplayable(boolean displayable)
Sets the value of the displayable property A column has two properties pertaining to its display state: Displayable: whether or not it can be displayed Displayed: whether or not it is displayed. |
void |
setDisplayed(boolean displayed)
Sets the value of the displayed property A column has two properties pertaining to its display state: Displayable: whether or not it can be displayed Displayed: whether or not it is displayed. |
void |
setFormatString(java.lang.String formatString)
Sets the formatter string to be used for formatting. |
void |
setFormatter(Formatter formatterToUse)
Sets the Formatter to be used. |
void |
setFormatterInfo(FormatterInfo formatterInfo)
Sets info necessary for formatting the Attribute value. |
void |
setLabel(java.lang.String label)
Sets the label to use as a column title or prompt. |
void |
setName(java.lang.String st)
Sets the InfoBus bind name of the object. |
void |
setSortingEnabled(boolean sortingEnabled)
Enable/Disable sorting for this column. |
void |
setUpdateableIfNew(boolean b)
Determines whether this attribute is updateable only when the current row is a new row. |
protected void |
setValid(boolean valid)
Sets the validation state of the value current referenced by the ColumnView. |
protected void |
setViewObject(oracle.jbo.ViewObject vo)
|
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, 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 |
Field Detail |
public static final int DEFAULT
protected static final int UPDATEABLE_IF_NEW
protected static final java.lang.String ERR_PROD_CODE
Constructor Detail |
public ColumnInfo()
public ColumnInfo(int sqlType)
protected ColumnInfo(java.lang.String colName)
colName
- the column name.Method Detail |
public void setName(java.lang.String st)
ProducerObject
setName
in class ProducerObject
st
- the InfoBus bind name.public java.lang.String getName()
DacObject
getName
in class DacObject
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 InfoObject
public void setDisplayable(boolean displayable)
displayable
- true indicates that the column can be displayedgetDisplayed()
,
setDisplayed(boolean)
,
getDisplayable()
public boolean getDisplayable()
getDisplayed()
,
setDisplayed(boolean)
,
setDisplayable(boolean)
public void setDisplayed(boolean displayed)
getDisplayable()
,
setDisplayable(boolean)
,
getDisplayed()
public boolean getDisplayed()
getDisplayable()
,
setDisplayable(boolean)
,
setDisplayed(boolean)
public void setColumnName(java.lang.String columnName)
columnName
- the SQL column name.public java.lang.String getColumnName()
The following query :
SELECT DeptXX.DEPTNO AS DEPTNOXX, DeptXX.DNAME AS DNAMEXX, DeptXX.LOC AS LOCXX FROM DEPT DeptXXwill return the full columnName (e.g. DeptXX.DeptNo) for a non-expert mode query. It will return the Attribute's alias name for an expert mode query (e.g. DEPTNOXX). The BC4J alias name for the attribute, has to match the alias name in the query.
This method should be used, when creating dynamic where and order by clauses via ResultSetInfo.setQueryCondition() and ResultSetInfo.setQueryOrderbyClause().
ResultSetInfo.setQueryCondition(String cond)
,
ResultSetInfo.setQueryOrderbyClause(String orderBy)
public int getColumnIndex()
This method should not be called until after the RowSet has been opened. If it is called before the rowset has been opened, it will return -1.
public boolean isDirty()
isDirty
in class InfoObject
InfoObject.setDirty(boolean)
public javax.infobus.ImmediateAccess getImmediateAccess()
public void setFormatter(Formatter formatterToUse)
formatterToUse
- a formatter object.public Formatter getFormatter()
public void setFormatString(java.lang.String formatString)
formatString
- format string to use.public java.lang.String getFormatString()
public void setFormatterInfo(FormatterInfo formatterInfo)
Bean Property editors use this method to set Formatter and the Format string.
public FormatterInfo getFormatterInfo()
Bean property editors use this method to edit the Formatter property.
public void setLabel(java.lang.String label)
label
- the column label to use.public java.lang.String getLabel()
public void setColumnWidth(int width)
width
- the column width.public int getColumnWidth()
public void setColumnAlignment(int alignment)
alignment
- DEFAULT is the default, which will use LEFT for text
and dates, and RIGHT for numbers. Can also be one of
the following constants defined in SwingConstants:
public int getColumnAlignment()
public int getSQLType()
Types
public boolean isUpdateable()
isUpdateable
in class InfoObject
InfoObject.setUpdateable(boolean)
,
#getUpdateable()
public void setUpdateableIfNew(boolean b)
b
- true if this is attribute can only be edited when the row is
new.public boolean isUpdateableIfNew()
public void setSortingEnabled(boolean sortingEnabled)
sortingEnabled
- allows the sorting on this column.public boolean isSortingEnabled()
If true, this column to be sorted.
setSortingEnabled(boolean sortingEnabled)
public boolean isPrimaryKey()
public boolean isNullAllowed()
public boolean isValid()
isValid
in class InfoObject
InfoObject
protected void setValid(boolean valid)
setValid
in class InfoObject
valid
- true if the value is valid.InfoObject
protected void setViewObject(oracle.jbo.ViewObject vo)
protected void setDirty(boolean dirty)
A ColumnInfo is dirty if is value has been changed and that value has not been saved to the server.
setDirty
in class InfoObject
dirty
- true indicates that the data value should be
considered dirty and needs to be saved to the server.InfoObject.isDirty()
protected void openProducerObject()
openProducerObject
in class ProducerObject
protected void openChildren()
openChildren
in class ProducerObject
protected void openDataItems()
openDataItems
in class ProducerObject
protected void closeCheck()
Internal to the framework; should never be called by client classes
closeCheck
in class ProducerObject
DataSourceOperationException
- Occurs when closing isn't
allowed.protected void closeProducerObject()
closeProducerObject
in class ProducerObject
protected void closeChildren()
closeChildren
in class ProducerObject
protected void closeDataItems()
closeDataItems
in class ProducerObject
protected void createPropertyColumn()
This method must be called after the column is opened. Furthermore, it is recommended the property columns for the individual columns not be called until after all the columns in a RowSet have been opened.
protected javax.infobus.DataItem getDataItem()
getDataItem
in class ProducerObject
protected oracle.jbo.AttributeDef getAttributeDef()
|
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.