ojb.broker.query
Class BetweenCriteria

java.lang.Object
  |
  +--ojb.broker.query.SelectionCriteria
        |
        +--ojb.broker.query.BetweenCriteria
All Implemented Interfaces:
java.io.Serializable

public class BetweenCriteria
extends SelectionCriteria

SelectionCriteria for 'between x and y'

See Also:
Serialized Form

Constructor Summary
(package private) BetweenCriteria(java.lang.String s, java.lang.Object anArg1, java.lang.Object anArg2, boolean negative)
          Constructor for BetweenCriteria.
 
Method Summary
 void bind(java.lang.Object newValue)
          sets the value of the criteria to newValue.
 java.lang.String getClause()
          Method declaration
 java.lang.Object getO2()
          Gets the o2.
 
Methods inherited from class ojb.broker.query.SelectionCriteria
getAttribute, getO, getValue, isBound, isNegative, setBound, setO, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BetweenCriteria

BetweenCriteria(java.lang.String s,
                java.lang.Object anArg1,
                java.lang.Object anArg2,
                boolean negative)
Constructor for BetweenCriteria.

Parameters:
anArg1 - lower boundary
anArg2 - upper boundary
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

getClause

public java.lang.String getClause()
Description copied from class: SelectionCriteria
Method declaration

Specified by:
getClause in class SelectionCriteria
Returns:

getO2

public java.lang.Object getO2()
Gets the o2.

Returns:
Returns a Object


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04