|
Object Translator | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.informix.ormapper.OClob
External: This is the utility class for manipulating a CLOB (character large object) data type.
OBlob
Constructor Summary | |
OClob()
Constructs an empty CLOB object. |
|
OClob(java.sql.Clob _clob)
Constructs a CLOB object from an existing java.sql.Clob
object. |
Method Summary | |
java.io.InputStream |
getAsciiStream()
Retrieves the CLOB data as a stream. |
java.sql.Clob |
getClob()
Gets the java.sql.Clob object reference set in a setClob()
call or a constructor. |
long |
length()
Returns the number of bytes in the CLOB data designated by this CLOB object. |
void |
load(java.lang.String fileName)
Loads the CLOB data from a file. |
void |
setAsciiStream(java.io.InputStream _in,
long _length)
Sets the CLOB data as an input stream. |
void |
setClob(java.sql.Clob _clob)
Sets the CLOB data from an existing java.sql.Clob
object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public OClob()
public OClob(java.sql.Clob _clob)
java.sql.Clob
object._clob
- a java.sql.Clob object.Method Detail |
public java.io.InputStream getAsciiStream() throws DatabaseException
null
if no CLOB or
input stream has been set yet.public void setAsciiStream(java.io.InputStream _in, long _length)
_in
- the data input stream._length
- the length of the data input stream.public long length() throws DatabaseException
-1
if there is no
data stream or CLOB data.public void load(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- name of the file that contains CLOB data.public void setClob(java.sql.Clob _clob)
java.sql.Clob
object._clob
- a java.sql.Clob
object.public java.sql.Clob getClob()
java.sql.Clob
object reference set in a setClob()
call or a constructor.java.sql.Clob
object representing CLOB data.
|
Object Translator | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |