org.apache.ojb.broker.query
Class FieldCriteria

java.lang.Object
  extended byorg.apache.ojb.broker.query.SelectionCriteria
      extended byorg.apache.ojb.broker.query.FieldCriteria
All Implemented Interfaces:
java.io.Serializable

public class FieldCriteria
extends SelectionCriteria

Abstract superclass for Criteria using a field to compare with

Version:
$Id: FieldCriteria.java,v 1.9 2004/05/22 08:37:23 brj Exp $
Author:
Jakob Braeuchi
See Also:
Serialized Form

Method Summary
 java.lang.String getClause()
          Answer the SQL compare-clause for this criteria
 boolean isTranslateField()
           
 
Methods inherited from class org.apache.ojb.broker.query.SelectionCriteria
bind, getAlias, getAttribute, getClassesForPath, getCriteria, getNumberOfExtentsToBind, getPathClasses, getQuery, getUserAlias, getValue, isBound, isTranslateAttribute, setAlias, setAlias, setAlias, setNumberOfExtentsToBind, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isTranslateField

public boolean isTranslateField()
Returns:
true if field name should be translated into column name

getClause

public java.lang.String getClause()
Description copied from class: SelectionCriteria
Answer the SQL compare-clause for this criteria

Specified by:
getClause in class SelectionCriteria


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2