org.apache.ojb.broker.query
Class BetweenCriteria

java.lang.Object
  extended byorg.apache.ojb.broker.query.SelectionCriteria
      extended byorg.apache.ojb.broker.query.ValueCriteria
          extended byorg.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,v 1.6 2003/09/13 14:33:57 brj Exp $
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.
 
Methods inherited from class org.apache.ojb.broker.query.ValueCriteria
getClause
 
Methods inherited from class org.apache.ojb.broker.query.SelectionCriteria
getAlias, getAttribute, getCriteria, getNumberOfExtentsToBind, getQuery, getValue, isBound, isTranslateAttribute, setAlias, setNumberOfExtentsToBind, toString
 
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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14