public class IfxComplexOutput extends java.lang.Object implements IfmxComplexSQLOutput
| Modifier and Type | Field and Description |
|---|---|
protected IfxConnection |
conn |
protected Trace |
trace |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExtendedName() |
static int |
getUDToffset(int dataStart,
Trace trace) |
byte[] |
toByteArray() |
void |
writeArray(java.sql.Array arr)
Write an array to the stream.
|
void |
writeAsciiStream(java.io.InputStream x)
Return the next attribute to the stream as a stream of ASCII characters.
|
void |
writeBigDecimal(java.math.BigDecimal bd)
Write a BigDecimal from the collection to the server.
|
void |
writeBinaryStream(java.io.InputStream is)
Write the InputStream from the collection to the server.
|
void |
writeBlob(java.sql.Blob blob)
Writes the Blob object from the collection to the server.
|
void |
writeBoolean(boolean bool)
Writes the boolean from the collection to the server.
|
void |
writeByte(byte b)
Writes the byte from the collection to the server.
|
void |
writeBytes(byte[] x)
Write the next attribute to the stream as an array of bytes.
|
void |
writeBytes(byte[] x,
int len) |
void |
writeCharacterStream(java.io.Reader x)
Return the next attribute to the stream as a stream of Unicode characters.
|
void |
writeClob(java.sql.Clob clob)
Writes the Clob object from the collection to the server.
|
void |
writeDate(java.sql.Date d)
Writes the Date from the collection to the server.
|
void |
writeDouble(double d)
Writes the double from the collection to the server.
|
void |
writeDoubleNull()
If attribute is set to null in Struct, we need to send null indicator to the server
since the parameter maps to double we send 8 bytes value to the server to insert
null.
|
void |
writeFloat(float f)
Writes the float from the collection to the server.
|
void |
writeInt(int x)
Write the next attribute to the stream as a Java int.
|
void |
writeInterval(Interval x)
Write the next attribute to the stream as an Informix Interval
|
void |
writeLong(long l)
Writes the long value from the collection to the server.
|
void |
writeLongBigint(long l,
int type)
Writes the long value from the collection to the server.
|
void |
writeNClob(java.sql.NClob x) |
void |
writeNString(java.lang.String x) |
void |
writeObject(java.lang.Object x)
This is an Informix extension to SQLOutput which allows
java.util.Collection, IntervalDF and IntervalYM objects to
be written.
|
void |
writeObject(java.sql.SQLData x)
Write to the stream the data contained in the given object.
|
void |
writeRef(java.sql.Ref x)
Write a REF(<structured-type>) to the stream.
|
void |
writeRowId(java.sql.RowId x) |
void |
writeShort(short s)
Writes the short value from the collection to the server.
|
void |
writeSQLXML(java.sql.SQLXML x) |
void |
writeString(java.lang.String x)
Write the next attribute to the stream as a Java String.
|
void |
writeStruct(java.sql.Struct s)
Write a structured-type to the stream.
|
void |
writeTime(java.sql.Time t)
Writes the time from the collection to the server.
|
void |
writeTimestamp(java.sql.Timestamp ts)
Writes the timestamp from the collection to the server.
|
void |
writeURL(java.net.URL x) |
protected IfxConnection conn
protected Trace trace
public void writeInt(int x)
throws java.sql.SQLException
writeInt in interface java.sql.SQLOutputx - the value to pass to the database.java.sql.SQLExceptionpublic void writeString(java.lang.String x)
throws java.sql.SQLException
writeString in interface java.sql.SQLOutputx - the value to pass to the database.java.sql.SQLExceptionpublic void writeObject(java.sql.SQLData x)
throws java.sql.SQLException
writeObject in interface java.sql.SQLOutputx - the object representing data of an SQL structured or
distinct typejava.sql.SQLExceptionpublic void writeObject(java.lang.Object x)
throws java.sql.SQLException
writeObject in interface IfmxComplexSQLOutputx - Object to be writtenjava.sql.SQLExceptionpublic void writeStruct(java.sql.Struct s)
throws java.sql.SQLException
writeStruct in interface java.sql.SQLOutputs - an object representing data of a Structured Typejava.sql.SQLExceptionpublic void writeArray(java.sql.Array arr)
throws java.sql.SQLException
writeArray in interface java.sql.SQLOutputarr - an object representing an SQL arrayjava.sql.SQLExceptionpublic void writeBigDecimal(java.math.BigDecimal bd)
throws java.sql.SQLException
writeBigDecimal in interface java.sql.SQLOutputbd - - The BigDecimal value to writejava.sql.SQLExceptionpublic void writeBinaryStream(java.io.InputStream is)
throws java.sql.SQLException
writeBinaryStream in interface java.sql.SQLOutputis - - The InputStream to writejava.sql.SQLExceptionpublic void writeBlob(java.sql.Blob blob)
throws java.sql.SQLException
writeBlob in interface java.sql.SQLOutputblob - - The Blob object to be writtenjava.sql.SQLExceptionpublic void writeBoolean(boolean bool)
throws java.sql.SQLException
writeBoolean in interface java.sql.SQLOutputbool - - The boolean value to be writtenjava.sql.SQLExceptionpublic void writeByte(byte b)
throws java.sql.SQLException
writeByte in interface java.sql.SQLOutputb - - The byte value to be writtenjava.sql.SQLExceptionpublic void writeClob(java.sql.Clob clob)
throws java.sql.SQLException
writeClob in interface java.sql.SQLOutputclob - - The Clob object to be writtenjava.sql.SQLExceptionpublic void writeDate(java.sql.Date d)
throws java.sql.SQLException
writeDate in interface java.sql.SQLOutputd - - The Date object to be writtenjava.sql.SQLExceptionpublic void writeDoubleNull()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeDouble(double d)
throws java.sql.SQLException
writeDouble in interface java.sql.SQLOutputd - - The double value to be writtenjava.sql.SQLExceptionpublic void writeFloat(float f)
throws java.sql.SQLException
writeFloat in interface java.sql.SQLOutputf - - The float value to be writtenjava.sql.SQLExceptionpublic void writeLong(long l)
throws java.sql.SQLException
writeLong in interface java.sql.SQLOutputl - - The long value to be writtenjava.sql.SQLExceptionpublic void writeShort(short s)
throws java.sql.SQLException
writeShort in interface java.sql.SQLOutputs - - The short value to be writtenjava.sql.SQLExceptionpublic void writeTime(java.sql.Time t)
throws java.sql.SQLException
writeTime in interface java.sql.SQLOutputt - - The Time object to be writtenjava.sql.SQLExceptionpublic void writeTimestamp(java.sql.Timestamp ts)
throws java.sql.SQLException
writeTimestamp in interface java.sql.SQLOutputts - - The Timestamp object to be writtenjava.sql.SQLExceptionpublic void writeInterval(Interval x) throws java.sql.SQLException
writeInterval in interface IfmxComplexSQLOutputx - the value to pass to the databasejava.sql.SQLExceptionInterval,
IntervalYM,
IntervalDFprotected java.lang.String getExtendedName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static int getUDToffset(int dataStart,
Trace trace)
public void writeURL(java.net.URL x)
throws java.sql.SQLException
writeURL in interface java.sql.SQLOutputjava.sql.SQLExceptionpublic void writeLongBigint(long l,
int type)
throws java.sql.SQLException
l - - The long value to be writtenjava.sql.SQLExceptionpublic void writeNClob(java.sql.NClob x)
throws java.sql.SQLException
writeNClob in interface java.sql.SQLOutputjava.sql.SQLExceptionpublic void writeNString(java.lang.String x)
throws java.sql.SQLException
writeNString in interface java.sql.SQLOutputjava.sql.SQLExceptionpublic void writeRowId(java.sql.RowId x)
throws java.sql.SQLException
writeRowId in interface java.sql.SQLOutputjava.sql.SQLExceptionpublic void writeSQLXML(java.sql.SQLXML x)
throws java.sql.SQLException
writeSQLXML in interface java.sql.SQLOutputjava.sql.SQLExceptionpublic byte[] toByteArray()
public void writeBytes(byte[] x)
throws java.sql.SQLException
writeBytes in interface java.sql.SQLOutputx - the value to pass to the database.java.sql.SQLExceptionpublic void writeBytes(byte[] x,
int len)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeCharacterStream(java.io.Reader x)
throws java.sql.SQLException
writeCharacterStream in interface java.sql.SQLOutputx - the value to pass to the database.java.sql.SQLExceptionpublic void writeAsciiStream(java.io.InputStream x)
throws java.sql.SQLException
writeAsciiStream in interface java.sql.SQLOutputx - the value to pass to the database.java.sql.SQLExceptionpublic void writeRef(java.sql.Ref x)
throws java.sql.SQLException
writeRef in interface java.sql.SQLOutputx - an object representing data of an SQL REF Typejava.sql.SQLException