Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class QueryInfo

java.lang.Object
  extended byoracle.dacf.dataset.Query
      extended byoracle.dacf.dataset.QueryClauses
          extended byoracle.dacf.dataset.QueryInfo
All Implemented Interfaces:
java.lang.Cloneable

public class QueryInfo
extends QueryClauses

This class allows access to the clauses of an updateable, dynamically-defined SQL statememt used to build a View Object from an Entity Object or set of Entity Objects. At a minimum, the SELECT and the FROM clauses of the SQL statement must be defined for the proper performance of QueryInfo.

Version:
SDK

Field Summary
 
Fields inherited from class oracle.dacf.dataset.QueryClauses
_orderby, _where
 
Fields inherited from class oracle.dacf.dataset.Query
_DesignTimeHasChanged_
 
Constructor Summary
QueryInfo(java.lang.String name, java.lang.String entityClassName, java.lang.String selectClause, java.lang.String fromClause, java.lang.String whereClause, java.lang.String orderByClause)
          Constructor requiring a query name, name of the Entity Object on which the View Object will be built and a SQL SELECT statement.
QueryInfo(java.lang.String name, java.lang.String entityClassName, java.lang.String selectClause, java.lang.String fromClause, java.lang.String whereClause, java.lang.String orderByClause, java.lang.String groupByClause)
          Deprecated.  
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the specified QueryInfo instance is identical to this QueryInfo object.
 java.lang.String getEntityClassName()
          Returns the name of the Entity Object used for this QueryInfo.
 java.lang.String getFromClause()
          Returns the FROM clause for the SQL query used to build this QueryInfo object.
 java.lang.String getSelectClause()
          Returns the SELECT clause for the SQL query used to build this QueryInfo object.
 void setEntityClassName(java.lang.String entityClassName)
          Specifies the name of the Entity Object used for this QueryInfo.
 void setFromClause(java.lang.String fromClause)
          Sets the FROM clause for the SQL query.
 void setSelectClause(java.lang.String selectClause)
          Specifies the SELECT clause for the SQL query used to build this QueryInfo object.
 
Methods inherited from class oracle.dacf.dataset.QueryClauses
getOrderByClause, getWhereClause, setOrderByClause, setWhereClause
 
Methods inherited from class oracle.dacf.dataset.Query
clone, getName, getQueryParams, setName, setQueryParams
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryInfo

public QueryInfo(java.lang.String name,
                 java.lang.String entityClassName,
                 java.lang.String selectClause,
                 java.lang.String fromClause,
                 java.lang.String whereClause,
                 java.lang.String orderByClause)
Constructor requiring a query name, name of the Entity Object on which the View Object will be built and a SQL SELECT statement.

Parameters:
name - name of the query.
entityClassName - name of the Entity Object upon which the View Object will be built.
selectClause - text of the SQL SELECT clause.
fromClause - text of the SQL FROM clause.
whereClause - text of the SQL WHERE clause.
orderByClause - text of the SQL ORDER BY clause.

QueryInfo

public QueryInfo(java.lang.String name,
                 java.lang.String entityClassName,
                 java.lang.String selectClause,
                 java.lang.String fromClause,
                 java.lang.String whereClause,
                 java.lang.String orderByClause,
                 java.lang.String groupByClause)
Deprecated.  

This constructor is deprecated. The groupby clause is ignored.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Returns true if the specified QueryInfo instance is identical to this QueryInfo object.

Specified by:
equals in class Query
Returns:
true if the compared QueryInfo instances are identical; false otherwise.

getEntityClassName

public java.lang.String getEntityClassName()
Returns the name of the Entity Object used for this QueryInfo.

Returns:
the Entity Object name.

setEntityClassName

public void setEntityClassName(java.lang.String entityClassName)
Specifies the name of the Entity Object used for this QueryInfo.


getSelectClause

public java.lang.String getSelectClause()
Returns the SELECT clause for the SQL query used to build this QueryInfo object.

Returns:
the SELECT clause for the query.

setSelectClause

public void setSelectClause(java.lang.String selectClause)
Specifies the SELECT clause for the SQL query used to build this QueryInfo object. This can be an arbitrary list of columns. At a minimum, the FROM clause of the SQL statement must also be defined to ensure proper performance of the QueryInfo.


getFromClause

public java.lang.String getFromClause()
Returns the FROM clause for the SQL query used to build this QueryInfo object.

Returns:
the FROM clause for the query.

setFromClause

public void setFromClause(java.lang.String fromClause)
Sets the FROM clause for the SQL query. This can be an arbitrary list of columns. At a minimum, the SELECT clause of the SQL statement must also be defined to ensure proper performance of the QueryInfo.

Parameters:
fromClause - the FROM clause for the query.

Oracle Data-aware Controls Reference

 

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