Spring Data JDBC Extensions

org.springframework.data.jdbc.jms.support.oracle
Interface DatumMapper<T>

All Known Implementing Classes:
StructDatumMapper

public interface DatumMapper<T>

Interface that defines mapping of an advanced data type to and from an object

Since:
1.0
Author:
Thomas Risberg

Method Summary
 T fromDatum(oracle.sql.Datum datum)
          Extract the Datum content and return it in a domain class instance.
 oracle.sql.Datum toDatum(T source, Connection conn)
          Create a Datum object based on the passed in object using the connection if necessary.
 

Method Detail

toDatum

oracle.sql.Datum toDatum(T source,
                         Connection conn)
                         throws SQLException
Create a Datum object based on the passed in object using the connection if necessary.

Parameters:
source - the object containing tha data to be used
conn - the database Connection that can be used to create database specific instances
Returns:
the created Datum
Throws:
SQLException

fromDatum

T fromDatum(oracle.sql.Datum datum)
            throws SQLException
Extract the Datum content and return it in a domain class instance.

Parameters:
datum - the Datum containing the data
Returns:
the instance of the domain class populated with extracted data from the Datum
Throws:
SQLException

Spring Data JDBC Extensions