Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class QueryCriteria

java.lang.Object
  extended byoracle.dacf.dataset.DacObject
      extended byoracle.dacf.dataset.ProducerObject
          extended byoracle.dacf.dataset.QueryCriteria
All Implemented Interfaces:
java.lang.Cloneable

public class QueryCriteria
extends ProducerObject

Encapsulates the selection criteria for a query.

The undelying notion is that the selection criteria that is applied to a query can be treated as a discrete entity that can be saved and applied to any valid query that contains the indicated columns provided that the datatypes match.

Version:
SDK: since JDeveloper 3.1

Field Summary
 
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
QueryCriteria()
           
QueryCriteria(java.lang.String name)
           
 
Method Summary
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()
          A subclass specific method for disconnecting the client object from the appropriate server objects.
 int getAttributeCount()
          Return the number QueryCriteriaAttribute objects within the QueryCriteria
 QueryCriteriaAttribute[] getAttributeInfo()
          Returns the AttributeInfo objects representing the columns returned by the query.
 oracle.dacf.dataset.QueryCriteriaStore getCriteriaStore()
           
protected  javax.infobus.DataItem getDataItem()
          Returns this object's DataItem.
 ResultSetInfo getResultSet()
          Returns the ResultSetInfo associated with this QueryCriteria.
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()
          A subclass specific method for connecting the client object from the appropriate server objects.
 void setCriteriaStore(oracle.dacf.dataset.QueryCriteriaStore criteriaStore)
           
 void setResultSet(ResultSetInfo resultSet)
          Sets the ResultSetInfo associated with this QueryCriteria.
 
Methods inherited from class oracle.dacf.dataset.ProducerObject
addChild, addClonedDataItem, clone, close, findDataItem, findProducerObject, findProducerObject, getClonedDataItems, getDataItemImpl, getDataProducer, getDataSourceName, getFullName, isAClonedDataItem, isOpen, open, publishDataItem, publishDataItem, removeChild, removeClonedDataItem, revokeDataItem, setClonedDataItems, setDataItem, setDataSourceName, setName, setOpen
 
Methods inherited from class oracle.dacf.dataset.DacObject
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setParent, setPrefix
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCriteria

public QueryCriteria()

QueryCriteria

public QueryCriteria(java.lang.String name)
Method Detail

setResultSet

public void setResultSet(ResultSetInfo resultSet)
Sets the ResultSetInfo associated with this QueryCriteria.

It will create and initialize the appropriate QueryCriteriaAttribute objects if they don't exist.

Parameters:
resultSet - the ResultSetInfo associated with this QueryCriteria.

getResultSet

public ResultSetInfo getResultSet()
Returns the ResultSetInfo associated with this QueryCriteria.

Returns:
the ResultSetInfo associated with this QueryCriteria.

getAttributeCount

public int getAttributeCount()
Return the number QueryCriteriaAttribute objects within the QueryCriteria

Returns:
the number QueryCriteriaAttribute objects within the QueryCriteria

getAttributeInfo

public QueryCriteriaAttribute[] getAttributeInfo()
Returns the AttributeInfo objects representing the columns returned by the query.


setCriteriaStore

public void setCriteriaStore(oracle.dacf.dataset.QueryCriteriaStore criteriaStore)

getCriteriaStore

public oracle.dacf.dataset.QueryCriteriaStore getCriteriaStore()

openProducerObject

protected void openProducerObject()
Description copied from class: ProducerObject
A subclass specific method for connecting the client object from the appropriate server objects. Internal to the framework; should never be called by client classes

Specified by:
openProducerObject in class ProducerObject

openChildren

protected void openChildren()
Description copied from class: ProducerObject
A subclass specific method for connecting the child objects to their server counterparts. Internal to the framework; should never be called by client classes

Specified by:
openChildren in class ProducerObject

openDataItems

protected void openDataItems()
Description copied from class: ProducerObject
A subclass specific method for connecting the Dataitems Internal to the framework; should never be called by client classes

Specified by:
openDataItems in class ProducerObject

closeCheck

protected void closeCheck()
Description copied from class: ProducerObject
Checks to see if close is permitted.

Internal to the framework; should never be called by client classes

Specified by:
closeCheck in class ProducerObject

closeChildren

protected void closeChildren()
Description copied from class: ProducerObject
A subclass specific method for disconnecting the child objects from their server objects counterparts. Internal to the framework; should never be called by client classes

Specified by:
closeChildren in class ProducerObject

closeProducerObject

protected void closeProducerObject()
Description copied from class: ProducerObject
A subclass specific method for disconnecting the client object from the appropriate server objects. Internal to the framework; should never be called by client classes

Specified by:
closeProducerObject in class ProducerObject

closeDataItems

protected void closeDataItems()
Description copied from class: ProducerObject
A subclass specific method for disconnecting and revoking Dataitems Internal to the framework; should never be called by client classes

Specified by:
closeDataItems in class ProducerObject

getDataItem

protected javax.infobus.DataItem getDataItem()
Description copied from class: ProducerObject
Returns this object's DataItem.

A side effect of getDataItem is that if the DataItem does not already exist, it will be created.

This method in all cases will be overridden to handle the particulars of creating the specific type of DataItem associated with each subclass.

Overrides:
getDataItem in class ProducerObject

Oracle Data-aware Controls Reference

 

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