java.sql

Interface SQLData

public interface SQLData

This interface is used for mapping SQL data to user defined datatypes.
Method Summary
StringgetSQLTypeName()
This method returns the user defined datatype name for this object.
voidreadSQL(SQLInput stream, String typeName)
This method populates the data in the object from the specified stream.
voidwriteSQL(SQLOutput stream)
This method writes the data in this object to the specified stream.

Method Detail

getSQLTypeName

public String getSQLTypeName()
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

public void readSQL(SQLInput stream, String typeName)
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

public void writeSQL(SQLOutput stream)
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.