Package com.alibaba.druid.sql.ast.expr
Class SQLDateExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLDateExpr
- All Implemented Interfaces:
SQLLiteralExpr
,SQLValuableExpr
,SQLExpr
,SQLObject
,SQLReplaceable
,Cloneable
public class SQLDateExpr
extends SQLExprImpl
implements SQLLiteralExpr, SQLValuableExpr, SQLReplaceable
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
ConstructorDescriptionSQLDateExpr
(String literal) SQLDateExpr
(Date literal) SQLDateExpr
(Date literal, TimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) boolean
addDay
(int delta) boolean
addMonth
(int delta) boolean
addYear
(int delta) static boolean
clone()
boolean
static String
getDate()
getValue()
int
hashCode()
static boolean
boolean
void
setLiteral
(String literal) void
setLiteral
(Date x) void
setLiteral
(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, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
-
SQLDateExpr
public SQLDateExpr() -
SQLDateExpr
-
SQLDateExpr
-
SQLDateExpr
-
-
Method Details
-
getLiteral
-
setLiteral
-
setLiteral
-
setLiteral
-
getValue
- Specified by:
getValue
in interfaceSQLValuableExpr
-
getDate
-
getDate
-
addDay
public boolean addDay(int delta) -
addMonth
public boolean addMonth(int delta) -
addYear
public boolean addYear(int delta) -
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSQLExprImpl
-
equals
- Specified by:
equals
in classSQLExprImpl
-
clone
- Specified by:
clone
in interfaceSQLExpr
- Specified by:
clone
in interfaceSQLLiteralExpr
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in classSQLExprImpl
-
replace
- Specified by:
replace
in interfaceSQLReplaceable
-
getChildren
- Specified by:
getChildren
in interfaceSQLExpr
- Overrides:
getChildren
in classSQLExprImpl
-
isSupport
-
check
-
format
-
computeDataType
- Specified by:
computeDataType
in interfaceSQLExpr
- Overrides:
computeDataType
in classSQLExprImpl
-