public class IfxComplexInput extends java.lang.Object implements IfmxComplexSQLInput
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected IfxConnection |
conn |
protected int |
currentPos |
protected boolean |
isNull |
protected int |
totalLength |
protected Trace |
trace |
protected int |
unreadLength |
| Modifier and Type | Method and Description |
|---|---|
protected int |
available() |
protected void |
checkLength(int len) |
protected int |
currentPosition() |
IfxUDTInfo |
getUDTInfo(int xid)
Get general information about opaque and distinct types
and detailed information for complex types.
|
IfxUDTInfo |
getUDTInfo(java.lang.String name,
java.lang.String owner)
Get general information about opaque and distinct types
and detailed information for complex types.
|
int |
length() |
java.sql.Array |
readArray()
readArray() - this is only called by the user's java object.
|
java.io.InputStream |
readAsciiStream()
Return the next attribute in the stream as a stream of ASCII characters.
|
java.math.BigDecimal |
readBigDecimal()
Read the next attribute as a Java.math.BigDecimal.
|
java.io.InputStream |
readBinaryStream()
Return the next attribute in the stream as a stream of uninterpreted
bytes.
|
java.sql.Blob |
readBlob()
Read a BLOB from the stream.
|
boolean |
readBoolean()
Read the next attribute as a Java boolean.
|
byte |
readByte()
Read the next attribute as a Java byte.
|
byte[] |
readBytes()
Read the next attribute in the stream as an array of bytes.
|
byte[] |
readBytes(int len)
Read the next attribute in the stream as an array of bytes.
|
java.io.Reader |
readCharacterStream()
Return the next attribute in the stream as a stream of Unicode characters.
|
java.sql.Clob |
readClob()
Read a Clob from the stream.
|
java.sql.Date |
readDate()
Read the next attribute as a java.sql.date.
|
double |
readDouble()
Read the next attribute as a Java double.
|
float |
readFloat()
Read the next attribute as a Java float.
|
int |
readInt()
Read the next attribute as a Java int.
|
Interval |
readInterval()
Reads the next attribute as an Informix Interval.
|
long |
readLong()
Read the next attribute as a Java long.
|
long |
readLongBigint()
Read the next attribute as a Java long.
|
java.sql.NClob |
readNClob() |
java.lang.String |
readNString() |
java.lang.Object |
readObject()
An Informix extension to SQLInput which allows java.util.Collection,
IntervalDF and IntervalYM objects to be read.
|
java.sql.Ref |
readRef()
Read a REF(<structured-type>) from the stream.
|
java.sql.RowId |
readRowId() |
short |
readShort()
Read the next attribute as a Java short.
|
java.sql.SQLXML |
readSQLXML() |
java.lang.String |
readString()
Read the next attribute as a Java String.
|
java.lang.String |
readString(java.util.Collection<java.lang.String> collObj)
Read the next attribute as a Java String.
|
java.sql.Time |
readTime()
Read the next attribute as a Java.sql.Time.
|
java.sql.Timestamp |
readTimestamp()
Read the next attribute as a Java.sql.Timestamp.
|
java.net.URL |
readURL() |
protected void |
reset() |
protected void |
skipBytes(int len) |
boolean |
wasNull() |
protected IfxConnection conn
protected boolean isNull
protected byte[] buf
protected int totalLength
protected int unreadLength
protected int currentPos
protected Trace trace
public java.sql.Blob readBlob()
throws java.sql.SQLException
readBlob in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.Clob readClob()
throws java.sql.SQLException
readClob in interface java.sql.SQLInputjava.sql.SQLExceptionpublic byte readByte()
throws java.sql.SQLException
readByte in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.Date readDate()
throws java.sql.SQLException
readDate in interface java.sql.SQLInputjava.sql.SQLExceptionpublic double readDouble()
throws java.sql.SQLException
readDouble in interface java.sql.SQLInputjava.sql.SQLExceptionpublic float readFloat()
throws java.sql.SQLException
readFloat in interface java.sql.SQLInputjava.sql.SQLExceptionpublic int readInt()
throws java.sql.SQLException
readInt in interface java.sql.SQLInputjava.sql.SQLExceptionpublic long readLong()
throws java.sql.SQLException
readLong in interface java.sql.SQLInputjava.sql.SQLExceptionpublic long readLongBigint()
throws java.sql.SQLException
java.sql.SQLExceptionpublic short readShort()
throws java.sql.SQLException
readShort in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.Time readTime()
throws java.sql.SQLException
readTime in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.Timestamp readTimestamp()
throws java.sql.SQLException
readTimestamp in interface java.sql.SQLInputjava.sql.SQLExceptionpublic Interval readInterval() throws java.sql.SQLException
IfmxComplexSQLInputReads the next attribute as an Informix Interval.
readInterval in interface IfmxComplexSQLInputjava.sql.SQLExceptionInterval,
IntervalYM,
IntervalDFpublic java.math.BigDecimal readBigDecimal()
throws java.sql.SQLException
readBigDecimal in interface java.sql.SQLInputjava.sql.SQLExceptionpublic boolean readBoolean()
throws java.sql.SQLException
readBoolean in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.lang.String readString()
throws java.sql.SQLException
readString in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.lang.Object readObject()
throws java.sql.SQLException
readObject in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.lang.String readString(java.util.Collection<java.lang.String> collObj)
throws java.sql.SQLException
collObj - - Collection Objectjava.sql.SQLExceptionpublic java.sql.Array readArray()
throws java.sql.SQLException
readArray in interface java.sql.SQLInputjava.sql.SQLExceptionpublic IfxUDTInfo getUDTInfo(int xid) throws java.sql.SQLException
getUDTInfo in interface IfmxComplexSQLInputxid - Is the extended id found in sysxtdtype system catalog.java.sql.SQLExceptionpublic IfxUDTInfo getUDTInfo(java.lang.String name, java.lang.String owner) throws java.sql.SQLException
getUDTInfo in interface IfmxComplexSQLInputname - The data type name.owner - The owner of the data type (can be null).java.sql.SQLExceptionpublic java.net.URL readURL()
throws java.sql.SQLException
readURL in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.NClob readNClob()
throws java.sql.SQLException
readNClob in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.lang.String readNString()
throws java.sql.SQLException
readNString in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.RowId readRowId()
throws java.sql.SQLException
readRowId in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.SQLXML readSQLXML()
throws java.sql.SQLException
readSQLXML in interface java.sql.SQLInputjava.sql.SQLExceptionprotected void skipBytes(int len)
throws java.sql.SQLException
java.sql.SQLExceptionprotected int currentPosition()
public int length()
protected int available()
protected void reset()
protected void checkLength(int len)
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] readBytes()
throws java.sql.SQLException
readBytes in interface java.sql.SQLInputjava.sql.SQLExceptionpublic byte[] readBytes(int len)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader readCharacterStream()
throws java.sql.SQLException
readCharacterStream in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.io.InputStream readAsciiStream()
throws java.sql.SQLException
readAsciiStream in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.io.InputStream readBinaryStream()
throws java.sql.SQLException
readBinaryStream in interface java.sql.SQLInputjava.sql.SQLExceptionpublic java.sql.Ref readRef()
throws java.sql.SQLException
readRef in interface java.sql.SQLInputjava.sql.SQLExceptionpublic boolean wasNull()
wasNull in interface java.sql.SQLInput