oracle.sql
Interface CustomDatum


public abstract interface CustomDatum


Method Summary
TypeMethod
 Datum toDatum(OracleConnection c)
          Called by setOracleObject to extract a Datum.
 

Method Detail

toDatum

public Datum toDatum(OracleConnection c)
              throws java.sql.SQLException
Called by setOracleObject to extract a Datum. It is the CustomDatum's responsibility to be sure that it returns the correct category of Datum.

Most EmbedDatum's will ignore the connection, but it is occassionally needed. For example, if the class embeds CHAR's it may nees the connection to determine the database character set.

Parameters:
c - The connection into which the value is being sent.
Returns:
a Datum containg the value to be sent into the connection.