oracle.dacf.dataset
Class QueryClauses
java.lang.Object
|
+--oracle.dacf.dataset.Query
|
+--oracle.dacf.dataset.QueryClauses
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- QueryInfo, QueryViewInfo
- public abstract class QueryClauses
- extends Query
QueryClauses is the abstract base class for defining a query where
the WHERE and ORDERBY
clauses can be isolated and manipulated. The query can be either
a predefined View Object or a dynamically created query. This class is subclassed by:
- QueryInfo, which defines an updateable, dynamically-defined SQL query based on
a Java Business Objects
Entity Object. In this class, each of the clauses of the SQL query
can be get and set.
- QueryViewInfo, which defines an updateable SQL query based on a Java Business
Objects View Object.
- Version:
- SDK
- See Also:
QueryInfo
,
QueryViewInfo
Field Summary |
protected java.lang.String |
_orderby
|
protected java.lang.String |
_where
|
Method Summary |
java.lang.String |
getOrderByClause()
Returns the ORDERBY clause for the query. |
java.lang.String |
getWhereClause()
Returns the WHERE clause for the SQL query. |
void |
setOrderByClause(java.lang.String orderbyClause)
Sets the ORDERBY clause for the query. |
void |
setWhereClause(java.lang.String whereClause)
Sets the WHERE clause for the SQL query. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_where
protected java.lang.String _where
_orderby
protected java.lang.String _orderby
QueryClauses
public QueryClauses()
getWhereClause
public java.lang.String getWhereClause()
- Returns the WHERE clause for the SQL query.
- Returns:
- the WHERE clause for the query.
setWhereClause
public void setWhereClause(java.lang.String whereClause)
- Sets the WHERE clause for the SQL query. This can be an
arbitrary SQL expression.
Be careful when using this method: this method can change the entire
definition of a dynamic query, but is needed to support augmentation
of a predefined query.
- Parameters:
whereClause
- the WHERE clause for the query.
getOrderByClause
public java.lang.String getOrderByClause()
- Returns the ORDERBY clause for the query.
- Returns:
- the ORDERBY clause for the query.
setOrderByClause
public void setOrderByClause(java.lang.String orderbyClause)
- Sets the ORDERBY clause for the query. This can be an
arbitrary SQL expression.
- Parameters:
orderbyClause
- the ORDERBY clause for the query.