Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class ViewCriteriaModelImpl

java.lang.Object
  extended byoracle.dacf.control.swing.find.ViewCriteriaModelImpl
All Implemented Interfaces:
ViewCriteriaModel
Direct Known Subclasses:
ConstrainedViewCriteriaModel

public class ViewCriteriaModelImpl
extends java.lang.Object
implements ViewCriteriaModel

This class makes available the BC4J ViewCriteriaRows and ViewCriteria. These objects are used to create and execute parameterized queries. This implementation indirectly creates and uses ViewCriteria objects through the ResultSetInfo object.

Version:
Internal
See Also:
FindPanel, ViweCriteriaModel, ResultSetInfo, ViewCriteria, ViewCriteriaRow

Field Summary
protected  java.lang.Object[] _columnLabels
           
protected  javax.infobus.ScrollableRowsetAccess _rsAccess
           
protected  UnmangledQueryCriteriaStore _unmangledQueryCriteriaStore
           
 
Constructor Summary
ViewCriteriaModelImpl()
          Constructor
 
Method Summary
 boolean absolute(int rowIndex)
          move to a specific ViewCriteriaRow
 void deleteRow()
          delete current ViewCriteriaRow
 boolean first()
          move to the first ViewCriteriaRow
 int getColumnCount()
           
 java.lang.String getColumnDisplayLabel(int colIndex)
          return the column display name for a particular column
 java.lang.String getColumnName(int colIndex)
          get the column name., zero based index.
 java.lang.Object getColumnValue(int colIndex)
          return the column value for a particular column
 FindItemModel getFindItemModel(int row, int col)
           
 int getRow()
          get the row number of the current row.
 int getRowCount()
          return the number of ViewCriteriaRows
 javax.infobus.ScrollableRowsetAccess getRowsetAccess()
           
 int getSQLType(int colIndex)
          get SQL type for this column., zero based index.
 java.lang.Object getUserData(int colIndex)
           
 boolean last()
          move to the last ViewCriteriaRow
 void newRow()
          create a new ViewCriteriaRow
 boolean next()
          move to the next ViewCriteriaRow
 boolean previous()
          move to previous ViewCriteriaRow
 void setColumnValue(int colIndex, java.lang.Object value)
          specify the column value for a particular column
 void setRowsetAccess(javax.infobus.ScrollableRowsetAccess rsAccess)
          Specify the ScrollableRowsetAccess object to delegate request for creating ViewCriteria objects.
 void setUserData(int colIndex, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rsAccess

protected javax.infobus.ScrollableRowsetAccess _rsAccess

_unmangledQueryCriteriaStore

protected UnmangledQueryCriteriaStore _unmangledQueryCriteriaStore

_columnLabels

protected java.lang.Object[] _columnLabels
Constructor Detail

ViewCriteriaModelImpl

public ViewCriteriaModelImpl()
Constructor

Method Detail

setRowsetAccess

public void setRowsetAccess(javax.infobus.ScrollableRowsetAccess rsAccess)
Specify the ScrollableRowsetAccess object to delegate request for creating ViewCriteria objects.


getRowsetAccess

public javax.infobus.ScrollableRowsetAccess getRowsetAccess()

getRowCount

public int getRowCount()
return the number of ViewCriteriaRows

Specified by:
getRowCount in interface ViewCriteriaModel

getRow

public int getRow()
get the row number of the current row.

Specified by:
getRow in interface ViewCriteriaModel

absolute

public boolean absolute(int rowIndex)
move to a specific ViewCriteriaRow

Specified by:
absolute in interface ViewCriteriaModel

previous

public boolean previous()
move to previous ViewCriteriaRow

Specified by:
previous in interface ViewCriteriaModel

first

public boolean first()
move to the first ViewCriteriaRow

Specified by:
first in interface ViewCriteriaModel

next

public boolean next()
move to the next ViewCriteriaRow

Specified by:
next in interface ViewCriteriaModel

last

public boolean last()
move to the last ViewCriteriaRow

Specified by:
last in interface ViewCriteriaModel

newRow

public void newRow()
create a new ViewCriteriaRow

Specified by:
newRow in interface ViewCriteriaModel

deleteRow

public void deleteRow()
delete current ViewCriteriaRow

Specified by:
deleteRow in interface ViewCriteriaModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ViewCriteriaModel
Returns:
the number of columns

getColumnDisplayLabel

public java.lang.String getColumnDisplayLabel(int colIndex)
return the column display name for a particular column

Specified by:
getColumnDisplayLabel in interface ViewCriteriaModel

getColumnName

public java.lang.String getColumnName(int colIndex)
get the column name., zero based index.

Specified by:
getColumnName in interface ViewCriteriaModel
Returns:
name of the column to use in the query

getSQLType

public int getSQLType(int colIndex)
get SQL type for this column., zero based index.

Specified by:
getSQLType in interface ViewCriteriaModel

getColumnValue

public java.lang.Object getColumnValue(int colIndex)
return the column value for a particular column

Specified by:
getColumnValue in interface ViewCriteriaModel
Parameters:
colIndex - column index whose column value we are interested in., zero based index used
Returns:
column value

setColumnValue

public void setColumnValue(int colIndex,
                           java.lang.Object value)
specify the column value for a particular column

Specified by:
setColumnValue in interface ViewCriteriaModel
Parameters:
colIndex - column index whose value has to be set zero based index used

getUserData

public java.lang.Object getUserData(int colIndex)
Specified by:
getUserData in interface ViewCriteriaModel

setUserData

public void setUserData(int colIndex,
                        java.lang.Object value)
Specified by:
setUserData in interface ViewCriteriaModel

getFindItemModel

public FindItemModel getFindItemModel(int row,
                                      int col)

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.