|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.types.ClobType
public final class ClobType
This is wrapper on top of a "clob" object, which implements the "java.sql.Clob" interface. This class also implements the Streamable interface
Field Summary |
---|
Fields inherited from interface com.metamatrix.common.types.Streamable |
---|
FORCE_STREAMING, STREAMING_BATCH_SIZE_IN_BYTES |
Constructor Summary | |
---|---|
ClobType(java.sql.Clob clob)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
void |
free()
|
java.io.InputStream |
getAsciiStream()
|
java.io.Reader |
getCharacterStream()
|
java.io.Reader |
getCharacterStream(long pos,
long length)
|
java.lang.CharSequence |
getCharSequence()
|
java.lang.String |
getPersistenceStreamId()
Persitence Stream ID in the server |
java.lang.String |
getReferenceStreamId()
Reference Stream ID in the server |
java.sql.Clob |
getSourceClob()
|
static java.lang.String |
getString(java.sql.Clob clob)
Utility method to convert to String |
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Clob searchstr,
long start)
|
long |
position(java.lang.String searchstr,
long start)
|
java.io.OutputStream |
setAsciiStream(long pos)
|
java.io.Writer |
setCharacterStream(long pos)
|
void |
setPersistenceStreamId(java.lang.String id)
Persitence Stream ID in the server |
void |
setReferenceStreamId(java.lang.String id)
Reference Stream ID in the server |
int |
setString(long pos,
java.lang.String str)
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
|
java.lang.String |
toString()
|
void |
truncate(long len)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClobType(java.sql.Clob clob)
Method Detail |
---|
public java.sql.Clob getSourceClob()
public java.lang.String getReferenceStreamId()
Streamable
getReferenceStreamId
in interface Streamable
Streamable.getReferenceStreamId()
public void setReferenceStreamId(java.lang.String id)
Streamable
setReferenceStreamId
in interface Streamable
id
- this is buffer managers tuple source id.Streamable.setReferenceStreamId(java.lang.String)
public java.lang.String getPersistenceStreamId()
Streamable
getPersistenceStreamId
in interface Streamable
Streamable.getPersistenceStreamId()
public void setPersistenceStreamId(java.lang.String id)
Streamable
setPersistenceStreamId
in interface Streamable
id
- this is buffer managers tuple source id.Streamable.setPersistenceStreamId(java.lang.String)
public java.io.InputStream getAsciiStream() throws java.sql.SQLException
getAsciiStream
in interface java.sql.Clob
java.sql.SQLException
Clob.getAsciiStream()
public java.io.Reader getCharacterStream() throws java.sql.SQLException
getCharacterStream
in interface java.sql.Clob
java.sql.SQLException
Clob.getCharacterStream()
public java.lang.String getSubString(long pos, int length) throws java.sql.SQLException
getSubString
in interface java.sql.Clob
java.sql.SQLException
Clob.getSubString(long, int)
public long length() throws java.sql.SQLException
length
in interface java.sql.Clob
java.sql.SQLException
Clob.length()
public long position(java.sql.Clob searchstr, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
Clob.position(java.sql.Clob, long)
public long position(java.lang.String searchstr, long start) throws java.sql.SQLException
position
in interface java.sql.Clob
java.sql.SQLException
Clob.position(java.lang.String, long)
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
Clob.setAsciiStream(long)
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
java.sql.SQLException
Clob.setCharacterStream(long)
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
Clob.setString(long, java.lang.String, int, int)
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
Clob.setString(long, java.lang.String)
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
Clob.truncate(long)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static java.lang.String getString(java.sql.Clob clob) throws java.sql.SQLException, java.io.IOException
clob
-
java.sql.SQLException
java.io.IOException
public java.lang.CharSequence getCharSequence()
getCharSequence
in interface Sequencable
public void free() throws java.sql.SQLException
free
in interface java.sql.Clob
java.sql.SQLException
public java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException
getCharacterStream
in interface java.sql.Clob
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |