org.apache.ojb.broker.query
Class ValueCriteria

java.lang.Object
  extended by org.apache.ojb.broker.query.SelectionCriteria
      extended by org.apache.ojb.broker.query.ValueCriteria
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BetweenCriteria, InCriteria, LikeCriteria, NullCriteria

public class ValueCriteria
extends SelectionCriteria

Models a Criteria comparing an attribute to a value
ie: name = 'Mark' , name like 'M%'

Version:
$Id: ValueCriteria.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Method Summary
 java.lang.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, isBound, isTranslateAttribute, setAlias, setAlias, setAlias, setNumberOfExtentsToBind, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getClause

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

Specified by:
getClause in class SelectionCriteria
See Also:
SelectionCriteria.getClause()


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30