public class StringConverter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_NAME |
Constructor and Description |
---|
StringConverter(String dateformat,
String timeformat,
String timestampformat,
String timeZoneName) |
StringConverter(String dateformat,
String timeformat,
String timestampformat,
String timeZoneName,
Locale locale) |
public static final String COLUMN_NAME
public StringConverter(String dateformat, String timeformat, String timestampformat, String timeZoneName)
public byte[] parseBytes(String str)
public BigDecimal parseBigDecimal(String str)
public String formatDate(Date d)
parseDate
.d
- date to format.public String formatTime(Time t)
parseTime
.t
- time to format.public String formatTimestamp(Timestamp timestamp)
parseTimestamp
.timestamp
- timestamp to format.public InputStream parseAsciiStream(String str)
public static Object getLiteralForTypeName(String sqlTypeName)
sqlTypeName
- name of SQL data type.public static String getTypeNameForLiteral(Object literal)
literal
- object to get SQL data type for.Copyright © 2019. All rights reserved.