Package com.alibaba.druid.sql.ast.expr
Class SQLDateTimeExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLDateTimeExpr
- All Implemented Interfaces:
SQLLiteralExpr,SQLValuableExpr,SQLExpr,SQLObject,SQLReplaceable,Cloneable
public class SQLDateTimeExpr
extends SQLExprImpl
implements SQLLiteralExpr, SQLValuableExpr, SQLReplaceable
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLDateTimeExpr(String literal) SQLDateTimeExpr(Date now, TimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) static booleanclone()booleangetValue()inthashCode()static booleanbooleanvoidvoidsetLiteral(String literal) voidsetLiteral(Date x, TimeZone timeZone) Methods inherited from class 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, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
DATA_TYPE
-
supportDbTypes
public static long supportDbTypes
-
-
Constructor Details
-
SQLDateTimeExpr
public SQLDateTimeExpr() -
SQLDateTimeExpr
-
SQLDateTimeExpr
-
-
Method Details
-
setLiteral
-
getLiteral
-
setLiteral
-
setLiteral
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
getValue
- Specified by:
getValuein interfaceSQLValuableExpr
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein classSQLExprImpl
-
equals
- Specified by:
equalsin classSQLExprImpl
-
clone
- Specified by:
clonein interfaceSQLExpr- Specified by:
clonein interfaceSQLLiteralExpr- Specified by:
clonein interfaceSQLObject- Specified by:
clonein classSQLExprImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLExprImpl
-
isSupport
-
check
-