org.kuali.rice.core.framework.persistence.ojb
Class SuffixedSqlSelectStatement

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
      extended by org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement
          extended by org.kuali.rice.core.framework.persistence.ojb.SuffixedSqlSelectStatement
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.JoinSyntaxTypes, org.apache.ojb.broker.accesslayer.sql.SelectStatement, org.apache.ojb.broker.accesslayer.sql.SqlStatement

public class SuffixedSqlSelectStatement
extends org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement

A SqlSelectStatement sublclass that is aware of a special SuffixableQueryByCriteria Criteria class and will append a suffix specified by that class of criteria to the generated SQL statement. This is a hack to introduce select-for-update functionality into OJB so the same ORM/Criteria abstractions can be retained for select-for-update queries. Select for update appears to have been added in the OJB source repository, so maybe a forthcoming release will include this functionality and these kludges can be removed.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
SqlGeneratorSuffixableImpl, SuffixableQueryByCriteria

Field Summary
 
Fields inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
m_attrToFld
 
Fields inherited from interface org.apache.ojb.broker.accesslayer.JoinSyntaxTypes
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX
 
Constructor Summary
SuffixedSqlSelectStatement(org.apache.ojb.broker.platforms.Platform pf, org.apache.ojb.broker.metadata.ClassDescriptor cld, org.apache.ojb.broker.query.Query query, org.apache.ojb.broker.util.logging.Logger logger)
           
SuffixedSqlSelectStatement(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement parent, org.apache.ojb.broker.platforms.Platform pf, org.apache.ojb.broker.metadata.ClassDescriptor cld, org.apache.ojb.broker.query.Query query, org.apache.ojb.broker.util.logging.Logger logger)
           
 
Method Summary
protected  String buildStatement()
           
 
Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement
appendColumn, appendField, appendListOfColumns, appendListOfColumnsForSelect, appendTable, buildFieldsForSelect, getColumnIndex, getFieldsForSelect, getQueryInstance
 
Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
appendClause, appendColName, appendColName, appendColName, appendCriteria, appendGroupByClause, appendHavingClause, appendOrderByClause, appendSQLClause, appendTableWithJoins, appendWhereClause, buildSuperJoinTree, ensureColumns, ensureColumns, getAttributeInfo, getBaseClassDescriptor, getColName, getFieldDescriptor, getJoinSyntaxType, getJoinTreeToCriteria, getLogger, getQuery, getRoot, getSearchClassDescriptor, getSearchTable, getStatement, getTableAliasForClassDescriptor, setRoot, splitCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ojb.broker.accesslayer.sql.SqlStatement
getStatement
 

Constructor Detail

SuffixedSqlSelectStatement

public SuffixedSqlSelectStatement(org.apache.ojb.broker.platforms.Platform pf,
                                  org.apache.ojb.broker.metadata.ClassDescriptor cld,
                                  org.apache.ojb.broker.query.Query query,
                                  org.apache.ojb.broker.util.logging.Logger logger)

SuffixedSqlSelectStatement

public SuffixedSqlSelectStatement(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement parent,
                                  org.apache.ojb.broker.platforms.Platform pf,
                                  org.apache.ojb.broker.metadata.ClassDescriptor cld,
                                  org.apache.ojb.broker.query.Query query,
                                  org.apache.ojb.broker.util.logging.Logger logger)
Method Detail

buildStatement

protected String buildStatement()
Overrides:
buildStatement in class org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.