public class SQLDateExpr extends SQLExprImpl implements SQLLiteralExpr, SQLValuableExpr, SQLReplaceable
| Modifier and Type | Field and Description |
|---|---|
static SQLDataType |
DATA_TYPE |
static long |
supportDbTypes |
| Constructor and Description |
|---|
SQLDateExpr() |
SQLDateExpr(Date literal) |
SQLDateExpr(Date literal,
TimeZone timeZone) |
SQLDateExpr(String literal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDay(int delta) |
boolean |
addMonth(int delta) |
boolean |
addYear(int delta) |
static boolean |
check(String str) |
SQLDateExpr |
clone() |
SQLDataType |
computeDataType() |
boolean |
equals(Object obj) |
static String |
format(Calendar calendar) |
List<SQLObject> |
getChildren() |
Date |
getDate() |
Date |
getDate(TimeZone timeZone) |
String |
getLiteral() |
String |
getValue() |
int |
hashCode() |
static boolean |
isSupport(DbType dbType) |
boolean |
replace(SQLExpr expr,
SQLExpr target) |
void |
setLiteral(Date x) |
void |
setLiteral(Date x,
TimeZone timeZone) |
void |
setLiteral(String literal) |
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParentpublic static final SQLDataType DATA_TYPE
public static long supportDbTypes
public SQLDateExpr()
public SQLDateExpr(String literal)
public SQLDateExpr(Date literal)
public String getLiteral()
public void setLiteral(String literal)
public void setLiteral(Date x)
public String getValue()
getValue in interface SQLValuableExprpublic Date getDate()
public boolean addDay(int delta)
public boolean addMonth(int delta)
public boolean addYear(int delta)
public int hashCode()
hashCode in class SQLExprImplpublic boolean equals(Object obj)
equals in class SQLExprImplpublic SQLDateExpr clone()
clone in interface SQLLiteralExprclone in interface SQLExprclone in interface SQLObjectclone in class SQLExprImplpublic boolean replace(SQLExpr expr, SQLExpr target)
replace in interface SQLReplaceablepublic List<SQLObject> getChildren()
getChildren in interface SQLExprgetChildren in class SQLExprImplpublic static boolean isSupport(DbType dbType)
public static boolean check(String str)
public SQLDataType computeDataType()
computeDataType in interface SQLExprcomputeDataType in class SQLExprImplCopyright © 2013–2022 Alibaba Group. All rights reserved.