From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- apidocs/com/amazon/carbonado/lob/AbstractBlob.html | 523 +++++++++++++++++++++ 1 file changed, 523 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/lob/AbstractBlob.html (limited to 'apidocs/com/amazon/carbonado/lob/AbstractBlob.html') diff --git a/apidocs/com/amazon/carbonado/lob/AbstractBlob.html b/apidocs/com/amazon/carbonado/lob/AbstractBlob.html new file mode 100644 index 0000000..0764636 --- /dev/null +++ b/apidocs/com/amazon/carbonado/lob/AbstractBlob.html @@ -0,0 +1,523 @@ + + + + + + +AbstractBlob (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.lob
+

Class AbstractBlob

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Blob, Lob
    +
    +
    +
    Direct Known Subclasses:
    +
    ByteArrayBlob, FileBlob
    +
    +
    +
    +
    public abstract class AbstractBlob
    +extends java.lang.Object
    +implements Blob
    +
    AbstractBlob implements a small set of common Blob methods.
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      ModifierConstructor and Description
      protected AbstractBlob() 
      protected AbstractBlob(Repository repo) +
      Use of this constructor indicates that setValue should operate within a + transaction.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.StringasString() +
      Convenience method to capture all the Blob data as a single String, + assuming UTF-8 encoding.
      +
      java.lang.StringasString(java.nio.charset.Charset charset) +
      Convenience method to capture all the Blob data as a single String, + decoded against the given charset.
      +
      java.lang.StringasString(java.lang.String charsetName) +
      Convenience method to capture all the Blob data as a single String, + decoded against the given charset.
      +
      booleanequals(java.lang.Object obj) +
      Two Lobs are considered equal if the object instances are the same or if + they point to the same content.
      +
      inthashCode() 
      voidsetValue(java.lang.String value) +
      Convenience method to overwrite all Blob data with the value of a single + String, applying UTF-8 encoding.
      +
      voidsetValue(java.lang.String value, + java.nio.charset.Charset charset) +
      Convenience method to overwrite all Blob data with the value of a single + String, applying the given charset encoding.
      +
      voidsetValue(java.lang.String value, + java.lang.String charsetName) +
      Convenience method to overwrite all Blob data with the value of a single + String, applying the given charset encoding.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      + + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractBlob

        +
        protected AbstractBlob()
        +
      • +
      + + + +
        +
      • +

        AbstractBlob

        +
        protected AbstractBlob(Repository repo)
        +
        Use of this constructor indicates that setValue should operate within a + transaction. A Repository is passed in for entering the transaction.
        +
        Parameters:
        repo - optional repository to use for performing string conversion + within transactions
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        asString

        +
        public java.lang.String asString()
        +                          throws FetchException
        +
        Description copied from interface: Blob
        +
        Convenience method to capture all the Blob data as a single String, + assuming UTF-8 encoding. Call within a transaction scope to ensure the + data does not change while the String is being built.
        +
        +
        Specified by:
        +
        asString in interface Blob
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        asString

        +
        public java.lang.String asString(java.lang.String charsetName)
        +                          throws FetchException
        +
        Description copied from interface: Blob
        +
        Convenience method to capture all the Blob data as a single String, + decoded against the given charset. Call within a transaction scope to + ensure the data does not change while the String is being built.
        +
        +
        Specified by:
        +
        asString in interface Blob
        +
        Parameters:
        charsetName - name of character set to decode String
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        asString

        +
        public java.lang.String asString(java.nio.charset.Charset charset)
        +                          throws FetchException
        +
        Description copied from interface: Blob
        +
        Convenience method to capture all the Blob data as a single String, + decoded against the given charset. Call within a transaction scope to + ensure the data does not change while the String is being built.
        +
        +
        Specified by:
        +
        asString in interface Blob
        +
        Parameters:
        charset - character set to decode String
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue(java.lang.String value)
        +              throws PersistException
        +
        Description copied from interface: Blob
        +
        Convenience method to overwrite all Blob data with the value of a single + String, applying UTF-8 encoding. The Blob length may grow or shrink, to + match the encoded String value. Call within a transaction scope to + ensure the data and length does not change while the value is set.
        +
        +
        Specified by:
        +
        setValue in interface Blob
        +
        Parameters:
        value - Blob is overwritten with this value
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue(java.lang.String value,
        +            java.lang.String charsetName)
        +              throws PersistException
        +
        Description copied from interface: Blob
        +
        Convenience method to overwrite all Blob data with the value of a single + String, applying the given charset encoding. The Blob length may grow or + shrink, to match the encoded String value. Call within a transaction + scope to ensure the data and length does not change while the value is + set.
        +
        +
        Specified by:
        +
        setValue in interface Blob
        +
        Parameters:
        value - Blob is overwritten with this value
        charsetName - name of character set to encode String
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue(java.lang.String value,
        +            java.nio.charset.Charset charset)
        +              throws PersistException
        +
        Description copied from interface: Blob
        +
        Convenience method to overwrite all Blob data with the value of a single + String, applying the given charset encoding. The Blob length may grow or + shrink, to match the encoded String value. Call within a transaction + scope to ensure the data and length does not change while the value is + set.
        +
        +
        Specified by:
        +
        setValue in interface Blob
        +
        Parameters:
        value - Blob is overwritten with this value
        charset - character set to encode String
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        Description copied from interface: Lob
        +
        Two Lobs are considered equal if the object instances are the same or if + they point to the same content. Lob data is not compared, as that would + be expensive or it may result in a fetch exception.
        +
        +
        Specified by:
        +
        equals in interface Lob
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3