|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sourceforge.jtds.jdbc.ClobImpl
An in-memory, disk or database representation of character data.
Implementation note:
| Inner Class Summary | |
(package private) class |
ClobImpl.ClobFileWriter
Class to manage Clob file writes. |
(package private) class |
ClobImpl.ClobWriter
Class to manage any Clob write. |
| Field Summary | |
private java.lang.String |
_clob
|
private java.io.File |
_clobFile
|
private ConnectionJDBC2 |
_connection
|
private JtdsReader |
_jtdsReader
|
private static java.lang.String |
EMPTY_CLOB
|
| Constructor Summary | |
(package private) |
ClobImpl(java.lang.Object callerReference)
Constructs a new Clob instance. |
(package private) |
ClobImpl(java.lang.Object callerReference,
ResponseStream in,
boolean ntext,
boolean readTextMode,
CharsetInfo charsetInfo)
Constructs a new Clob instance. |
(package private) |
ClobImpl(java.lang.Object callerReference,
java.lang.String clob)
Constructs a new Clob instance. |
| Method Summary | |
protected void |
finalize()
|
java.io.InputStream |
getAsciiStream()
Returns a new ascii stream for the CLOB data. |
java.io.Reader |
getCharacterStream()
Returns a new reader for the CLOB data. |
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
Returns the length of the value. |
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)
|
int |
setString(long pos,
java.lang.String str)
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
|
private void |
skip(java.io.Reader reader,
long skip)
|
void |
truncate(long len)
Truncates the value to the length specified. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final java.lang.String EMPTY_CLOB
private final ConnectionJDBC2 _connection
private java.lang.String _clob
private java.io.File _clobFile
private JtdsReader _jtdsReader
| Constructor Detail |
ClobImpl(java.lang.Object callerReference)
callerReference - an object reference to the caller of this method;
must be a Connection, Statement or
ResultSet
ClobImpl(java.lang.Object callerReference,
java.lang.String clob)
callerReference - an object reference to the caller of this method;
must be a Connection, Statement or
ResultSetclob - the clob object to encapsulate
ClobImpl(java.lang.Object callerReference,
ResponseStream in,
boolean ntext,
boolean readTextMode,
CharsetInfo charsetInfo)
throws java.io.IOException
callerReference - an object reference to the caller of this method;
must be a Connection, Statement or
ResultSetin - the clob object to encapsulatentext - true if the data type is NTEXT (i.e. Unicode)readTextMode - true if READTEXT should be used to
retrieve the value false if the value
is directly available from incharsetInfo - the character set to be used for reading if the value
is not Unicode encoded (i.e. TEXT)| Method Detail |
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
getAsciiStream in interface java.sql.Clob
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clob
public java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
getSubString in interface java.sql.Clob
public long length()
throws java.sql.SQLException
length in interface java.sql.Clob
public long position(java.lang.String searchStr,
long start)
throws java.sql.SQLException
position in interface java.sql.Clob
public long position(java.sql.Clob searchStr,
long start)
throws java.sql.SQLException
position in interface java.sql.Clob
public java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
public java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
public int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
public int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
public void truncate(long len)
throws java.sql.SQLException
len - the length to truncate the value to
private void skip(java.io.Reader reader,
long skip)
throws java.sql.SQLException
protected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||