|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.lob.AbstractBlob
public abstract class AbstractBlob
AbstractBlob implements a small set of common Blob methods.
| Constructor Summary | |
|---|---|
protected |
AbstractBlob()
|
protected |
AbstractBlob(Repository repo)
Use of this constructor indicates that setValue should operate within a transaction. |
| Method Summary | |
|---|---|
String |
asString()
Convenience method to capture all the Blob data as a single String, assuming UTF-8 encoding. |
String |
asString(Charset charset)
Convenience method to capture all the Blob data as a single String, decoded against the given charset. |
String |
asString(String charsetName)
Convenience method to capture all the Blob data as a single String, decoded against the given charset. |
boolean |
equals(Object obj)
Two Lobs are considered equal if the object instances are the same or if they point to the same content. |
int |
hashCode()
|
void |
setValue(String value)
Convenience method to overwrite all Blob data with the value of a single String, applying UTF-8 encoding. |
void |
setValue(String value,
Charset charset)
Convenience method to overwrite all Blob data with the value of a single String, applying the given charset encoding. |
void |
setValue(String value,
String charsetName)
Convenience method to overwrite all Blob data with the value of a single String, applying the given charset encoding. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.amazon.carbonado.lob.Blob |
|---|
getLength, openInputStream, openInputStream, openInputStream, openOutputStream, openOutputStream, openOutputStream, setLength |
| Methods inherited from interface com.amazon.carbonado.lob.Lob |
|---|
getLocator |
| Constructor Detail |
|---|
protected AbstractBlob()
protected AbstractBlob(Repository repo)
repo - optional repository to use for performing string conversion
within transactions| Method Detail |
|---|
public String asString()
throws FetchException
Blob
asString in interface BlobFetchException
public String asString(String charsetName)
throws FetchException
Blob
asString in interface BlobcharsetName - name of character set to decode String
FetchException
public String asString(Charset charset)
throws FetchException
Blob
asString in interface Blobcharset - character set to decode String
FetchException
public void setValue(String value)
throws PersistException
Blob
setValue in interface Blobvalue - Blob is overwritten with this value
PersistException
public void setValue(String value,
String charsetName)
throws PersistException
Blob
setValue in interface Blobvalue - Blob is overwritten with this valuecharsetName - name of character set to encode String
PersistException
public void setValue(String value,
Charset charset)
throws PersistException
Blob
setValue in interface Blobvalue - Blob is overwritten with this valuecharset - character set to encode String
PersistExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
Lob
equals in interface Lobequals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||