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

java.lang.Object
  extended by org.apache.ojb.broker.query.AbstractQueryImpl
      extended by org.apache.ojb.broker.query.QueryByCriteria
          extended by org.kuali.rice.core.framework.persistence.ojb.SuffixableQueryByCriteria
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.query.Query

public class SuffixableQueryByCriteria
extends org.apache.ojb.broker.query.QueryByCriteria

QueryByCriteria subclass that introduces a suffix that the SqlGenerator should append onto the end of 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:
Serialized Form

Field Summary
protected  String suffix
           
 
Fields inherited from class org.apache.ojb.broker.query.QueryByCriteria
CRITERIA_SELECT_ALL
 
Fields inherited from class org.apache.ojb.broker.query.AbstractQueryImpl
m_baseClass, m_searchClass
 
Fields inherited from interface org.apache.ojb.broker.query.Query
NO_END_AT_INDEX, NO_START_AT_INDEX, NOT_SCROLLABLE, SCROLLABLE
 
Constructor Summary
SuffixableQueryByCriteria(Class classToSearchFrom)
           
SuffixableQueryByCriteria(Class targetClass, org.apache.ojb.broker.query.Criteria criteria)
           
SuffixableQueryByCriteria(Class targetClass, org.apache.ojb.broker.query.Criteria criteria, boolean distinct)
           
SuffixableQueryByCriteria(Class targetClass, org.apache.ojb.broker.query.Criteria whereCriteria, org.apache.ojb.broker.query.Criteria havingCriteria)
           
SuffixableQueryByCriteria(Class targetClass, org.apache.ojb.broker.query.Criteria whereCriteria, org.apache.ojb.broker.query.Criteria havingCriteria, boolean distinct)
           
SuffixableQueryByCriteria(Object anObject)
           
SuffixableQueryByCriteria(Object anObject, boolean distinct)
           
 
Method Summary
 String getQuerySuffix()
           
 void setQuerySuffix(String suffix)
           
 
Methods inherited from class org.apache.ojb.broker.query.QueryByCriteria
addGroupBy, addGroupBy, addGroupBy, addOrderBy, addOrderBy, addOrderBy, addOrderByAscending, addOrderByDescending, addPathClass, addPrefetchedRelationship, getClassesForPath, getCriteria, getGroupBy, getHavingCriteria, getObjectProjectionAttribute, getOrderBy, getOuterJoinPaths, getPathClasses, getPrefetchedRelationships, isDistinct, isPathOuterJoin, setCriteria, setDistinct, setHavingCriteria, setObjectProjectionAttribute, setObjectProjectionAttribute, setPathClass, setPathOuterJoin, toString
 
Methods inherited from class org.apache.ojb.broker.query.AbstractQueryImpl
fullSize, fullSize, getBaseClass, getEndAtIndex, getExampleObject, getFetchSize, getSearchClass, getStartAtIndex, getWithExtents, setEndAtIndex, setFetchSize, setStartAtIndex, setWithExtents, usePaging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

suffix

protected String suffix
Constructor Detail

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Class targetClass,
                                 org.apache.ojb.broker.query.Criteria criteria,
                                 boolean distinct)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Class targetClass,
                                 org.apache.ojb.broker.query.Criteria whereCriteria,
                                 org.apache.ojb.broker.query.Criteria havingCriteria,
                                 boolean distinct)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Class targetClass,
                                 org.apache.ojb.broker.query.Criteria whereCriteria,
                                 org.apache.ojb.broker.query.Criteria havingCriteria)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Class targetClass,
                                 org.apache.ojb.broker.query.Criteria criteria)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Class classToSearchFrom)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Object anObject,
                                 boolean distinct)

SuffixableQueryByCriteria

public SuffixableQueryByCriteria(Object anObject)
Method Detail

setQuerySuffix

public void setQuerySuffix(String suffix)

getQuerySuffix

public String getQuerySuffix()


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