|
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.DataItemImpl
oracle.dacf.dataset.QueryCriteriaRowset
The DataItem that exposed the criteria to be utilized when executing the query against the database.
| Field Summary |
| Fields inherited from class oracle.dacf.dataset.DacObject |
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER |
| Constructor Summary | |
QueryCriteriaRowset()
|
|
QueryCriteriaRowset(java.lang.String name,
javax.infobus.InfoBusEventListener source,
QueryCriteria qc)
|
|
QueryCriteriaRowset(java.lang.String name,
javax.infobus.InfoBusEventListener source,
QueryCriteria qc,
DacObject parent)
|
|
| Method Summary | |
protected java.lang.Object[] |
_getColumnLabels()
get all the column labels |
boolean |
absolute(int rowNumber)
|
void |
attributeChanged(java.lang.String name,
int rowIndex,
java.lang.Object oldValue)
|
boolean |
canDelete()
|
boolean |
canInsert()
|
boolean |
canUpdate()
|
boolean |
canUpdate(int columnIndex)
|
boolean |
canUpdate(java.lang.String columnName)
|
java.lang.Object |
clone()
Copies the data item. |
void |
deleteRow()
|
boolean |
first()
|
void |
flush()
|
int |
getBufferSize()
Returns the size of the "fetch" buffer. |
int |
getColumnCount()
|
java.lang.String |
getColumnDatatypeName(int columnIndex)
|
int |
getColumnDatatypeNumber(int index)
|
java.lang.Object |
getColumnItem(int colNum)
|
java.lang.Object |
getColumnItem(java.lang.String colName)
|
java.lang.String |
getColumnName(int colIndex)
Gets the name of the column at postion n. |
protected oracle.dacf.dataset.QueryCriteriaStore |
getCriteriaStore()
Returns the QueryCriteriaStore for the associated QueryCriteria. |
javax.infobus.DbAccess |
getDb()
|
int |
getHighWaterMark()
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a property of the data item. |
protected oracle.dacf.dataset.QueryCriteriaView |
getQueryCriteriaView()
|
int |
getRow()
|
int |
getRowCount()
|
java.lang.Object |
getUserData(int index)
get user entered data for this column |
javax.infobus.ArrayAccess |
getView(int viewSize)
Returns an ArrayAccess that provides access to the rows in range. |
int |
getViewStart()
|
boolean |
hasMoreRows()
|
boolean |
isUpperColumns()
Returns the upper-columns flag for the current Row. |
boolean |
last()
|
void |
lockRow()
|
void |
navigated(int old,
int nu)
|
javax.infobus.ScrollableRowsetAccess |
newCursor()
|
void |
newRow()
Adds a new row to the QueryCriteriaRowset. |
boolean |
next()
|
boolean |
previous()
|
boolean |
relative(int numRows)
|
void |
rowsAdded(int rowIndex,
int count)
|
void |
rowsChanged(int rowIndex,
int count)
|
void |
rowsDeleted(int rowIndex,
int count)
|
void |
scrollView(int numRows)
|
void |
setBufferSize(int size)
Specifies the size of the "fetch" buffer. |
void |
setColumnValue(int columnIndex,
java.lang.Object obj)
|
void |
setColumnValue(java.lang.String columnName,
java.lang.Object obj)
|
protected void |
setCriteriaStore(oracle.dacf.dataset.QueryCriteriaStore queryCriteriaStore)
Sets the QueryCriteriaStore for the associated QueryCriteria. |
protected void |
setQueryCriteriaView(oracle.dacf.dataset.QueryCriteriaView queryCriteriaView)
|
void |
setUpperColumns(boolean isUpper)
Sets the upper-columns flag for the current Row. |
void |
setUserData(int index,
java.lang.Object value)
set user entered data for this column |
void |
setViewStart(int viewStart)
|
void |
validateCurrentRow()
|
void |
validateRowset()
|
| Methods inherited from class oracle.dacf.dataset.DataItemImpl |
addDataItemChangeListener, doPostRollback, doPreRollback, findDataItem, fireItemsAvailable, fireItemsAvailable, fireItemsRevoked, getDataItemChangeSupport, getProducerObject, getSource, isPublished, postRollback, preRollback, publish, publish, release, removeDataItemChangeListener, revoke, setProducerObject, setSource, shutdown, toString, validateItem |
| Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setName, setParent, setPrefix |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryCriteriaRowset()
public QueryCriteriaRowset(java.lang.String name,
javax.infobus.InfoBusEventListener source,
QueryCriteria qc)
public QueryCriteriaRowset(java.lang.String name,
javax.infobus.InfoBusEventListener source,
QueryCriteria qc,
DacObject parent)
| Method Detail |
public java.lang.Object clone()
DataItemImpl
clone in class DataItemImplprotected void setQueryCriteriaView(oracle.dacf.dataset.QueryCriteriaView queryCriteriaView)
protected oracle.dacf.dataset.QueryCriteriaView getQueryCriteriaView()
protected void setCriteriaStore(oracle.dacf.dataset.QueryCriteriaStore queryCriteriaStore)
The QueryCriteriaStore stores the query conditions that will be later set on the BC4J ViewCriteria
queryCriteriaStore - the QueryCriteriaStore to be used.getCriteriaStore(),
protected oracle.dacf.dataset.QueryCriteriaStore getCriteriaStore()
setCriteriaStore(QueryCriteriaStore queryCriteriaStore)
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 old,
int nu)
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.QueryCriteriaStoreListenerpublic final int getColumnCount()
getColumnCount in interface javax.infobus.RowsetAccess
public final java.lang.String getColumnName(int colIndex)
throws java.lang.IndexOutOfBoundsException
getColumnName in interface javax.infobus.RowsetAccesscolIndex - the base 1 offset of the column; the first column is at
colIndex value 1.
java.lang.IndexOutOfBoundsException
public final int getColumnDatatypeNumber(int index)
throws java.lang.IndexOutOfBoundsException
getColumnDatatypeNumber in interface javax.infobus.RowsetAccessjava.lang.IndexOutOfBoundsException
public final java.lang.String getColumnDatatypeName(int columnIndex)
throws java.lang.IndexOutOfBoundsException
getColumnDatatypeName in interface javax.infobus.RowsetAccessjava.lang.IndexOutOfBoundsException
public boolean next()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
next in interface javax.infobus.RowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationExceptionpublic final int getHighWaterMark()
getHighWaterMark in interface javax.infobus.RowsetAccesspublic final boolean hasMoreRows()
hasMoreRows in interface javax.infobus.RowsetAccess
public final java.lang.Object getColumnItem(int colNum)
throws java.lang.IndexOutOfBoundsException
getColumnItem in interface javax.infobus.RowsetAccessjava.lang.IndexOutOfBoundsException
public java.lang.Object getColumnItem(java.lang.String colName)
throws javax.infobus.ColumnNotFoundException,
javax.infobus.DuplicateColumnException
getColumnItem in interface javax.infobus.RowsetAccessjavax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
public void newRow()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
newRow in interface javax.infobus.RowsetAccessjava.sql.SQLException - if the row creation or insert fails
javax.infobus.RowsetValidationException - if the QueryCriteriaRowset can't be
updated
public final void setColumnValue(int columnIndex,
java.lang.Object obj)
throws java.lang.IndexOutOfBoundsException,
javax.infobus.RowsetValidationException,
java.sql.SQLException
setColumnValue in interface javax.infobus.RowsetAccessjava.lang.IndexOutOfBoundsException
javax.infobus.RowsetValidationException
java.sql.SQLException
public void setColumnValue(java.lang.String columnName,
java.lang.Object obj)
throws javax.infobus.ColumnNotFoundException,
javax.infobus.DuplicateColumnException,
javax.infobus.RowsetValidationException,
java.sql.SQLException
setColumnValue in interface javax.infobus.RowsetAccessjavax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
javax.infobus.RowsetValidationException
java.sql.SQLException
public void deleteRow()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
deleteRow in interface javax.infobus.RowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public void flush()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
flush in interface javax.infobus.RowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public void lockRow()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
lockRow in interface javax.infobus.RowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationExceptionpublic final boolean canInsert()
canInsert in interface javax.infobus.RowsetAccesspublic final boolean canUpdate()
canUpdate in interface javax.infobus.RowsetAccess
public boolean canUpdate(java.lang.String columnName)
throws javax.infobus.ColumnNotFoundException,
javax.infobus.DuplicateColumnException
canUpdate in interface javax.infobus.RowsetAccessjavax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
public final boolean canUpdate(int columnIndex)
throws java.lang.IndexOutOfBoundsException
canUpdate in interface javax.infobus.RowsetAccessjava.lang.IndexOutOfBoundsExceptionpublic final boolean canDelete()
canDelete in interface javax.infobus.RowsetAccesspublic javax.infobus.DbAccess getDb()
getDb in interface javax.infobus.RowsetAccesspublic javax.infobus.ScrollableRowsetAccess newCursor()
newCursor in interface javax.infobus.ScrollableRowsetAccesspublic final void setBufferSize(int size)
The fetch buffer size is also the upper limit on size of the ArrayAccess returned by getView(). The requested value can not exceed the value set in the associated ResultSetInfo.
setBufferSize in interface javax.infobus.ScrollableRowsetAccesssize - the number of rows to be retrieved at a time. size
must be > 0 or -1; -1 indicates retrieve all rows.#getView(),
ResultSetInfo.getRangeSize(),
ResultSetInfo.setRangeSize(int nuRangeSize)public final int getBufferSize()
The fetch buffer size is also the upper limit on size of the ArrayAccess returned by getView().
getBufferSize in interface javax.infobus.ScrollableRowsetAccess#getView()
public boolean previous()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
previous in interface javax.infobus.ScrollableRowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public boolean first()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
first in interface javax.infobus.ScrollableRowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public boolean last()
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
last in interface javax.infobus.ScrollableRowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public boolean relative(int numRows)
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
relative in interface javax.infobus.ScrollableRowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationException
public boolean absolute(int rowNumber)
throws java.sql.SQLException,
javax.infobus.RowsetValidationException
absolute in interface javax.infobus.ScrollableRowsetAccessjava.sql.SQLException
javax.infobus.RowsetValidationExceptionpublic final int getRowCount()
getRowCount in interface javax.infobus.ScrollableRowsetAccesspublic final int getRow()
getRow in interface javax.infobus.ScrollableRowsetAccess
public void validateRowset()
throws javax.infobus.RowsetValidationException
javax.infobus.RowsetValidationException
public void validateCurrentRow()
throws javax.infobus.RowsetValidationException
javax.infobus.RowsetValidationExceptionpublic javax.infobus.ArrayAccess getView(int viewSize)
The the upper limit on size of the ArrayAccess is the buffer size getView().
getView in interface javax.infobus.DataItemViewgetBufferSize(),
#setBufferSize(ing size)public final int getViewStart()
getViewStart in interface javax.infobus.DataItemViewpublic void setViewStart(int viewStart)
setViewStart in interface javax.infobus.DataItemViewpublic void scrollView(int numRows)
scrollView in interface javax.infobus.DataItemViewpublic java.lang.Object getProperty(java.lang.String propertyName)
DataItemProperties defines the properties supported.
getProperty in interface javax.infobus.DataItemgetProperty in class DataItemImplpropertyName - The name of the property.
public boolean isUpperColumns()
Row.
If this flag is true, UPPER SQL operator will be applied
to all CHAR/VARCHAR columns when the SQL WHERE clause is generated.
isUpperColumns in interface ViewCriteriaRowPropspublic void setUpperColumns(boolean isUpper)
Row.
If this flag is true, UPPER SQL operator will be applied
to all CHAR/VARCHAR columns when the SQL WHERE clause is generated.
setUpperColumns in interface ViewCriteriaRowPropsisUpper - a new flag value for upper'ing columns.public java.lang.Object getUserData(int index)
getUserData in interface UnmangledQueryCriteriaStore
public void setUserData(int index,
java.lang.Object value)
setUserData in interface UnmangledQueryCriteriaStoreprotected java.lang.Object[] _getColumnLabels()
|
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.