Spring Data JDBC Extensions Support

org.springframework.data.jdbc.jms.support.oracle
Interface DatumMapper

All Known Implementing Classes:
StructDatumMapper

public interface DatumMapper

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

Since:
1.0
Author:
Thomas Risberg

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

Method Detail

toDatum

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

Parameters:
object - 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

Object 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 Support

Copyright © 2011. All Rights Reserved.