diff options
Diffstat (limited to 'libjava/java/sql/SQLData.java')
-rw-r--r-- | libjava/java/sql/SQLData.java | 69 |
1 files changed, 28 insertions, 41 deletions
diff --git a/libjava/java/sql/SQLData.java b/libjava/java/sql/SQLData.java index 3980d6f..1d1c205 100644 --- a/libjava/java/sql/SQLData.java +++ b/libjava/java/sql/SQLData.java @@ -39,47 +39,34 @@ exception statement from your version. */ package java.sql; /** - * This interface is used for mapping SQL data to user defined datatypes. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - */ -public interface SQLData + * This interface is used for mapping SQL data to user defined datatypes. + * + * @author Aaron M. Renn (arenn@urbanophile.com) + */ +public interface SQLData { + /** + * This method returns the user defined datatype name for this object. + * + * @return The user defined data type name for this object. + * @exception SQLException If an error occurs. + */ + public String getSQLTypeName() throws SQLException; -/** - * This method returns the user defined datatype name for this object. - * - * @return The user defined data type name for this object. - * - * @exception SQLException If an error occurs. - */ -public abstract String -getSQLTypeName() throws SQLException; - -/*************************************************************************/ - -/** - * This method populates the data in the object from the specified stream. - * - * @param stream The stream to read the data from. - * @param name The data type name of the data on the stream. - * - * @exception SQLException If an error occurs. - */ -public abstract void -readSQL(SQLInput stream, String name) throws SQLException; - -/*************************************************************************/ - -/** - * This method writes the data in this object to the specified stream. - * - * @param stream The stream to write the data to. - * - * @exception SQLException If an error occurs. - */ -public abstract void -writeSQL(SQLOutput stream) throws SQLException; - -} // interface SQLData + /** + * This method populates the data in the object from the specified stream. + * + * @param stream The stream to read the data from. + * @param name The data type name of the data on the stream. + * @exception SQLException If an error occurs. + */ + public void readSQL(SQLInput stream, String typeName) throws SQLException; + /** + * This method writes the data in this object to the specified stream. + * + * @param stream The stream to write the data to. + * @exception SQLException If an error occurs. + */ + public void writeSQL(SQLOutput stream) throws SQLException; +} |