|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for combining expressions for use in the WHERE clause of a SQL query.
You get an EbiQueryExpression object when you call the query-building where...() methods of an element-specific query object. To build a complex expression, you join one EbiQueryExpression with another using EbiQueryExpression methods. There are methods for joining expressions using AND, OR, negating, and parenthesizing. It is up to you to combine expression in an appropriate order and adding parentheses where appropriate to control the evaluation of the expression when the query gets executed.
For a code example, see EbiDocQuery
.
For a list of element-specific query objects,
see the subinterfaces of EbiQuery
and
EbiMetaDataQuery
.
Method Summary | |
void |
andExpression(EbiQueryExpression other)
Joins another expression with the current expression with a logical AND. |
void |
andMultipleExpressions(EbiQueryExpression[] exprs)
Joins multiple expressions with the current expression with logical ANDs. |
String |
getExpression()
Gets the text of the current expression. |
Object[] |
getInParameters()
Gets an Array of In Parameters with propName/PropDataType/PropValue for each paramter. |
void |
negateExpression()
Negates the current expression. |
void |
orExpression(EbiQueryExpression other)
Joins another expression with the current expression with a logical OR. |
void |
orMultipleExpressions(EbiQueryExpression[] exprs)
Joins multiple expressions with the current expression with logical ORs. |
void |
parenthesize()
Encloses the current expression in parentheses. |
Method Detail |
public String getExpression()
public void andExpression(EbiQueryExpression other)
other
- An EbiQueryExpression object that you want to combine with the current WHERE clause.public void andMultipleExpressions(EbiQueryExpression[] exprs)
exprs
- An array of EbiQueryExpression objects that you want to combine with the current WHERE clause.public void orExpression(EbiQueryExpression other)
other
- An EbiQueryExpression object that you want to combine with the current WHERE clause.public void orMultipleExpressions(EbiQueryExpression[] exprs)
exprs
- An array of EbiQueryExpression objects that you want to combine with the current WHERE clause.public void negateExpression()
public void parenthesize()
public Object[] getInParameters()
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |