oracle.dacf.dataset
Class QueryInfo
java.lang.Object
|
+--oracle.dacf.dataset.Query
|
+--oracle.dacf.dataset.QueryClauses
|
+--oracle.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
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
equals
public boolean equals(java.lang.Object obj)
- Returns true if the specified QueryInfo instance is identical to
this QueryInfo object.
- Overrides:
equals
in class Query
- Parameters:
the
- object you want to compare to.- 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.
- Parameters:
the
- Entity Object name.
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.
- Parameters:
statment
- the SELECT clause for the query.
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.