public interface SqlTypeConverter
| Modifier and Type | Method and Description |
|---|---|
Object |
convertFromString(String textRep,
int sqlTypeCode)
Converts the given textual representation to an instance of the target type.
|
String |
convertToString(Object obj,
int sqlTypeCode)
Converts the given object to a string representation.
|
Object convertFromString(String textRep, int sqlTypeCode) throws ConversionException
textRep - The textual representationsqlTypeCode - The target sql type code, one of the constants in TypesConversionExceptionString convertToString(Object obj, int sqlTypeCode) throws ConversionException
obj - The objectsqlTypeCode - The corresponding source type codeConversionExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.