public class SqlCondition extends QueryPart implements Copyable
Modifier and Type | Field and Description |
---|---|
protected Object |
content
The content.
|
protected SqlBooleanArithmeticCondition |
nextCondition
The next condition.
|
ASEXPRESSION, defaultClauseStringBuilderLength, defaultExpressionStringBuilderLength, defaultQueryStringBuilderLength, DELIMIT_ALIASES, DELIMIT_COLUMN_IDENTIFIERS, DELIMIT_TABLE_IDENTIFIERS, ESCAPE_DBL_QUOTES, ESCAPE_QUOTES, FLAGS_TAKEN, MINIINDENT, OMITALIAS, PACKED, QUALIFY_BY_TABLE, SINGLELINE, UNQUALIFIED
Modifier | Constructor and Description |
---|---|
|
SqlCondition(Object content)
Instantiates a new sql condition.
|
protected |
SqlCondition(SqlCondition copySource,
SqlBooleanArithmeticCondition nextCondition) |
Modifier and Type | Method and Description |
---|---|
SqlBooleanTerm |
AND(Object andCondition)
AND.
|
protected StringBuilder |
assemble(DbmsDMLAssembler<?> dmlAssembler,
StringBuilder sb,
int indentLevel,
int flags)
Assemble.
|
protected void |
assembleIntern(DbmsDMLAssembler<?> dmlAssembler,
StringBuilder sb,
int indentLevel,
int flags)
Assemble intern.
|
protected void |
assembleNextCondition(DbmsDMLAssembler<?> dmlAssembler,
StringBuilder sb,
int indentLevel,
int flags)
Assemble next condition.
|
SqlCondition |
copy()
Note that this does CANNOT copy the
nextCondition internally due to consistency reasons. |
SqlCondition |
copy(Boolean copyDeepNextCondition) |
protected static SqlCondition |
copy(SqlCondition sqlConditionToCopy,
Boolean copyDeepNextCondition) |
SqlBooleanArithmeticCondition |
getNextCondition()
Gets the next condition.
|
SqlCondition |
OR(Object orCondition)
OR.
|
String |
toString() |
assembleAlias, assembleObject, assembleQuery, bitAsExpression, bitDelimitAliases, bitDelimitColumnIdentifiers, bitDelimitTableIdentifiers, bitEscapeDoubleQuotes, bitMiniIndent, bitOmitAlias, bitPacked, bitQualified, bitQualifyByTable, bitSingleLine, concat, concatSqlExpressions, EscapeQuotes, flagsToString, function, indent, isAsExpression, isDelimitAliases, isDelimitColumnIdentifiers, isDelimitTableIdentifiers, isEscapeDoubleQuotes, isEscapeQuotes, isMiniIndent, isOmitAlias, isPacked, isQualifyByTable, isSingleLine, isUnqualified, keyword, list, printFlags, setAsExpression, setDelimitAliases, setDelimitColumnIdentifiers, setDelimitTableIdentifiers, setEscapeDoubleQuotes, setEscapeQuotes, setMiniIndent, setPacked, setQualified, setQualifyByTable, setSingleLine, setUseAlias
protected Object content
protected SqlBooleanArithmeticCondition nextCondition
public SqlCondition(Object content)
content
- the contentprotected SqlCondition(SqlCondition copySource, SqlBooleanArithmeticCondition nextCondition)
public SqlBooleanArithmeticCondition getNextCondition()
protected void assembleIntern(DbmsDMLAssembler<?> dmlAssembler, StringBuilder sb, int indentLevel, int flags)
dmlAssembler
- the dml assemblersb
- the sbindentLevel
- the indent levelflags
- the flagsprotected void assembleNextCondition(DbmsDMLAssembler<?> dmlAssembler, StringBuilder sb, int indentLevel, int flags)
dmlAssembler
- the dml assemblersb
- the sbindentLevel
- the indent levelflags
- the flagsprotected StringBuilder assemble(DbmsDMLAssembler<?> dmlAssembler, StringBuilder sb, int indentLevel, int flags)
QueryPart
assemble
in class QueryPart
dmlAssembler
- sb
- indentLevel
- flags
- QueryPart.assemble(com.xdev.jadoth.sqlengine.dbms.DbmsDMLAssembler, java.lang.StringBuilder, int, int)
public SqlCondition OR(Object orCondition)
orCondition
- the or conditionpublic SqlBooleanTerm AND(Object andCondition)
andCondition
- the and conditionpublic String toString()
toString
in class Object
Object.toString()
public SqlCondition copy()
nextCondition
internally due to consistency reasons.protected static SqlCondition copy(SqlCondition sqlConditionToCopy, Boolean copyDeepNextCondition)
public SqlCondition copy(Boolean copyDeepNextCondition)
Copyright © 2003–2023 XDEV Software. All rights reserved.