| |
|
| java.lang.Object org.apache.ojb.broker.query.SelectionCriteria
All known Subclasses: org.apache.ojb.broker.query.SqlCriteria, org.apache.ojb.broker.query.FieldCriteria, org.apache.ojb.broker.query.ValueCriteria, org.apache.ojb.broker.query.ExistsCriteria,
SelectionCriteria | abstract public class SelectionCriteria implements java.io.Serializable(Code) | | 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
author: DB Harvey-George author: Thomas Mahler author: Jakob Braeuchi version: $Id: SelectionCriteria.java,v 1.17.2.2 2005/12/21 22:27:09 tomdz Exp $ |
serialVersionUID | final static long serialVersionUID(Code) | | |
SelectionCriteria | SelectionCriteria(Object anAttribute, Object aValue, String alias)(Code) | | Constructor declaration
Parameters: anAttribute - column- or fieldName or a Query Parameters: aValue - the value to compare with Parameters: negative - criteria is negated (ie NOT LIKE instead of LIKE) Parameters: alias - use alias to link anAttribute to |
SelectionCriteria | SelectionCriteria(Object anAttribute, Object aValue, UserAlias aUserAlias)(Code) | | Constructor declaration
Parameters: anAttribute - column- or fieldName or a Query Parameters: aValue - the value to compare with Parameters: aUserAlias - userAlias to link anAttribute to |
bind | public void bind(Object newValue)(Code) | | sets the value of the criteria to newValue. Used by the ODMG OQLQuery.bind() operation
|
getAttribute | public Object getAttribute()(Code) | | Answer the attribute
|
getClause | abstract public String getClause()(Code) | | Answer the SQL compare-clause for this criteria
|
getNumberOfExtentsToBind | public int getNumberOfExtentsToBind()(Code) | | Returns the numberOfExtentsToBind.
int |
getPathClasses | public Map getPathClasses()(Code) | | Gets the pathClasses from the parent Criteria.
A Map containing hints about what Class to be used for what path segment
Returns a Map |
isBindable | protected boolean isBindable()(Code) | | answer true if the selection criteria is bindable
BRJ: value null is bindable
|
isBound | public boolean isBound()(Code) | | BRJ : Used by the ODMG OQLQuery.bind() operation
Returns a boolean indicator |
isTranslateAttribute | public boolean isTranslateAttribute()(Code) | | true if attribute name should be translated into column name |
setAlias | public void setAlias(String alias)(Code) | | Sets the alias. By default the entire attribute path participates in the alias
Parameters: alias - The name of the alias to set |
setAlias | public void setAlias(String alias, String aliasPath)(Code) | | Sets the alias.
Parameters: alias - The alias to set |
setAlias | public void setAlias(UserAlias userAlias)(Code) | | Sets the alias using a userAlias object.
Parameters: userAlias - The alias to set |
setBound | protected void setBound(boolean bound)(Code) | | Sets the bound.
Parameters: bound - The bound to set |
setCriteria | void setCriteria(Criteria criteria)(Code) | | Parameters: criteria - |
setNumberOfExtentsToBind | public void setNumberOfExtentsToBind(int numberOfExtentsToBind)(Code) | | Sets the numberOfExtentsToBind.
Parameters: numberOfExtentsToBind - The numberOfExtentsToBind to set |
setTranslateAttribute | void setTranslateAttribute(boolean b)(Code) | | Parameters: b - |
setValue | protected void setValue(Object value)(Code) | | Sets the value.
Parameters: value - The value to set |
toString | public String toString()(Code) | | String representation
|
|
|
|