public interface StructMapper<T>
Modifier and Type | Method and Description |
---|---|
T |
fromStruct(Struct struct)
Map attributes from the passed in Struct to the desired object type.
|
Struct |
toStruct(T source,
Connection conn,
String typeName)
Create a struct of the defined type and populate it with values from the passed in source object.
|
Struct toStruct(T source, Connection conn, String typeName) throws SQLException
source
- instance containing the values to mapconn
- database connection to be used to create the StructtypeName
- name of the Struct typeSQLException
T fromStruct(Struct struct) throws SQLException
struct
- the Struct containing attribute values to be usedSQLException