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:
Serializable

public class BetweenCriteria
extends ValueCriteria

SelectionCriteria for 'between x and y'

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

Field Summary
 
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
 
Method Summary
 void bind(Object newValue)
          sets the value of the criteria to newValue.
 Object getValue2()
          Gets the value2.
protected  boolean isBindable()
          answer true if the selection criteria is bindable BRJ: value null is bindable
protected  void setValue2(Object value2)
          Sets the value2.
 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, setBound, setNumberOfExtentsToBind, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

bind

public void bind(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 Object getValue2()
Gets the value2.

Returns:
Returns a Object

setValue2

protected void setValue2(Object value2)
Sets the value2.

Parameters:
value2 - The value2 to set

isBindable

protected boolean isBindable()
Description copied from class: SelectionCriteria
answer true if the selection criteria is bindable BRJ: value null is bindable

Overrides:
isBindable in class SelectionCriteria
See Also:
SelectionCriteria.isBindable()

toString

public String toString()
String representation

Overrides:
toString in class SelectionCriteria


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