org.kuali.rice.core.ojb
Class SuffixableQueryByCriteria
java.lang.Object
org.apache.ojb.broker.query.AbstractQueryImpl
org.apache.ojb.broker.query.QueryByCriteria
org.kuali.rice.core.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
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 |
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 |
suffix
protected String suffix
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)
setQuerySuffix
public void setQuerySuffix(String suffix)
getQuerySuffix
public String getQuerySuffix()
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.