|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.lob.AbstractClob
com.amazon.carbonado.lob.BlobClob
public class BlobClob
A Clob implementation which is backed by a Blob. Data is stored in the Blob using UTF-16BE encoding.
| Constructor Summary | |
|---|---|
BlobClob(Blob blob)
|
|
| Method Summary | |
|---|---|
long |
getLength()
Returns the length of this Clob, in characters. |
Object |
getLocator()
Returns an object which identifies the Lob data, which may be null if not supported. |
protected Blob |
getWrappedBlob()
|
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. |
| Methods inherited from class com.amazon.carbonado.lob.AbstractClob |
|---|
asString, equals, hashCode, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlobClob(Blob blob)
blob - blob to wrap| Method Detail |
|---|
public Reader openReader()
throws FetchException
Clob
FetchException
public Reader openReader(long pos)
throws FetchException
Clob
pos - desired zero-based position to read from
FetchException
public Reader openReader(long pos,
int bufferSize)
throws FetchException
Clob
pos - desired zero-based position to read frombufferSize - suggest that the reader buffer be at least this large (in characters)
FetchException
public long getLength()
throws FetchException
Clob
FetchException
public Writer openWriter()
throws PersistException
Clob
PersistException
public Writer openWriter(long pos)
throws PersistException
Clob
pos - desired zero-based position to write to
PersistException
public Writer openWriter(long pos,
int bufferSize)
throws PersistException
Clob
pos - desired zero-based position to write tobufferSize - suggest that the writer buffer be at least this large (in characters)
PersistException
public void setLength(long length)
throws PersistException
Clob
length - new length to set to
PersistDeniedException - if Clob is read-only
PersistExceptionpublic Object getLocator()
Lob
protected Blob getWrappedBlob()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||