ojb.broker.query
Class SelectionCriteria

java.lang.Object
  |
  +--ojb.broker.query.SelectionCriteria
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BetweenCriteria, EqualToColumnCriteria, EqualToCriteria, ExistsCriteria, GreaterOrEqualCriteria, GreaterThanCriteria, InCriteria, LessOrEqualCriteria, LessThanCriteria, LikeCriteria, NotEqualToCriteria, NullCriteria, SqlCriteria

public abstract class SelectionCriteria
extends java.lang.Object
implements java.io.Serializable

Superclass of all criteria classes, can't be instantiated.

Author:
DB Harvey-George
See Also:
Serialized Form

Constructor Summary
(package private) SelectionCriteria(java.lang.String s, java.lang.Object o)
          Constructor declaration
(package private) SelectionCriteria(java.lang.String s, java.lang.Object o, boolean negative)
          Constructor declaration
 
Method Summary
 void bind(java.lang.Object newValue)
          sets the value of the criteria to newValue.
 java.lang.String getAttribute()
          Method declaration
abstract  java.lang.String getClause()
          Method declaration
 java.lang.Object getO()
          Method declaration
 java.lang.String getValue()
          Method declaration
 boolean isBound()
          BRJ : Used by the ODMG OQLQuery.bind() operation
 boolean isNegative()
          Gets the negative.
protected  void setBound(boolean bound)
          Sets the bound.
protected  void setO(java.lang.Object value)
          Sets the value.
 java.lang.String toString()
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionCriteria

SelectionCriteria(java.lang.String s,
                  java.lang.Object o,
                  boolean negative)
Constructor declaration

Parameters:
s -
o -
negative - , criteria is negated

SelectionCriteria

SelectionCriteria(java.lang.String s,
                  java.lang.Object o)
Constructor declaration

Parameters:
s -
o -
Method Detail

getClause

public abstract java.lang.String getClause()
Method declaration

Returns:

getValue

public java.lang.String getValue()
Method declaration

Returns:

bind

public void bind(java.lang.Object newValue)
sets the value of the criteria to newValue. Used by the ODMG OQLQuery.bind() operation


getO

public java.lang.Object getO()
Method declaration

Returns:

getAttribute

public java.lang.String getAttribute()
Method declaration

Returns:

toString

public java.lang.String toString()
Method declaration

Overrides:
toString in class java.lang.Object
Returns:

isNegative

public boolean isNegative()
Gets the negative.

Returns:
Returns a boolean

isBound

public boolean isBound()
BRJ : Used by the ODMG OQLQuery.bind() operation

Returns:
Returns a boolean indicator

setBound

protected void setBound(boolean bound)
Sets the bound.

Parameters:
bound - The bound to set

setO

protected void setO(java.lang.Object value)
Sets the value.

Parameters:
value - The value to set


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