org.apache.ojb.broker.query
Class ExistsCriteria

java.lang.Object
  extended by org.apache.ojb.broker.query.SelectionCriteria
      extended by org.apache.ojb.broker.query.ExistsCriteria
All Implemented Interfaces:
Serializable

public class ExistsCriteria
extends SelectionCriteria

SelectionCriteria for [not] exists(sub query)

Version:
$Id: ExistsCriteria.java,v 1.1 2007-08-24 22:17:36 ewestfal Exp $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Field Summary
private  boolean m_negative
           
 
Fields inherited from class org.apache.ojb.broker.query.SelectionCriteria
BETWEEN, EQUAL, GREATER, IN, IS_NULL, LESS, LIKE, NOT_BETWEEN, NOT_EQUAL, NOT_GREATER, NOT_IN, NOT_IS_NULL, NOT_LESS, NOT_LIKE, serialVersionUID
 
Constructor Summary
ExistsCriteria(Query subQuery, boolean negative)
          Constructor for ExistsCriteria.
 
Method Summary
 String getClause()
          Answer the SQL compare-clause for this criteria
 
Methods inherited from class org.apache.ojb.broker.query.SelectionCriteria
bind, getAlias, getAttribute, getClassesForPath, getCriteria, getNumberOfExtentsToBind, getPathClasses, getQuery, getUserAlias, getValue, isBindable, isBound, isTranslateAttribute, setAlias, setAlias, setAlias, setBound, setCriteria, setNumberOfExtentsToBind, setTranslateAttribute, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_negative

private boolean m_negative
Constructor Detail

ExistsCriteria

ExistsCriteria(Query subQuery,
               boolean negative)
Constructor for ExistsCriteria.

Parameters:
subQuery -
negative - use negative form
Method Detail

getClause

public String getClause()
Description copied from class: SelectionCriteria
Answer the SQL compare-clause for this criteria

Specified by:
getClause in class SelectionCriteria


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.