org.apache.ojb.broker.query
Class SelectionCriteria

java.lang.Object
  extended byorg.apache.ojb.broker.query.SelectionCriteria
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExistsCriteria, FieldCriteria, SqlCriteria, ValueCriteria

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

abstract baseclass of all criteria classes, can't be instantiated. This code is based on stuff from COBRA - Java Object Persistence Layer Copyright (C) 1997, 1998 DB Harvey-George eMail: cobra@lowrent.org

Version:
$Id: SelectionCriteria.java,v 1.13 2004/01/07 11:41:20 thma Exp $
Author:
DB Harvey-George, Thomas Mahler, Jakob Braeuchi
See Also:
Serialized Form

Method Summary
 void bind(java.lang.Object newValue)
          sets the value of the criteria to newValue.
 java.lang.String getAlias()
           
 java.lang.Object getAttribute()
          Answer the attribute
abstract  java.lang.String getClause()
          Answer the SQL compare-clause for this criteria
 Criteria getCriteria()
           
 int getNumberOfExtentsToBind()
          Returns the numberOfExtentsToBind.
 QueryByCriteria getQuery()
           
 java.lang.Object getValue()
          Answer the value
 boolean isBound()
          BRJ : Used by the ODMG OQLQuery.bind() operation
 boolean isTranslateAttribute()
           
 void setAlias(java.lang.String alias)
          Sets the alias.
 void setNumberOfExtentsToBind(int numberOfExtentsToBind)
          Sets the numberOfExtentsToBind.
 java.lang.String toString()
          String representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getClause

public abstract java.lang.String getClause()
Answer the SQL compare-clause for this criteria


bind

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


getValue

public java.lang.Object getValue()
Answer the value


getAttribute

public java.lang.Object getAttribute()
Answer the attribute


toString

public java.lang.String toString()
String representation


isBound

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

Returns:
Returns a boolean indicator

getNumberOfExtentsToBind

public int getNumberOfExtentsToBind()
Returns the numberOfExtentsToBind.

Returns:
int

setNumberOfExtentsToBind

public void setNumberOfExtentsToBind(int numberOfExtentsToBind)
Sets the numberOfExtentsToBind.

Parameters:
numberOfExtentsToBind - The numberOfExtentsToBind to set

getAlias

public java.lang.String getAlias()
Returns:
String

setAlias

public void setAlias(java.lang.String alias)
Sets the alias.

Parameters:
alias - The alias to set

isTranslateAttribute

public boolean isTranslateAttribute()
Returns:
true if attribute name should be translated into column name

getCriteria

public Criteria getCriteria()
Returns:

getQuery

public QueryByCriteria getQuery()


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