类 SQLBinaryOpExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr
- 所有已实现的接口:
SQLDbTypedObject,SQLExpr,SQLObject,SQLReplaceable,Serializable,Cloneable,Comparable<SQLBinaryOpExpr>
public class SQLBinaryOpExpr
extends SQLExprImpl
implements SQLReplaceable, Serializable, SQLDbTypedObject, Comparable<SQLBinaryOpExpr>
- 另请参阅:
-
字段概要
字段从类继承的字段 com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
构造器概要
构造器构造器说明SQLBinaryOpExpr(DbType dbType) SQLBinaryOpExpr(SQLExpr left, SQLBinaryOperator operator, SQLExpr right) SQLBinaryOpExpr(SQLExpr left, SQLBinaryOperator operator, SQLExpr right, DbType dbType) SQLBinaryOpExpr(SQLExpr left, SQLExpr right, SQLBinaryOperator operator) -
方法概要
修饰符和类型方法说明protected voidaccept0(SQLASTVisitor visitor) static SQLExprstatic SQLExprstatic SQLExprandIfNotExists(SQLExpr a, SQLExpr b) clone()static SQLExprcombine(List<? extends SQLExpr> items, SQLBinaryOperator op) intbooleanconditionContainsColumn(String column) booleanconditionContainsTable(String alias) static SQLBinaryOpExprconditionEq(String column, int value) static SQLBinaryOpExprconditionEq(String column, String value) static SQLBinaryOpExprconditionLike(String column, SQLExpr value) static SQLBinaryOpExprconditionLike(String column, String value) booleanstatic SQLBinaryOpExprbooleanequals(SQLBinaryOpExpr other) booleanbooleanequalsIgoreOrder(SQLBinaryOpExpr other) getLeft()Retrieves the merged list of SQLObjects.getRight()inthashCode()static booleanbooleanbooleanbooleanbooleanbooleanstatic SQLBinaryOpExprstatic SQLBinaryOpExprstatic booleanbooleanstatic SQLBinaryOpExprMerges the given SQLBinaryOpExpr with its parent using a parameterized visitor.static SQLExprstatic SQLExprbooleanvoidvoidvoidsetOperator(SQLBinaryOperator operator) voidsetParenthesized(boolean parenthesized) voidsplit(SQLExpr x, SQLBinaryOperator op) static voidsplit(List<SQLExpr> outList, SQLExpr expr, SQLBinaryOperator op) toString()从类继承的方法 com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine从接口继承的方法 com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
字段详细资料
-
left
-
right
-
operator
-
dbType
-
mergedList
-
-
构造器详细资料
-
SQLBinaryOpExpr
public SQLBinaryOpExpr() -
SQLBinaryOpExpr
-
SQLBinaryOpExpr
-
SQLBinaryOpExpr
-
SQLBinaryOpExpr
-
-
方法详细资料
-
getDbType
- 指定者:
getDbType在接口中SQLDbTypedObject
-
setDbType
-
getLeft
-
setLeft
-
getRight
-
setRight
-
getOperator
-
setOperator
-
isParenthesized
public boolean isParenthesized() -
setParenthesized
public void setParenthesized(boolean parenthesized) -
accept0
- 指定者:
accept0在类中SQLObjectImpl
-
getChildren
- 指定者:
getChildren在接口中SQLExpr- 覆盖:
getChildren在类中SQLExprImpl
-
hashCode
public int hashCode()- 指定者:
hashCode在类中SQLExprImpl
-
equals
- 指定者:
equals在类中SQLExprImpl
-
equals
-
equalsIgoreOrder
-
clone
-
toString
- 覆盖:
toString在类中SQLObjectImpl
-
combine
-
split
-
split
-
split
-
split
-
and
-
and
-
or
-
or
-
andIfNotExists
-
isNotNull
-
isNull
-
replace
- 指定者:
replace在接口中SQLReplaceable
-
other
-
contains
-
computeDataType
- 指定者:
computeDataType在接口中SQLExpr- 覆盖:
computeDataType在类中SQLExprImpl
-
conditionContainsTable
-
conditionContainsColumn
-
merge
Merges the given SQLBinaryOpExpr with its parent using a parameterized visitor.- 参数:
v- the parameterized visitor used for mergingx- the SQLBinaryOpExpr to be merged- 返回:
- the merged SQLBinaryOpExpr
-
getMergedList
Retrieves the merged list of SQLObjects.- 返回:
- the merged list of SQLObjects
-
isOr
-
isAnd
-
isLeftNameAndRightLiteral
public boolean isLeftNameAndRightLiteral() -
isLeftFunctionAndRightLiteral
public boolean isLeftFunctionAndRightLiteral() -
isNameAndLiteral
public boolean isNameAndLiteral() -
isBothName
public boolean isBothName() -
compareTo
- 指定者:
compareTo在接口中Comparable<SQLBinaryOpExpr>
-
isLeftLiteralAndRightName
public boolean isLeftLiteralAndRightName() -
conditionEq
-
conditionEq
-
conditionLike
-
conditionLike
-
eq
-