public abstract class IfxObject
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IfxConnection |
conn |
protected int |
encodedLength |
protected int |
extendedID |
protected java.lang.String |
extendedName |
protected java.lang.String |
extendedOwner |
protected int |
ifxType |
protected boolean |
isNull |
protected int |
jdbcType |
protected int |
sourceType |
protected Trace |
trace |
protected java.util.Map<java.lang.String,java.lang.Class<?>> |
typeMap |
protected boolean |
used_in_update |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the instance states
|
void |
clearWarning()
Reset all warnings.
|
boolean |
equals(java.lang.Object other)
Find out whether two objects are equal.
|
void |
fromAsciiStream(java.io.InputStream fin,
int length) |
void |
fromAsciiStream(java.io.InputStream fin,
long length) |
void |
fromBinaryStream(java.io.InputStream fin,
int length) |
void |
fromBinaryStream(java.io.InputStream fin,
long length) |
void |
fromBlob(java.sql.Blob blob) |
void |
fromBoolean(boolean b) |
void |
fromBoolean(java.lang.Boolean b) |
void |
fromByte(byte b) |
void |
fromByte(java.lang.Byte B) |
void |
fromBytes(byte[] b) |
void |
fromCharacterStream(java.io.Reader reader,
int length) |
void |
fromCharacterStream(java.io.Reader reader,
long length) |
void |
fromClob(java.sql.Clob clob) |
void |
fromDate(java.sql.Date D) |
void |
fromDecimal(java.math.BigDecimal B) |
void |
fromDecimal(java.math.BigDecimal B,
int scale) |
void |
fromDouble(double d) |
void |
fromDouble(java.lang.Double D) |
void |
fromFloat(float f) |
void |
fromFloat(java.lang.Float F) |
void |
fromIfx(byte[] b) |
void |
fromIfx(byte[] b,
int offset,
int length) |
void |
fromIfx(byte[] b,
int offset,
int length,
short prec) |
void |
fromIfx(byte[] b,
int offset,
int length,
java.lang.String dbEnc) |
void |
fromIfx(byte[] b,
short prec) |
void |
fromIfx(byte[] b,
java.lang.String dbEnc) |
void |
fromInputStream(java.io.InputStream fin,
int length) |
void |
fromInputStream(java.io.InputStream fin,
long length) |
void |
fromInt(int i) |
void |
fromInt(java.lang.Integer I) |
void |
fromIntervalDF(IntervalDF I) |
void |
fromIntervalYM(IntervalYM I) |
void |
fromLong(long l) |
void |
fromLong(java.lang.Long L) |
void |
fromNClob(java.sql.NClob nclob) |
void |
fromObject(java.lang.Object obj)
Initialize IfxObject with the value in obj.
|
void |
fromObject(java.lang.Object obj,
int scale)
Same as above but for BigDecimal, we can have the additional
scale parameter.
|
void |
fromObject(java.lang.Object obj,
java.lang.String name)
Same as above but for Collections, we can have the additional
the collection type definition as a parameter.
|
void |
fromRowId(java.sql.RowId rowid) |
void |
fromShort(short s) |
void |
fromShort(java.lang.Short S) |
void |
fromSQLXML(java.sql.SQLXML sqlXML) |
void |
fromString(java.lang.String newval) |
void |
fromString(java.lang.String newval,
boolean trimSpaces) |
void |
fromTime(java.sql.Time T) |
void |
fromTimestamp(java.sql.Timestamp T) |
boolean |
get_used_in_update() |
short |
getEncodedLength()
Default method for getting encoded length.
|
java.sql.DataTruncation |
getWarning()
IfxXXX() class will set data truncation warning.
|
boolean |
isNull()
Finds out whether it is null.
|
void |
nullify()
Make the value null.
|
void |
set_used_in_update(boolean setval) |
void |
setConnection(IfxConnection conn)
GENERIC
|
void |
setExtendedTypeName(java.lang.String name)
Set the extended type name for this object.
|
void |
setIfxType(int ifxType)
Set Informix SQL type for this object
|
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map) |
java.io.InputStream |
toAsciiStream() |
java.io.InputStream |
toBinaryStream() |
java.sql.Blob |
toBlob() |
boolean |
toBoolean() |
byte |
toByte() |
byte[] |
toBytes() |
java.io.Reader |
toCharacterStream() |
java.sql.Clob |
toClob() |
java.sql.Date |
toDate() |
java.math.BigDecimal |
toDecimal() |
double |
toDouble() |
float |
toFloat() |
byte[] |
toIfx() |
IfxBSONObject |
toIfxBSONObject() |
byte[] |
toIfxTuple() |
java.io.InputStream |
toInputStream() |
int |
toInt() |
Interval |
toInterval() |
IntervalDF |
toIntervalDF() |
IntervalYM |
toIntervalYM() |
long |
toLong() |
java.sql.NClob |
toNClob() |
java.lang.Object |
toObject() |
java.lang.Object |
toObject(boolean fromComplexType) |
java.sql.RowId |
toRowId() |
short |
toShort() |
java.sql.SQLXML |
toSQLXML() |
java.lang.String |
toString()
Convert to string.
|
java.sql.Time |
toTime() |
java.sql.Timestamp |
toTimestamp() |
java.lang.String |
toUnloadString()
Convert to string format which is compatible with format generated by
SQL unload command.
|
void |
unnullify()
Mark the value non-null.
|
protected IfxConnection conn
protected boolean isNull
protected Trace trace
protected int ifxType
protected java.lang.String extendedName
protected java.lang.String extendedOwner
protected int extendedID
protected int encodedLength
protected int sourceType
protected java.util.Map<java.lang.String,java.lang.Class<?>> typeMap
protected boolean used_in_update
protected int jdbcType
public void fromObject(java.lang.Object obj)
throws java.sql.SQLException
obj - Convert the data value from obj to IfxObjectjava.sql.SQLExceptionpublic void fromObject(java.lang.Object obj,
int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromObject(java.lang.Object obj,
java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setConnection(IfxConnection conn) throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
public final boolean isNull()
public final void nullify()
public final void unnullify()
public void setIfxType(int ifxType)
public void setExtendedTypeName(java.lang.String name)
public void clear()
public short getEncodedLength()
public java.sql.DataTruncation getWarning()
public void clearWarning()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other object to compare withpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toUnloadString()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int toInt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigDecimal toDecimal()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte toByte()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] toBytes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean toBoolean()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Date toDate()
throws java.sql.SQLException
java.sql.SQLExceptionpublic float toFloat()
throws java.sql.SQLException
java.sql.SQLExceptionpublic long toLong()
throws java.sql.SQLException
java.sql.SQLExceptionpublic short toShort()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Time toTime()
throws java.sql.SQLException
java.sql.SQLExceptionpublic double toDouble()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Timestamp toTimestamp()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream toInputStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream toAsciiStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream toBinaryStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader toCharacterStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Blob toBlob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Clob toClob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] toIfx()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] toIfxTuple()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object toObject()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object toObject(boolean fromComplexType)
throws java.sql.SQLException
java.sql.SQLExceptionpublic Interval toInterval() throws java.sql.SQLException
java.sql.SQLExceptionpublic IntervalYM toIntervalYM() throws java.sql.SQLException
java.sql.SQLExceptionpublic IntervalDF toIntervalDF() throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b,
java.lang.String dbEnc)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b,
int offset,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b,
int offset,
int length,
java.lang.String dbEnc)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b,
short prec)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIfx(byte[] b,
int offset,
int length,
short prec)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromInt(int i)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromInt(java.lang.Integer I)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromString(java.lang.String newval)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromString(java.lang.String newval,
boolean trimSpaces)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromDecimal(java.math.BigDecimal B)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromDecimal(java.math.BigDecimal B,
int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromByte(byte b)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromByte(java.lang.Byte B)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBytes(byte[] b)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBoolean(boolean b)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBoolean(java.lang.Boolean b)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromDate(java.sql.Date D)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromFloat(float f)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromFloat(java.lang.Float F)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromLong(long l)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromLong(java.lang.Long L)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromShort(short s)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromShort(java.lang.Short S)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromTime(java.sql.Time T)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromDouble(double d)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromDouble(java.lang.Double D)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromTimestamp(java.sql.Timestamp T)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBinaryStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBinaryStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader reader,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIntervalYM(IntervalYM I) throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromIntervalDF(IntervalDF I) throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromClob(java.sql.Clob clob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBlob(java.sql.Blob blob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void set_used_in_update(boolean setval)
public final boolean get_used_in_update()
public IfxBSONObject toIfxBSONObject() throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromRowId(java.sql.RowId rowid)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromNClob(java.sql.NClob nclob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromSQLXML(java.sql.SQLXML sqlXML)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.RowId toRowId()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.NClob toNClob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML toSQLXML()
throws java.sql.SQLException
java.sql.SQLException