java.sql
Interface SQLData


public interface SQLData

This interface is used for mapping SQL data to user defined datatypes.


Method Summary
 String getSQLTypeName()
          This method returns the user defined datatype name for this object.
 void readSQL(SQLInput stream, String typeName)
          This method populates the data in the object from the specified stream.
 void writeSQL(SQLOutput stream)
          This method writes the data in this object to the specified stream.
 

Method Detail

getSQLTypeName

String getSQLTypeName()
                      throws SQLException
This method returns the user defined datatype name for this object.

Returns:
The user defined data type name for this object.
Throws:
SQLException - If an error occurs.

readSQL

void readSQL(SQLInput stream,
             String typeName)
             throws SQLException
This method populates the data in the object from the specified stream.

Parameters:
stream - The stream to read the data from.
typeName - The data type name of the data on the stream.
Throws:
SQLException - If an error occurs.

writeSQL

void writeSQL(SQLOutput stream)
              throws SQLException
This method writes the data in this object to the specified stream.

Parameters:
stream - The stream to write the data to.
Throws:
SQLException - If an error occurs.