public interface Clob extends Lob
transaction scope, to prevent unexpected updates.Blob| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString()
Convenience method to capture all the Clob data as a single String.
|
long |
getLength()
Returns the length of this Clob, in characters.
|
java.io.Reader |
openReader()
Returns a Reader for reading Clob data, positioned at the start.
|
java.io.Reader |
openReader(long pos)
Returns a Reader for reading Clob data.
|
java.io.Reader |
openReader(long pos,
int bufferSize)
Returns a Reader for reading Clob data.
|
java.io.Writer |
openWriter()
Returns a Writer for writing Clob data, positioned at the start.
|
java.io.Writer |
openWriter(long pos)
Returns a Writer for writing Clob data.
|
java.io.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(java.lang.String value)
Convenience method to overwrite all Clob data with the value of a single
String.
|
equals, getLocatorjava.io.Reader openReader()
throws FetchException
java.lang.IllegalArgumentException - if position is negativeFetchExceptionjava.io.Reader openReader(long pos)
throws FetchException
pos - desired zero-based position to read fromjava.lang.IllegalArgumentException - if position is negativeFetchExceptionjava.io.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)java.lang.IllegalArgumentException - if position is negativeFetchExceptionlong getLength()
throws FetchException
FetchExceptionjava.lang.String asString()
throws FetchException
java.lang.IllegalArgumentException - if Clob length is greater than Integer.MAX_VALUEjava.lang.OutOfMemoryError - if not enough memory to hold Clob as a single StringFetchExceptionjava.io.Writer openWriter()
throws PersistException
java.lang.IllegalArgumentException - if position is negativePersistExceptionjava.io.Writer openWriter(long pos)
throws PersistException
pos - desired zero-based position to write tojava.lang.IllegalArgumentException - if position is negativePersistExceptionjava.io.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)java.lang.IllegalArgumentException - if position is negativePersistExceptionvoid setLength(long length)
throws PersistException
length - new length to set tojava.lang.IllegalArgumentException - if length is negativePersistDeniedException - if Clob is read-onlyPersistExceptionvoid setValue(java.lang.String value)
throws PersistException
value - Clob is overwritten with this valuejava.lang.IllegalArgumentException - if value is nullPersistExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.