|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlTypeConverter
Interface for classes that convert between strings and sql data types.
Method Summary | |
---|---|
java.lang.Object |
convertFromString(java.lang.String textRep,
int sqlTypeCode)
Converts the given textual representation to an instance of the target type. |
java.lang.String |
convertToString(java.lang.Object obj,
int sqlTypeCode)
Converts the given object to a string representation. |
Method Detail |
---|
java.lang.Object convertFromString(java.lang.String textRep, int sqlTypeCode) throws ConversionException
textRep
- The textual representationsqlTypeCode
- The target sql type code, one of the constants in Types
ConversionException
java.lang.String convertToString(java.lang.Object obj, int sqlTypeCode) throws ConversionException
obj
- The objectsqlTypeCode
- The corresponding source type code
ConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |