public class IfxSmBlob extends IfxObject
IfxBaseType| Modifier and Type | Field and Description |
|---|---|
protected static short |
BLOB_BUFFER_SIZE |
protected static short |
BLOB_TYPE_BYTES |
protected static short |
BLOB_TYPE_CHARSTREAM |
protected static short |
BLOB_TYPE_STREAM |
protected byte[] |
blobBuffer |
protected java.io.Reader |
BlobCharInputStream |
protected java.io.InputStream |
BlobInputStream |
protected short |
blobType |
protected java.lang.String |
columnName |
protected static short |
EACCES |
protected static short |
EBADF |
protected static short |
EEXIST |
protected static short |
EIO |
protected static short |
ENOENT |
protected static short |
ESPIPE |
protected static short |
FILE_CLOSE |
protected static short |
FILE_OPEN |
protected static short |
FILE_READ |
protected static short |
FILE_WRITE |
protected short |
IfxSmBlobType |
protected IfxUDTInput |
inputStream |
protected boolean |
isBlob_loaded |
protected static int |
LO_O_APPEND |
protected static int |
LO_O_BINARY |
protected static int |
LO_O_EXCL |
protected static int |
LO_O_RDONLY |
protected static int |
LO_O_RDWR |
protected static int |
LO_O_TEXT |
protected static int |
LO_O_TRUNC |
protected static int |
LO_O_WRONLY |
protected static short |
LO_READ |
protected static short |
LO_READWITHSEEK |
protected static short |
LO_WRITE |
protected boolean |
LOB_ELEMENT_COLL |
protected IfxLocator |
locator |
protected int |
loFd |
protected IfxUDTOutput |
outputStream |
protected static short |
R_W_BUFSIZE |
protected long |
sm_size |
protected java.lang.String |
tableName |
protected IfxTmpFile |
tempBlobFile |
protected static int |
UDT_FLAG_SIZE |
protected static int |
UDT_LENGTH_SIZE |
conn, encodedLength, extendedID, extendedName, extendedOwner, ifxType, isNull, jdbcType, sourceType, trace, typeMap, used_in_update| Constructor and Description |
|---|
IfxSmBlob()
IfxSmBlob() constructor with no argument
|
IfxSmBlob(java.sql.Blob blob)
IfxSmBlob() constructor will be called from setCLOB/BLOB() method
It takes one parameters.
|
IfxSmBlob(byte[] blobBuffer)
IfxSmBlob() constructor will be called from setBytes() method
param1 byte[] ;
throws SQLException.
|
IfxSmBlob(java.sql.Clob clob)
IfxSmBlob() constructor will be called from setCLOB/BLOB() method
It takes one parameters.
|
IfxSmBlob(IfxConnection conn,
IfxLocator loc)
IfxSmBlob(IfxLocator loc)
Constructor given an locator.
|
IfxSmBlob(java.io.InputStream fin,
int length)
IfxSmBlob() constructor will be called from setAsciiStream() method
It takes two parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the instance states
|
protected void |
finalize() |
void |
fromAsciiStream(java.io.InputStream fin,
int length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromAsciiStream(java.io.InputStream fin,
long length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromBinaryStream(java.io.InputStream fin,
int length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromBinaryStream(java.io.InputStream fin,
long length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromBlob(java.sql.Blob blob)
Accepts the blob object and make ready for sending to
it to server.
|
void |
fromBytes(byte[] blobBuffer)
Accepts the byte array data and make ready for sending to
it to server.
|
void |
fromCharacterStream(java.io.Reader reader,
int length)
Accepts the Reader and makes it ready for sending to the server.
|
void |
fromCharacterStream(java.io.Reader reader,
long length)
Accepts the Reader and makes it ready for sending to the server.
|
void |
fromClob(java.sql.Clob clob)
Accepts the clob object and make ready for sending to
it to server.
|
void |
fromIfx(byte[] b)
Set value of this data type to the given Informix network format
|
void |
fromIfx(byte[] b,
int offset,
int length)
Set value of this data type to the given Informix network format
|
protected void |
fromIfxFP(byte[] b) |
void |
fromInputStream(java.io.InputStream fin,
int length) |
void |
fromInputStream(java.io.InputStream fi,
long len)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromObject(java.lang.Object obj)
Accepts the Object and create a Blob/Clob Object.
|
void |
fromString(java.lang.String S)
Accepts the String data and make ready for sending to
it to server.
|
void |
setColumnName(java.lang.String cn) |
void |
setConnection(IfxConnection conn)
GENERIC
|
void |
setTableName(java.lang.String tn) |
java.io.InputStream |
toAsciiStream()
Return the fetched blob data as an Input Stream.
|
java.io.InputStream |
toBinaryStream()
Return the fetched blob data as an Input Stream.
|
java.sql.Blob |
toBlob()
Return the fetched blob data as a blob object
|
byte[] |
toBytes()
Return the fetched blob data as byte array.
|
java.io.Reader |
toCharacterStream() |
java.sql.Clob |
toClob()
Return the fetched blob data as a clob object
|
java.sql.Clob |
toClob(int mode)
Return the fetched blob data as a clob object
|
byte[] |
toIfx()
Convert value to Informix network format
|
byte[] |
toIfxTuple()
Convert value to Informix tuple format
|
java.lang.Object |
toObject()
Return the blob/clob Object as Object
|
java.lang.String |
toString()
Return the fetched blob data as String.
|
clearWarning, equals, fromBoolean, fromBoolean, fromByte, fromByte, fromDate, fromDecimal, fromDecimal, fromDouble, fromDouble, fromFloat, fromFloat, fromIfx, fromIfx, fromIfx, fromIfx, fromInt, fromInt, fromIntervalDF, fromIntervalYM, fromLong, fromLong, fromNClob, fromObject, fromObject, fromRowId, fromShort, fromShort, fromSQLXML, fromString, fromTime, fromTimestamp, get_used_in_update, getEncodedLength, getWarning, isNull, nullify, set_used_in_update, setExtendedTypeName, setIfxType, setTypeMap, toBoolean, toByte, toDate, toDecimal, toDouble, toFloat, toIfxBSONObject, toInputStream, toInt, toInterval, toIntervalDF, toIntervalYM, toLong, toNClob, toObject, toRowId, toShort, toSQLXML, toTime, toTimestamp, toUnloadString, unnullifyprotected static final short BLOB_BUFFER_SIZE
protected static final short LO_READ
protected static final short LO_READWITHSEEK
protected static final short LO_WRITE
protected static final short R_W_BUFSIZE
protected static final short FILE_OPEN
protected static final short FILE_CLOSE
protected static final short FILE_READ
protected static final short FILE_WRITE
protected static final int LO_O_EXCL
protected static final int LO_O_APPEND
protected static final int LO_O_TRUNC
protected static final int LO_O_RDWR
protected static final int LO_O_RDONLY
protected static final int LO_O_WRONLY
protected static final int LO_O_BINARY
protected static final int LO_O_TEXT
protected static final short EIO
protected static final short ENOENT
protected static final short EBADF
protected static final short EACCES
protected static final short EEXIST
protected static final short ESPIPE
protected static final short BLOB_TYPE_BYTES
protected static final short BLOB_TYPE_STREAM
protected static final short BLOB_TYPE_CHARSTREAM
protected boolean LOB_ELEMENT_COLL
protected IfxLocator locator
protected int loFd
protected long sm_size
protected java.io.InputStream BlobInputStream
protected java.io.Reader BlobCharInputStream
protected IfxTmpFile tempBlobFile
protected byte[] blobBuffer
protected short blobType
protected boolean isBlob_loaded
protected short IfxSmBlobType
protected java.lang.String tableName
protected java.lang.String columnName
protected static final int UDT_FLAG_SIZE
protected static final int UDT_LENGTH_SIZE
protected IfxUDTInput inputStream
protected IfxUDTOutput outputStream
public IfxSmBlob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSmBlob(IfxConnection conn, IfxLocator loc) throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSmBlob(java.io.InputStream fin,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSmBlob(byte[] blobBuffer)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSmBlob(java.sql.Blob blob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSmBlob(java.sql.Clob clob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTableName(java.lang.String tn)
public void setColumnName(java.lang.String cn)
public void fromIfx(byte[] b)
throws java.sql.SQLException
b - a byte array representation of this data type in Informix
network format.java.sql.SQLExceptionpublic void fromIfx(byte[] b,
int offset,
int length)
throws java.sql.SQLException
b - a byte array representation of this data type in Informix
network format.offset - into byte arraylength - data lengthjava.sql.SQLExceptionprotected void fromIfxFP(byte[] b)
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.io.InputStream toAsciiStream()
throws java.sql.SQLException
toAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromInputStream in class IfxObjectjava.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fi,
long len)
throws java.sql.SQLException
fromInputStream in class IfxObjectjava.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader reader,
int length)
throws java.sql.SQLException
fromCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader reader,
long length)
throws java.sql.SQLException
fromCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
fromAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic java.io.InputStream toBinaryStream()
throws java.sql.SQLException
toBinaryStream in class IfxObjectjava.sql.SQLExceptionpublic void fromBinaryStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromBinaryStream in class IfxObjectjava.sql.SQLExceptionpublic void fromBinaryStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
fromBinaryStream in class IfxObjectjava.sql.SQLExceptionpublic java.lang.String toString()
public void fromString(java.lang.String S)
throws java.sql.SQLException
fromString in class IfxObjectjava.sql.SQLExceptionpublic java.lang.Object toObject()
throws java.sql.SQLException
public void fromObject(java.lang.Object obj)
throws java.sql.SQLException
fromObject in class IfxObjectobj - Convert the data value from obj to IfxObjectjava.sql.SQLExceptionpublic byte[] toBytes()
throws java.sql.SQLException
public void fromBytes(byte[] blobBuffer)
throws java.sql.SQLException
public java.sql.Blob toBlob()
throws java.sql.SQLException
public java.sql.Clob toClob()
throws java.sql.SQLException
public java.sql.Clob toClob(int mode)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fromBlob(java.sql.Blob blob)
throws java.sql.SQLException
public void fromClob(java.sql.Clob clob)
throws java.sql.SQLException
public void clear()
IfxObjectprotected void finalize()
finalize in class java.lang.Objectpublic java.io.Reader toCharacterStream()
throws java.sql.SQLException
toCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic void setConnection(IfxConnection conn) throws java.sql.SQLException
IfxObjectsetConnection in class IfxObjectjava.sql.SQLException