public class CmsSqlBooleanClause extends java.lang.Object implements I_CmsQueryFragment
Constructor and Description |
---|
CmsSqlBooleanClause(java.lang.String operator)
Creates a new boolean clause.
|
Modifier and Type | Method and Description |
---|---|
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 .
|
public CmsSqlBooleanClause(java.lang.String operator)
operator
- the boolean operatorpublic 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 operandpublic void visit(CmsStatementBuilder builder)
I_CmsQueryFragment
visit
in interface I_CmsQueryFragment
builder
- the statement builderI_CmsQueryFragment.visit(org.opencms.db.CmsStatementBuilder)