|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.query.SelectionCriteria
public abstract class SelectionCriteria
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
| Field Summary | |
|---|---|
protected static String |
BETWEEN
|
protected static String |
EQUAL
|
protected static String |
GREATER
|
protected static String |
IN
|
protected static String |
IS_NULL
|
protected static String |
LESS
|
protected static String |
LIKE
|
protected static String |
NOT_BETWEEN
|
protected static String |
NOT_EQUAL
|
protected static String |
NOT_GREATER
|
protected static String |
NOT_IN
|
protected static String |
NOT_IS_NULL
|
protected static String |
NOT_LESS
|
protected static String |
NOT_LIKE
|
| Method Summary | |
|---|---|
void |
bind(Object newValue)
sets the value of the criteria to newValue. |
String |
getAlias()
|
Object |
getAttribute()
Answer the attribute |
List |
getClassesForPath(String aPath)
Get the a List of Class objects used as hints for a path |
abstract String |
getClause()
Answer the SQL compare-clause for this criteria |
Criteria |
getCriteria()
|
int |
getNumberOfExtentsToBind()
Returns the numberOfExtentsToBind. |
Map |
getPathClasses()
Gets the pathClasses from the parent Criteria. |
QueryByCriteria |
getQuery()
|
UserAlias |
getUserAlias()
|
Object |
getValue()
Answer the value |
protected boolean |
isBindable()
answer true if the selection criteria is bindable BRJ: value null is bindable |
boolean |
isBound()
BRJ : Used by the ODMG OQLQuery.bind() operation |
boolean |
isTranslateAttribute()
|
void |
setAlias(String alias)
Sets the alias. |
void |
setAlias(String alias,
String aliasPath)
Sets the alias. |
void |
setAlias(UserAlias userAlias)
Sets the alias using a userAlias object. |
protected void |
setBound(boolean bound)
Sets the bound. |
void |
setNumberOfExtentsToBind(int numberOfExtentsToBind)
Sets the numberOfExtentsToBind. |
protected void |
setValue(Object value)
Sets the value. |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String EQUAL
protected static final String NOT_EQUAL
protected static final String GREATER
protected static final String NOT_GREATER
protected static final String LESS
protected static final String NOT_LESS
protected static final String LIKE
protected static final String NOT_LIKE
protected static final String IS_NULL
protected static final String NOT_IS_NULL
protected static final String BETWEEN
protected static final String NOT_BETWEEN
protected static final String IN
protected static final String NOT_IN
| Method Detail |
|---|
public abstract String getClause()
public void bind(Object newValue)
public Object getValue()
public Object getAttribute()
public String toString()
toString in class Objectpublic boolean isBound()
protected void setBound(boolean bound)
bound - The bound to setprotected void setValue(Object value)
value - The value to setprotected boolean isBindable()
public int getNumberOfExtentsToBind()
public void setNumberOfExtentsToBind(int numberOfExtentsToBind)
numberOfExtentsToBind - The numberOfExtentsToBind to setpublic String getAlias()
public void setAlias(String alias)
alias - The name of the alias to set
public void setAlias(String alias,
String aliasPath)
alias - The alias to setpublic void setAlias(UserAlias userAlias)
userAlias - The alias to setpublic UserAlias getUserAlias()
public boolean isTranslateAttribute()
public Criteria getCriteria()
public QueryByCriteria getQuery()
public Map getPathClasses()
public List getClassesForPath(String aPath)
aPath - the path segment ie: allArticlesInGroup
org.apache.ojb.broker.QueryTest#testInversePathExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||