Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class ConstrainedViewCriteriaModel

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

public class ConstrainedViewCriteriaModel
extends ViewCriteriaModelImpl

This class provides a constrained view of the ViewCriteriaModel. Some of the columns which are either marked 'non-queryable' by the user or not queryable (for some SQL type) are hidden from the ViewCriteria.

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

Field Summary
 
Fields inherited from class oracle.dacf.control.swing.find.ViewCriteriaModelImpl
_columnLabels, _rsAccess, _unmangledQueryCriteriaStore
 
Constructor Summary
ConstrainedViewCriteriaModel()
          Constructor
 
Method Summary
protected  void _computeColumnIndices()
          map queryable column name to their index
protected  int _mapColumnIndex(int originalIndex)
           
protected  int findColumnIndex(java.lang.String dataItemName)
           
 int getColumnCount()
           
 java.lang.String[] getColumnDataItemName()
           
 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
 int getSQLType(int colIndex)
          get SQL type for this column., zero based index.
 java.lang.Object getUserData(int colIndex)
           
 void setColumnDataItemName(java.lang.String[] dataItemName)
          Specify the query column data item name.
 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 oracle.dacf.control.swing.find.ViewCriteriaModelImpl
absolute, deleteRow, first, getFindItemModel, getRow, getRowCount, getRowsetAccess, last, newRow, next, previous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstrainedViewCriteriaModel

public ConstrainedViewCriteriaModel()
Constructor

Method Detail

setColumnDataItemName

public void setColumnDataItemName(java.lang.String[] dataItemName)
Specify the query column data item name. This name will be use to get the Column name and the SQL type which in turn will be used to build the query condition

Parameters:
dataItemName - of the column

getColumnDataItemName

public java.lang.String[] getColumnDataItemName()
Returns:
the data item names for all the columns

setRowsetAccess

public void setRowsetAccess(javax.infobus.ScrollableRowsetAccess rsAccess)
Description copied from class: ViewCriteriaModelImpl
Specify the ScrollableRowsetAccess object to delegate request for creating ViewCriteria objects.

Overrides:
setRowsetAccess in class ViewCriteriaModelImpl

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ViewCriteriaModel
Overrides:
getColumnCount in class ViewCriteriaModelImpl
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
Overrides:
getColumnDisplayLabel in class ViewCriteriaModelImpl

getColumnName

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

Specified by:
getColumnName in interface ViewCriteriaModel
Overrides:
getColumnName in class ViewCriteriaModelImpl
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
Overrides:
getSQLType in class ViewCriteriaModelImpl

getColumnValue

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

Specified by:
getColumnValue in interface ViewCriteriaModel
Overrides:
getColumnValue in class ViewCriteriaModelImpl
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
Overrides:
setColumnValue in class ViewCriteriaModelImpl
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
Overrides:
getUserData in class ViewCriteriaModelImpl

setUserData

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

_mapColumnIndex

protected int _mapColumnIndex(int originalIndex)

_computeColumnIndices

protected void _computeColumnIndices()
map queryable column name to their index


findColumnIndex

protected int findColumnIndex(java.lang.String dataItemName)

Oracle Data-aware Controls Reference

 

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