org.apache.ojb.broker.query
Class BetweenCriteria

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

public class BetweenCriteria
extends ValueCriteria

SelectionCriteria for 'between x and y'

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

Method Summary
 void bind(java.lang.Object newValue)
          sets the value of the criteria to newValue.
 java.lang.Object getValue2()
          Gets the value2.
 java.lang.String toString()
          String representation
 
Methods inherited from class org.apache.ojb.broker.query.ValueCriteria
getClause
 
Methods inherited from class org.apache.ojb.broker.query.SelectionCriteria
getAlias, getAttribute, getClassesForPath, getCriteria, getNumberOfExtentsToBind, getPathClasses, getQuery, getUserAlias, getValue, isBound, isTranslateAttribute, setAlias, setAlias, setAlias, setNumberOfExtentsToBind
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

bind

public void bind(java.lang.Object newValue)
sets the value of the criteria to newValue. Used by the ODMG OQLQuery.bind() operation BRJ: bind get's called twice so we need to know which value to set

Overrides:
bind in class SelectionCriteria

getValue2

public java.lang.Object getValue2()
Gets the value2.

Returns:
Returns a Object

toString

public java.lang.String toString()
String representation

Overrides:
toString in class SelectionCriteria


(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