|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsSqlBooleanClause
public class CmsSqlBooleanClause
Class for generating an SQL boolean expression.
| Constructor Summary | |
|---|---|
CmsSqlBooleanClause(String operator)
Creates a new boolean clause. |
|
| Method Summary | |
|---|---|
CmsSqlBooleanClause |
addCondition(I_CmsQueryFragment fragment)
Adds an operand to the boolean expression. |
static CmsSqlBooleanClause |
makeAnd(I_CmsQueryFragment... fragments)
Creates a boolean "AND" expression. |
static CmsSqlBooleanClause |
makeOr(I_CmsQueryFragment... fragments)
Creates a boolean "OR" expression. |
void |
visit(CmsStatementBuilder builder)
Generates the SQL and parameters and sends them to the statement builder . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSqlBooleanClause(String operator)
operator - the boolean operator| Method Detail |
|---|
public static CmsSqlBooleanClause makeAnd(I_CmsQueryFragment... fragments)
fragments - the operands of the "AND"
public static CmsSqlBooleanClause makeOr(I_CmsQueryFragment... fragments)
fragments - the operands of the "OR"
public CmsSqlBooleanClause addCondition(I_CmsQueryFragment fragment)
fragment - the operand
public void visit(CmsStatementBuilder builder)
I_CmsQueryFragment
visit in interface I_CmsQueryFragmentbuilder - the statement builderI_CmsQueryFragment.visit(org.opencms.db.CmsStatementBuilder)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||