jxDBCon 0.9z

org.sourceforge.jxdbcon
Class AbstractSQLOutput

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.AbstractSQLOutput
All Implemented Interfaces:
SQLOutput
Direct Known Subclasses:
DefaultSQLOutput

public abstract class AbstractSQLOutput
extends Object
implements SQLOutput

AbstractSQLOutput implements generics of the SQLOutput interface.

Version:
$Revision: 1.5 $, $Date: 2002/03/16 01:26:07 $
Author:
Keve Müller

Field Summary
private  Object buf
           
private  ConversionContext ctx
           
 
Constructor Summary
protected AbstractSQLOutput(Object buf, ConversionContext ctx)
           
 
Method Summary
protected abstract  AbstractType getType(int idx)
          Return the AbstractType of the indexed element.
 void writeArray(Array val)
           
 void writeAsciiStream(InputStream val)
           
 void writeBigDecimal(BigDecimal val)
           
 void writeBinaryStream(InputStream val)
           
 void writeBlob(Blob val)
           
 void writeBoolean(boolean val)
           
 void writeByte(byte val)
           
 void writeBytes(byte[] val)
           
 void writeCharacterStream(Reader val)
           
 void writeClob(Clob val)
           
 void writeDate(Date val)
           
 void writeDouble(double val)
           
 void writeFloat(float val)
           
 void writeInt(int val)
           
 void writeLong(long val)
           
 void writeObject(SQLData val)
           
 void writeRef(Ref val)
           
 void writeShort(short val)
           
 void writeString(String val)
           
 void writeStruct(Struct val)
           
 void writeTime(Time val)
           
 void writeTimestamp(Timestamp val)
           
 void writeURL(URL val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

private final Object buf

ctx

private final ConversionContext ctx
Constructor Detail

AbstractSQLOutput

protected AbstractSQLOutput(Object buf,
                            ConversionContext ctx)
Method Detail

getType

protected abstract AbstractType getType(int idx)
Return the AbstractType of the indexed element.

Parameters:
idx - the index
Returns:
the type

writeArray

public final void writeArray(Array val)
                      throws SQLException
Specified by:
writeArray in interface SQLOutput
SQLException

writeAsciiStream

public final void writeAsciiStream(InputStream val)
                            throws SQLException
Specified by:
writeAsciiStream in interface SQLOutput
SQLException

writeBigDecimal

public final void writeBigDecimal(BigDecimal val)
                           throws SQLException
Specified by:
writeBigDecimal in interface SQLOutput
SQLException

writeBinaryStream

public final void writeBinaryStream(InputStream val)
                             throws SQLException
Specified by:
writeBinaryStream in interface SQLOutput
SQLException

writeBlob

public final void writeBlob(Blob val)
                     throws SQLException
Specified by:
writeBlob in interface SQLOutput
SQLException

writeBoolean

public final void writeBoolean(boolean val)
                        throws SQLException
Specified by:
writeBoolean in interface SQLOutput
SQLException

writeByte

public final void writeByte(byte val)
                     throws SQLException
Specified by:
writeByte in interface SQLOutput
SQLException

writeBytes

public final void writeBytes(byte[] val)
                      throws SQLException
Specified by:
writeBytes in interface SQLOutput
SQLException

writeCharacterStream

public final void writeCharacterStream(Reader val)
                                throws SQLException
Specified by:
writeCharacterStream in interface SQLOutput
SQLException

writeClob

public final void writeClob(Clob val)
                     throws SQLException
Specified by:
writeClob in interface SQLOutput
SQLException

writeDate

public final void writeDate(Date val)
                     throws SQLException
Specified by:
writeDate in interface SQLOutput
SQLException

writeDouble

public final void writeDouble(double val)
                       throws SQLException
Specified by:
writeDouble in interface SQLOutput
SQLException

writeFloat

public final void writeFloat(float val)
                      throws SQLException
Specified by:
writeFloat in interface SQLOutput
SQLException

writeInt

public final void writeInt(int val)
                    throws SQLException
Specified by:
writeInt in interface SQLOutput
SQLException

writeLong

public final void writeLong(long val)
                     throws SQLException
Specified by:
writeLong in interface SQLOutput
SQLException

writeObject

public final void writeObject(SQLData val)
                       throws SQLException
Specified by:
writeObject in interface SQLOutput
SQLException

writeRef

public final void writeRef(Ref val)
                    throws SQLException
Specified by:
writeRef in interface SQLOutput
SQLException

writeShort

public final void writeShort(short val)
                      throws SQLException
Specified by:
writeShort in interface SQLOutput
SQLException

writeString

public final void writeString(String val)
                       throws SQLException
Specified by:
writeString in interface SQLOutput
SQLException

writeStruct

public final void writeStruct(Struct val)
                       throws SQLException
Specified by:
writeStruct in interface SQLOutput
SQLException

writeTime

public final void writeTime(Time val)
                     throws SQLException
Specified by:
writeTime in interface SQLOutput
SQLException

writeTimestamp

public final void writeTimestamp(Timestamp val)
                          throws SQLException
Specified by:
writeTimestamp in interface SQLOutput
SQLException

writeURL

public final void writeURL(URL val)
                    throws SQLException
Specified by:
writeURL in interface SQLOutput
SQLException

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.