|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.jdbc.MMClob
public class MMClob
This object holds a chunk of char data and implements the JDBC Clob interface. This object presents a streaming interface and provides a way to access partial of the Clob data. Connectors can use this object when dealing with large objects.
| Constructor Summary | |
|---|---|
MMClob(StreamingLobChunckProducer.Factory lobChunkFactory,
ClobType clob)
|
|
| Method Summary | |
|---|---|
void |
free()
|
java.io.InputStream |
getAsciiStream()
Gets the CLOB value designated by this Clob
object as a stream of Ascii bytes. |
java.io.Reader |
getCharacterStream()
Gets the CLOB value designated by this Clob
object as a Unicode stream. |
java.io.Reader |
getCharacterStream(long arg0,
long arg1)
|
java.lang.String |
getSubString(long pos,
int length)
Returns a copy of the specified substring in the CLOB value
designated by this Clob object. |
long |
length()
Returns the number of characters in the CLOB value
designated by this Clob object. |
static java.sql.Clob |
newInstance(StreamingLobChunckProducer.Factory lobChunckFactory,
ClobType clob)
|
long |
position(java.sql.Clob searchstr,
long start)
Determines the character position at which the specified Clob object searchstr appears in this
Clob object. |
long |
position(java.lang.String searchstr,
long start)
Determines the character position at which the specified substring searchstr appears in the SQL CLOB value
represented by this Clob object. |
java.io.OutputStream |
setAsciiStream(long arg0)
|
java.io.Writer |
setCharacterStream(long arg0)
|
int |
setString(long arg0,
java.lang.String arg1)
|
int |
setString(long arg0,
java.lang.String arg1,
int arg2,
int arg3)
|
void |
truncate(long arg0)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MMClob(StreamingLobChunckProducer.Factory lobChunkFactory,
ClobType clob)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public static java.sql.Clob newInstance(StreamingLobChunckProducer.Factory lobChunckFactory,
ClobType clob)
throws java.sql.SQLException
java.sql.SQLException
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
CLOB value designated by this Clob
object as a stream of Ascii bytes.
getAsciiStream in interface java.sql.ClobCLOB data
java.sql.SQLException - if there is an error accessing the
CLOB value
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
CLOB value designated by this Clob
object as a Unicode stream.
getCharacterStream in interface java.sql.ClobCLOB data
java.sql.SQLException - if there is an error accessing the
CLOB value
public java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
CLOB value
designated by this Clob object.
The substring begins at position
pos and has up to length consecutive
characters.
getSubString in interface java.sql.Clobpos - the first character of the substring to be extracted.
The first character is at position 1.length - the number of consecutive characters to be copied
String that is the specified substring in
the CLOB value designated by this Clob object
java.sql.SQLException - if there is an error accessing the CLOB
public long length()
throws java.sql.SQLException
CLOB value
designated by this Clob object.
length in interface java.sql.ClobCLOB in characters
java.sql.SQLException
public long position(java.sql.Clob searchstr,
long start)
throws java.sql.SQLException
Clob object searchstr appears in this
Clob object. The search begins at position
start.
position in interface java.sql.Clobsearchstr - the Clob object for which to searchstart - the position at which to begin searching; the first
position is 1
Clob object appears,
else -1; the first position is 1
java.sql.SQLException
public long position(java.lang.String searchstr,
long start)
throws java.sql.SQLException
searchstr appears in the SQL CLOB value
represented by this Clob object. The search
begins at position start.
position in interface java.sql.Clobsearchstr - the substring for which to searchstart - the position at which to begin searching; the first position
is 1
java.sql.SQLException - if there is an error accessing the
CLOB value
public void free()
throws java.sql.SQLException
free in interface java.sql.Clobjava.sql.SQLException
public java.io.Reader getCharacterStream(long arg0,
long arg1)
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLException
public java.io.OutputStream setAsciiStream(long arg0)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLException
public java.io.Writer setCharacterStream(long arg0)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLException
public int setString(long arg0,
java.lang.String arg1)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLException
public int setString(long arg0,
java.lang.String arg1,
int arg2,
int arg3)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLException
public void truncate(long arg0)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||