public class CmsSqlBooleanClause extends java.lang.Object implements I_CmsQueryFragment
| 构造器和说明 |
|---|
CmsSqlBooleanClause(java.lang.String operator)
Creates a new boolean clause.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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_CmsQueryFragmentvisit 在接口中 I_CmsQueryFragmentbuilder - the statement builderI_CmsQueryFragment.visit(org.opencms.db.CmsStatementBuilder)