|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IfmxUDTSQLOutput interface extends the SQLOutput interface. This interface is specifically for Informix user-defined types. It contains Informix extension methods for serializing fixed-length data.
Method Summary | |
int |
available()
Returns the number of valid bytes remaining in this output stream. |
boolean |
getAutoAlignment()
Returns true if auto alignment is enabled and false if auto alignment has been disabled. |
int |
getCurrentPosition()
Returns the current position in the output stream. |
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()
Gets the total length written to the data stream. |
void |
setAutoAlignment(boolean value)
Enable or disable automatic alignment. |
void |
setCurrentPosition(int position)
Resets the current position. |
void |
skipBytes(int len)
Skips over and discards len bytes of data from the output stream. |
void |
writeBytes(byte[] b,
int length)
Writes the next attribute to the stream as a Java byte array. |
void |
writeInterval(Interval intrvl)
Writes the next attribute to the stream as a Java Interval. |
void |
writeString(java.lang.String x,
int length)
Writes the next attribute to the stream as a Java String. |
Methods inherited from interface java.sql.SQLOutput |
writeArray, writeAsciiStream, writeBigDecimal, writeBinaryStream, writeBlob, writeBoolean, writeByte, writeBytes, writeCharacterStream, writeClob, writeDate, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeRef, writeShort, writeString, writeStruct, writeTime, writeTimestamp, writeURL |
Method Detail |
public void writeString(java.lang.String x, int length) throws java.sql.SQLException
writeString
in interface com.informix.jdbc.SQLUDTOutput
x
- The value to pass to the database.length
- The length of the specified field.
java.sql.SQLException
public void writeBytes(byte[] b, int length) throws java.sql.SQLException
writeBytes
in interface com.informix.jdbc.SQLUDTOutput
b
- The value to be passed to the database.length
- The length of the specified field.
java.sql.SQLException
public void writeInterval(Interval intrvl) throws java.sql.SQLException
writeInterval
in interface com.informix.jdbc.SQLUDTOutput
intrvl
- The interval to be passed to the database.
java.sql.SQLException
public int length()
Gets the total length written to the data stream.
public void setAutoAlignment(boolean value)
value
- = true then alignment should be handles automatically.
If value = false then no alignment is done. It's the user's respon-
sibility to call skipBytes(int) to handle alignment.public boolean getAutoAlignment()
public void skipBytes(int len) throws java.sql.SQLException
len
- Number of bytes to skip over and discard.
java.sql.SQLException
public int getCurrentPosition()
public void setCurrentPosition(int position) throws java.sql.SQLException
position
-
java.sql.SQLException
public int available()
public IfxUDTInfo getUDTInfo(int xid) throws java.sql.SQLException
xid
- Is the extended id found in sysxtdtype system catalog.
java.sql.SQLException
public IfxUDTInfo getUDTInfo(java.lang.String name, java.lang.String owner) throws java.sql.SQLException
name
- The data type name.owner
- The owner of the data type (can be null).
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |