|
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.ResultSetInfo
This class contains all of the dataset specific properties and validators. It also establishes the correlation between the ScrollableRowsetAccess DataItem and the server-side RowSet. It also serves as a base class for rowset based data producers.
Field Summary | |
protected static int |
_SPECIAL_ATTR_CNT
|
protected oracle.jbo.ViewObject |
_viewObj
|
static java.lang.String |
CURMSG_ATTR_NAME
|
static java.lang.String |
CURROW_ATTR_NAME
|
static int |
DEFAULT_BUFFER_SIZE
The default number of rows to be retrieved at one time. |
static java.lang.String |
DEFAULT_QUERYCRITERIA_ATTR_NAME
|
protected static java.lang.String |
ERR_PROD_CODE
|
static java.lang.String |
HIGH_ATTR_NAME
|
static java.lang.String |
MODIFIED_ATTR_NAME
|
static java.lang.String |
QUERYCRITERIA_ATTR_NAME
|
static java.lang.String |
ROWCNT_ATTR_NAME
|
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 | |
ResultSetInfo()
|
|
ResultSetInfo(java.lang.String queryViewName)
|
Method Summary | |
void |
addAttribute(ColumnInfo col)
Add a column to the ResultSetInfo. |
void |
addQueryListener(QueryListener ql)
|
void |
attributeChanged(java.lang.String name,
int rowIndex,
java.lang.Object oldValue)
|
java.lang.Object |
clone()
Creates a deep copy of the ResultSetInfo, including the children. |
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()
A subclass specific method for disconnecting and revoking Dataitems Internal to the framework; should never be called by client classes |
protected void |
closeProducerObject()
Close down the ResultSetInfo. |
protected void |
createAssociation()
A hook for derived class to create an association |
protected ProducerObject |
createChild(java.lang.String childName)
Creates a child ColumnInfo, StatusInfo or QueryCriteriaProperty. |
protected oracle.jbo.AttributeDef |
createDynamicAttribute(java.lang.String name)
Creates a dynamic attribute in the BC4J ViewObject. |
protected oracle.jbo.AttributeDef |
createDynamicAttributeInternal(java.lang.String name)
|
protected void |
destroyAssociation()
A hook for derived class to remove an association |
void |
executeQuery()
Execute or re-execute the underlying query. |
protected void |
findViewLinks()
Discovers all ViewAccessor attributes defined in the ViewObject. |
ColumnInfo |
getAttribute(int colIndex)
Return the ColumnInfo that corresponds to the column index. |
ColumnInfo |
getAttribute(java.lang.String name)
Return the ColumnInfo that corresponds to the column name. |
int |
getAttributeCount()
Return the number ColumnInfo objects within the ResultSetInfo. |
ColumnInfo[] |
getAttributeInfo()
Returns the AttributeInfo objects representing the columns returned by the query. |
protected int |
getChildIndex(java.lang.String childName)
Returns the index of this DacObject's specified child. |
protected javax.infobus.DataItem |
getDataItem()
Returns that DataItem for this RowSet. |
java.lang.String |
getQueryCondition()
Retrieve the current WHERE clause of the query statement for the ViewObject. |
java.lang.Object[] |
getQueryConditionParams()
retrieve the bind variable values to use with the condition. |
QueryCriteria |
getQueryCriteria()
Returns the QueryCriteria to be used when executing queries. |
Query |
getQueryInfo()
Returns the QueryInfo object for the ResultSetInfo. |
QueryListener[] |
getQueryListeners()
|
boolean |
getQueryOnOpen()
Returns if the underlying query is automatically executed. |
java.lang.String |
getQueryOrderbyClause()
Retrieve the current ORDER BY clause of the query statement for the ViewObject. |
int |
getRangeSize()
Returns the desired size of the fetch buffer. |
javax.infobus.ScrollableRowsetAccess |
getRowsetAccess()
Returns ScrollableRowsetAccess interface published. |
SessionInfo |
getSession()
return the session associated with this ResultSetInfo |
protected oracle.jbo.ViewObject |
getViewObject()
Returns the server-side ViewObject associated with this ResultSetInfo. |
protected boolean |
isSpecialItemName(java.lang.String name)
|
boolean |
isUpdateable()
Returns the updateable property value. |
void |
mapRowsetAccess(javax.infobus.ScrollableRowsetAccess target)
Maps the ScrollableRowsetAccess interface. |
void |
navigated(int oldCurrent,
int newCurrent)
|
void |
open(boolean openChildren)
Sets up the ResultSetInfo for use by: connect to the server-side ApplicationModule if defined connect to the server-side RowSet executes open() on all child ColumnInfo It throws an IllegalStateException exception if required properties aren't set. |
protected void |
openChildren()
Causes all child objects to be opened. |
protected void |
openDataItems()
Setups up the DataItems that will be published. |
protected void |
openProducerObject()
Sets up the ResultSetInfo for use by: connect to the server-side ApplicationModule if defined connect to the server-side RowSet executes open() on all child ColumnInfo It throws an IllegalStateException exception if required properties aren't set. |
protected void |
openRowSet()
Convienence function for calling open(). |
void |
removeAttribute(ColumnInfo col)
remove a column from the ResultSetInfo. |
void |
removeQueryListener(QueryListener ql)
|
void |
rowsAdded(int rowIndex,
int count)
|
void |
rowsChanged(int rowIndex,
int count)
|
void |
rowsDeleted(int rowIndex,
int count)
|
void |
setAttributeInfo(ColumnInfo[] kids)
An alternative way to add child ColumnInfo objects |
void |
setQueryCondition(java.lang.String cond)
Specify the Where clause of the query statement for the ViewObject. |
void |
setQueryConditionParams(java.lang.Object[] params)
Specify the bind variable values to use with the condition. |
void |
setQueryCriteria(QueryCriteria queryCriteria)
Sets the QueryCriteria to be used when executing queries. |
void |
setQueryInfo(Query info)
Set the QueryInfo object for the ResultSetInfo. |
void |
setQueryOnOpen(boolean queryOnOpen)
Determines if the underlying query is automatically executed. |
void |
setQueryOrderbyClause(java.lang.String orderBy)
Specify the ORDER BY clause of the query statement for the ViewObject. |
void |
setRangeSize(int nuRangeSize)
Sets the size of the fetch buffer. |
void |
setSession(SessionInfo sessInfo)
specify the owning session for this ResultSetInfo. |
protected void |
setViewObject(oracle.jbo.ViewObject vuObj)
Sets the server-side ViewObject associated with this ResultSetInfo. |
Methods inherited from class oracle.dacf.dataset.InfoObject |
addChangeListener, addValidationListener, areParentsValid, clearDirty, fireValidationEvent, forceValid, getChangeListeners, getLocale, getUpdateMode, getValidationListeners, internalValidation, isActive, isDirty, isValid, processValidationEvent, removeChangeListener, removeValidationListener, setActive, setDirty, setLocale, setUpdateable, setValid, 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, setName, setOpen |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildren, getName, 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 java.lang.String CURROW_ATTR_NAME
public static final java.lang.String ROWCNT_ATTR_NAME
public static final java.lang.String HIGH_ATTR_NAME
public static final java.lang.String MODIFIED_ATTR_NAME
public static final java.lang.String CURMSG_ATTR_NAME
public static final java.lang.String QUERYCRITERIA_ATTR_NAME
public static final java.lang.String DEFAULT_QUERYCRITERIA_ATTR_NAME
protected static final int _SPECIAL_ATTR_CNT
protected static final java.lang.String ERR_PROD_CODE
protected oracle.jbo.ViewObject _viewObj
public static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
public ResultSetInfo()
public ResultSetInfo(java.lang.String queryViewName)
Method Detail |
public void setQueryOnOpen(boolean queryOnOpen)
If the QueryOnOpen property is TRUE then the underlying query is automatically executed when the ResultSetInfo is opened.
If the property is false, then it will be necessary for executeQuery() to be called before values are retrieved via the DataItem. The DataItem will still be published on the InfoBus but it will return null values until executeQuery() is called.
The default value for this property is TRUE to maintain backwards compatability with previous versions.
queryOnOpen
- if true then the query is executed on opengetQueryOnOpen()
public boolean getQueryOnOpen()
If the QueryOnOpen property is TRUE then the underlying query is automatically executed when the ResultSetInfo is opened.
If the property is false, then it will be necessary for executeQuery() to be called before values are retrieved via the DataItem. The DataItem will still be published on the InfoBus but it will return null values until executeQuery() is called.
The default value for this property is TRUE to maintain backwards compatability with previous versions.
setQueryOnOpen(boolean queryOnOpen)
public void addAttribute(ColumnInfo col)
col
- The column to be added.public void removeAttribute(ColumnInfo col)
col
- The column to be removed.public ColumnInfo getAttribute(java.lang.String name)
public int getAttributeCount()
public ColumnInfo getAttribute(int colIndex)
public void setAttributeInfo(ColumnInfo[] kids)
kids
- list of child objects which should be
added to this objectpublic ColumnInfo[] getAttributeInfo()
public void setRangeSize(int nuRangeSize)
nuRangeSize
- the new requested size for fetch buffer; size
must be > 0 or -1; -1 indicates retrieve all rows.
The maximum value is the total number of rows.getRangeSize()
public int getRangeSize()
The actual size of the fetch buffer might be different. The actual size of the fetch buffer can be retrieved by querying the associated RowsetAccess DataItem.
setRangeSize(int nuRangeSize)
,
getRowsetAccess()
public java.lang.Object clone()
clone
in class InfoObject
public void addQueryListener(QueryListener ql)
public void removeQueryListener(QueryListener ql)
public QueryListener[] getQueryListeners()
public void setQueryCriteria(QueryCriteria queryCriteria)
queryCriteria
- the QueryCriteria to be used when executing
queries.getQueryCriteria()
public QueryCriteria getQueryCriteria()
setQueryCriteria(QueryCriteria queryCriteria)
public void rowsAdded(int rowIndex, int count)
rowsAdded
in interface oracle.dacf.dataset.QueryCriteriaStoreListener
public void rowsDeleted(int rowIndex, int count)
rowsDeleted
in interface oracle.dacf.dataset.QueryCriteriaStoreListener
public void rowsChanged(int rowIndex, int count)
rowsChanged
in interface oracle.dacf.dataset.QueryCriteriaStoreListener
public void navigated(int oldCurrent, int newCurrent)
navigated
in interface oracle.dacf.dataset.QueryCriteriaStoreListener
public void attributeChanged(java.lang.String name, int rowIndex, java.lang.Object oldValue)
attributeChanged
in interface oracle.dacf.dataset.QueryCriteriaStoreListener
public void setQueryCondition(java.lang.String cond)
Bind variable can be specified using '?' at the location of the value.
cond
- The query statement without WHEREpublic java.lang.String getQueryCondition()
public void setQueryOrderbyClause(java.lang.String orderBy)
orderBy
- The sort order clause without ORDER BYpublic java.lang.String getQueryOrderbyClause()
public java.lang.Object[] getQueryConditionParams()
public void setQueryConditionParams(java.lang.Object[] params)
params
- Array of values to use in the order they are specified in
the condition.public void executeQuery()
This method will throw a DataSourceOperationException runtime exception if there are pending changes. It it recommended that RowSetInfo.isDirty() be checked before calling this method.
DataSourceOperationException
- A Runtime exception thrown when the requested operation
fails.public void setQueryInfo(Query info)
info
- The QueryInfo object that defines the query.public Query getQueryInfo()
public boolean isUpdateable()
isUpdateable
in class InfoObject
#setUpdatable(boolean)
,
#getUpdatable()
public void setSession(SessionInfo sessInfo)
sessInfo
- sess info to which this rowset has to be addedpublic SessionInfo getSession()
public void open(boolean openChildren)
open
in class ProducerObject
openChildren
- true: open all of the child objects.
java.lang.IllegalStateException
- Thrown if open called when required
properties are missing.protected ProducerObject createChild(java.lang.String childName)
createChild
in class InfoObject
childName
- The name for the new child InfoObject
protected void openProducerObject()
openProducerObject
in class ProducerObject
java.lang.IllegalStateException
- Thrown if open called when required
properties are missing.protected void openChildren()
openChildren
in class ProducerObject
protected void openDataItems()
openDataItems
in class ProducerObject
protected void findViewLinks()
If will create a ViewAccessInfo object for each ViewAccessor attribute it discovers in the ViewObject and parents those ViewAccessInfos to this ResultSetInfo.
protected void createAssociation()
protected void destroyAssociation()
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()
ProducerObject
closeChildren
in class ProducerObject
protected void closeDataItems()
ProducerObject
closeDataItems
in class ProducerObject
protected oracle.jbo.ViewObject getViewObject()
protected void setViewObject(oracle.jbo.ViewObject vuObj)
vuObj
- the server-side ViewObject for this ResultSetInfopublic javax.infobus.ScrollableRowsetAccess getRowsetAccess()
public void mapRowsetAccess(javax.infobus.ScrollableRowsetAccess target)
Maps the ScrollableRowsetAccess InfoBus interface on to another
ScrollableRowsetAccess so that actions performed against the DataItem
of this ResultSetInfo are reflected in the other DataItem. There will
be a complete mapping if the data published by target is a
superset. Otherwise the mapping will be partial; i.e. some operations
won't map to target.
protected javax.infobus.DataItem getDataItem()
getDataItem
in class ProducerObject
RowsetAccessImpl
protected void openRowSet()
open(boolean)
,
ProducerObject.open(boolean)
protected oracle.jbo.AttributeDef createDynamicAttribute(java.lang.String name)
protected int getChildIndex(java.lang.String childName)
getChildIndex
in class DacObject
java.lang.IllegalArgumentException
- if the specified child cannot be
found.protected boolean isSpecialItemName(java.lang.String name)
protected oracle.jbo.AttributeDef createDynamicAttributeInternal(java.lang.String name)
|
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.