public class SQLTimestampExpr extends SQLExprImpl implements SQLValuableExpr, SQLLiteralExpr
| Modifier and Type | Field and Description |
|---|---|
static SQLDataType |
DATA_TYPE |
| Constructor and Description |
|---|
SQLTimestampExpr() |
SQLTimestampExpr(Date date) |
SQLTimestampExpr(Date date,
TimeZone timeZone) |
SQLTimestampExpr(String literal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDay(int delta) |
boolean |
addHour(int delta) |
boolean |
addMiniute(int delta) |
boolean |
addMonth(int delta) |
static boolean |
check(String str) |
SQLTimestampExpr |
clone() |
SQLDataType |
computeDataType() |
boolean |
equals(Object obj) |
List |
getChildren() |
Date |
getDate(TimeZone timeZone) |
String |
getLiteral() |
String |
getTimeZone() |
String |
getValue() |
int |
hashCode() |
boolean |
isWithTimeZone() |
static SQLTimestampExpr |
of(String str) |
void |
setLiteral(Date x) |
void |
setLiteral(Date x,
TimeZone timeZone) |
void |
setLiteral(String literal) |
void |
setTimeZone(String timeZone) |
void |
setWithTimeZone(boolean withTimeZone) |
String |
toString() |
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLineaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParentpublic static final SQLDataType DATA_TYPE
public SQLTimestampExpr()
public SQLTimestampExpr(String literal)
public SQLTimestampExpr(Date date)
public SQLTimestampExpr clone()
clone in interface SQLLiteralExprclone in interface SQLExprclone in interface SQLObjectclone in class SQLExprImplpublic boolean addDay(int delta)
public boolean addMonth(int delta)
public boolean addHour(int delta)
public boolean addMiniute(int delta)
public String getValue()
getValue in interface SQLValuableExprpublic String getLiteral()
public void setLiteral(String literal)
public void setLiteral(Date x)
public String getTimeZone()
public void setTimeZone(String timeZone)
public boolean isWithTimeZone()
public void setWithTimeZone(boolean withTimeZone)
public int hashCode()
hashCode in class SQLExprImplpublic boolean equals(Object obj)
equals in class SQLExprImplpublic String toString()
toString in class SQLObjectImplpublic SQLDataType computeDataType()
computeDataType in interface SQLExprcomputeDataType in class SQLExprImplpublic List getChildren()
getChildren in interface SQLExprgetChildren in class SQLExprImplpublic static boolean check(String str)
public static SQLTimestampExpr of(String str)
Copyright © 2013–2021 Alibaba Group. All rights reserved.