public abstract static class ScalarTypeBoolean.BooleanBase extends ScalarTypeBase<Boolean>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeBoolean.BooleanBase(boolean jdbcNative,
int jdbcType) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatValue(Boolean t)
Convert the type into a string representation.
|
boolean |
isDateTimeCapable()
Return true if the type can accept long systemTimeMillis input.
|
Boolean |
parse(String value)
Convert the string value to the appropriate java object.
|
Boolean |
parseDateTime(long systemTimeMillis)
Convert the systemTimeMillis into the appropriate java object.
|
Object |
readData(DataInput dataInput) |
void |
writeData(DataOutput dataOutput,
Object v) |
accumulateScalarTypes, format, getDbNullValue, getJdbcType, getLength, getType, isDbNull, isJdbcNative, jsonFromString, jsonToString, jsonWrite, loadIgnoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, read, toBeanType, toJdbcTypepublic ScalarTypeBoolean.BooleanBase(boolean jdbcNative,
int jdbcType)
public String formatValue(Boolean t)
ScalarTypeReciprocal of parse().
public Boolean parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
public Boolean parseDateTime(long systemTimeMillis)
ScalarTypeFor non dateTime types this will throw an exception.
public boolean isDateTimeCapable()
ScalarType
This is used to determine if is is sensible to use the
ScalarType.parseDateTime(long) method.
This includes the Date, Calendar, sql Date, Time, Timestamp, JODA types as well as Long, BigDecimal and String (although it generally is not expected to parse systemTimeMillis to a String or BigDecimal).
public Object readData(DataInput dataInput) throws IOException
IOExceptionpublic void writeData(DataOutput dataOutput, Object v) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.