public class SqlDateTimeFormatter extends DateFormatter
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MSG_KEY |
BIGDECIMAL, BIGINTEGER, BOOLEAN, BYTE, CHARACTER, DOUBLE, FLOAT, INTEGER, LOCAL_DATE, LOCAL_DATETIME, LOCAL_DATETIME_24H, LOCAL_TIME, LOCAL_TIME_24H, LONG, OFFSET_DATETIME, OFFSET_DATETIME_24H, OFFSET_TIME, OFFSET_TIME_24H, SHORT, SQL_DATE, SQL_DATETIME, SQL_DATETIME_24H, SQL_TIME, SQL_TIME_24H| Constructor and Description |
|---|
SqlDateTimeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArgumentType() |
String |
getErrorMsgKey() |
protected DateFormat |
getFormat(FormatProvider formatProvider) |
Timestamp |
parse(String str,
FormatProvider formatProvider) |
doParse, formatpublic static final String ERROR_MSG_KEY
public String getErrorMsgKey()
getErrorMsgKey in class Formatterpublic Class<?> getArgumentType()
getArgumentType in class Formatterprotected DateFormat getFormat(FormatProvider formatProvider)
getFormat in class DateFormatterpublic Timestamp parse(String str, FormatProvider formatProvider) throws FormatterException
parse in class FormatterFormatterExceptionCopyright © 2017. All rights reserved.