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

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
      extended by org.kuali.rice.core.framework.persistence.ojb.SqlGeneratorSuffixableImpl
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.sql.SqlGenerator

public class SqlGeneratorSuffixableImpl
extends org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl

SqlGeneratorDefaultImpl subclass that replaced the vanilla SqlSelectStatement implementation with a new SuffixedSqlSelectStatement that is SuffixableQueryByCriteria - aware. This class needs to be specified as the SqlGenerator implementation in the OJB properties, to replace the SqlGeneratorDefaultImpl. 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:
SuffixedSqlSelectStatement

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.SqlForClass
 
Constructor Summary
SqlGeneratorSuffixableImpl(org.apache.ojb.broker.platforms.Platform platform)
           
 
Method Summary
 org.apache.ojb.broker.accesslayer.sql.SelectStatement getPreparedSelectStatement(org.apache.ojb.broker.query.Query query, org.apache.ojb.broker.metadata.ClassDescriptor cld)
           
 
Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
asSQLClause, asSQLStatement, getDeleteMNStatement, getInsertMNStatement, getPlatform, getPreparedDeleteStatement, getPreparedDeleteStatement, getPreparedExistsStatement, getPreparedInsertStatement, getPreparedSelectByPkStatement, getPreparedUpdateStatement, getSelectMNStatement, getSelectStatementDep, getSqlForClass, newInstanceSqlForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlGeneratorSuffixableImpl

public SqlGeneratorSuffixableImpl(org.apache.ojb.broker.platforms.Platform platform)
Method Detail

getPreparedSelectStatement

public org.apache.ojb.broker.accesslayer.sql.SelectStatement getPreparedSelectStatement(org.apache.ojb.broker.query.Query query,
                                                                                        org.apache.ojb.broker.metadata.ClassDescriptor cld)
Specified by:
getPreparedSelectStatement in interface org.apache.ojb.broker.accesslayer.sql.SqlGenerator
Overrides:
getPreparedSelectStatement in class org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl


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