public interface StructConverter
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertToObject(java.sql.Struct struct)
PUBLIC:
This method will be invoked internally when reading a Struct from the database
Implementers should put any custom conversion logic in this method
|
java.sql.Struct |
convertToStruct(java.lang.Object struct,
java.sql.Connection connection)
PUBLIC:
This method will be invoked internally when writing an Object to the database
Implementers should put any custom conversion logic in this method
|
java.lang.Class |
getJavaType()
PUBLIC:
|
java.lang.String |
getStructName()
PUBLIC:
|
java.lang.String getStructName()
java.lang.Class getJavaType()
java.lang.Object convertToObject(java.sql.Struct struct) throws java.sql.SQLException
struct
- the Struct that will be readjava.sql.SQLException
java.sql.Struct convertToStruct(java.lang.Object struct, java.sql.Connection connection) throws java.sql.SQLException
struct
- The Object to convertconnection
- The JDBC connectionjava.sql.SQLException