|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StructMapper<T>
Interface defining signatures needed for pluggable implementations of STRUCT mappers. Implementations must handle the mapping from STRUCT attributes to and from the target class.
| Method Summary | |
|---|---|
T |
fromStruct(oracle.sql.STRUCT struct)
Map attributes from the passed in STRUCT to the desired object type. |
oracle.sql.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. |
| Method Detail |
|---|
oracle.sql.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 type
SQLException
T fromStruct(oracle.sql.STRUCT struct)
throws SQLException
struct - the STRUCT containing attribute values to be used
SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||