org.jpox.store.rdbms.query
Class SAPDBQueryStatement

java.lang.Object
  extended byorg.jpox.store.query.QueryStatement
      extended byorg.jpox.store.rdbms.query.SAPDBQueryStatement
All Implemented Interfaces:
QueryExpression

public class SAPDBQueryStatement
extends QueryStatement

Representation of a Query Statement in Oracle.

Version:
$Revision: 1.9 $

Nested Class Summary
 
Nested classes inherited from class org.jpox.store.query.QueryStatement
QueryStatement.Join
 
Field Summary
 
Fields inherited from class org.jpox.store.query.QueryStatement
crossJoins, dba, defaultRangeVar, distinctResults, groupingExpressions, hasAggregateExpression, havingExpr, initialTableExpr, isExistsSubQuery, joins, joinsTo, LOCALISER, orderingDirections, orderingExpressions, rangeCount, rangeOffset, selected, stmtJoinsSeparator, stmtText, storeMgr, tableExprsByRangeVar, union, useInnerJoinsOnly, whereExpr
 
Constructor Summary
SAPDBQueryStatement(DatastoreContainerObject initialTable, ClassLoaderResolver clr)
          QueryStatement constructor
SAPDBQueryStatement(DatastoreContainerObject initialTable, DatastoreIdentifier initialRangeVar, ClassLoaderResolver clr)
          QueryStatement constructor
 
Method Summary
protected  void addOrderingColumnsToSelect()
          Convenience method to add any necessary columns to the SELECT that are needed by the ordering constraint.
protected  StatementText generateOrderingStatement()
          Convenience method to generate the ordering statement to add to the overall query statement.
 
Methods inherited from class org.jpox.store.query.QueryStatement
addGroupingExpression, andCondition, andCondition, assertNotFrozen, crossJoin, getClassLoaderResolver, getDefaultTableExpression, getDistinctResults, getGroupingExpressions, getHavingExpression, getInitialTableExpr, getNumberOfScalarExpressions, getOrderingExpressions, getStoreManager, getTableExpression, getUseInnerJoinsOnly, hasCrossJoin, hasMetaDataExpression, innerJoin, innerJoin, iorCondition, iorCondition, join, join, leftOuterJoin, leftOuterJoin, newTableExpression, newTableExpression, reset, rightOuterJoin, rightOuterJoin, select, select, select, select, selectDatastoreIdentity, selectField, selectScalarExpression, selectScalarExpression, selectVersion, selectVersion, setDistinctResults, setExistsSubQuery, setHaving, setOrdering, setRangeConstraint, setUseInnerJoinsOnly, toDeleteStatementText, toStatementText, toString, toString, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAPDBQueryStatement

public SAPDBQueryStatement(DatastoreContainerObject initialTable,
                           ClassLoaderResolver clr)
QueryStatement constructor

Parameters:
initialTable - The main table for this statement.
clr - ClassLoader resolver

SAPDBQueryStatement

public SAPDBQueryStatement(DatastoreContainerObject initialTable,
                           DatastoreIdentifier initialRangeVar,
                           ClassLoaderResolver clr)
QueryStatement constructor

Parameters:
initialTable - The main table for this statement.
initialRangeVar - The alias for the main table
clr - ClassLoader resolver
Method Detail

generateOrderingStatement

protected StatementText generateOrderingStatement()
Convenience method to generate the ordering statement to add to the overall query statement.

Overrides:
generateOrderingStatement in class QueryStatement
Returns:
The ordering statement

addOrderingColumnsToSelect

protected void addOrderingColumnsToSelect()
Convenience method to add any necessary columns to the SELECT that are needed by the ordering constraint.

Overrides:
addOrderingColumnsToSelect in class QueryStatement


Copyright © -2007 . All Rights Reserved.