|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Clob
Provides access to CLOBs, which are Character Large OBjects. Consider
accessing Clobs within a transaction scope, to prevent unexpected updates.
Blob| Method Summary | |
|---|---|
String |
asString()
Convenience method to capture all the Clob data as a single String. |
long |
getLength()
Returns the length of this Clob, in characters. |
Reader |
openReader()
Returns a Reader for reading Clob data, positioned at the start. |
Reader |
openReader(long pos)
Returns a Reader for reading Clob data. |
Reader |
openReader(long pos,
int bufferSize)
Returns a Reader for reading Clob data. |
Writer |
openWriter()
Returns a Writer for writing Clob data, positioned at the start. |
Writer |
openWriter(long pos)
Returns a Writer for writing Clob data. |
Writer |
openWriter(long pos,
int bufferSize)
Returns a Writer for writing Clob data. |
void |
setLength(long length)
Set the length of this Clob, in characters. |
void |
setValue(String value)
Convenience method to overwrite all Clob data with the value of a single String. |
| Methods inherited from interface com.amazon.carbonado.lob.Lob |
|---|
equals, getLocator |
| Method Detail |
|---|
Reader openReader()
throws FetchException
IllegalArgumentException - if position is negative
FetchException
Reader openReader(long pos)
throws FetchException
pos - desired zero-based position to read from
IllegalArgumentException - if position is negative
FetchException
Reader openReader(long pos,
int bufferSize)
throws FetchException
pos - desired zero-based position to read frombufferSize - suggest that the reader buffer be at least this large (in characters)
IllegalArgumentException - if position is negative
FetchException
long getLength()
throws FetchException
FetchException
String asString()
throws FetchException
IllegalArgumentException - if Clob length is greater than Integer.MAX_VALUE
OutOfMemoryError - if not enough memory to hold Clob as a single String
FetchException
Writer openWriter()
throws PersistException
IllegalArgumentException - if position is negative
PersistException
Writer openWriter(long pos)
throws PersistException
pos - desired zero-based position to write to
IllegalArgumentException - if position is negative
PersistException
Writer openWriter(long pos,
int bufferSize)
throws PersistException
pos - desired zero-based position to write tobufferSize - suggest that the writer buffer be at least this large (in characters)
IllegalArgumentException - if position is negative
PersistException
void setLength(long length)
throws PersistException
length - new length to set to
IllegalArgumentException - if length is negative
PersistDeniedException - if Clob is read-only
PersistException
void setValue(String value)
throws PersistException
value - Clob is overwritten with this value
IllegalArgumentException - if value is null
PersistException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||