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 --- .../carbonado/synthetic/SyntheticBuilder.html | 413 +++++++++++++++++++++ 1 file changed, 413 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/synthetic/SyntheticBuilder.html (limited to 'apidocs/com/amazon/carbonado/synthetic/SyntheticBuilder.html') diff --git a/apidocs/com/amazon/carbonado/synthetic/SyntheticBuilder.html b/apidocs/com/amazon/carbonado/synthetic/SyntheticBuilder.html new file mode 100644 index 0000000..139651a --- /dev/null +++ b/apidocs/com/amazon/carbonado/synthetic/SyntheticBuilder.html @@ -0,0 +1,413 @@ + + + + + + +SyntheticBuilder (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.synthetic
+

Interface SyntheticBuilder

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    SyntheticStorableBuilder, SyntheticStorableReferenceBuilder
    +
    +
    +
    +
    public interface SyntheticBuilder
    +
    A synthetic builder provides a mechanism for creating a user storable from scratch. + The client creates the builder, decorates with properties and indexes on those + properties, then builds. + + If additional, ad hoc decoration is desired, the partially constructed classfile + can be retrieved and operated on directly via the ClassFileBuilder + returned by prepare().
    +
    Author:
    +
    Don Schneider, David Rosenstrauch
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getStorableClass

        +
        java.lang.Class<? extends Storable> getStorableClass()
        +                                                     throws java.lang.IllegalStateException
        +
        Returns:
        the generated class file for this builder. Note that + proper operation requires that prepare() already have been called + prior to calling this method.
        +
        Throws:
        +
        java.lang.IllegalStateException - if build has not yet been called.
        +
      • +
      + + + +
        +
      • +

        build

        +
        java.lang.Class<? extends Storable> build()
        +                                          throws SupportException
        +
        Convenience method to generate the class. + Build will always call prepare() and return the result of + generating the class from that classfile. If the caller does not + wish to regenerate the class from scratch, use getStorableClass() instead.
        +
        Throws:
        +
        SupportException
        +
      • +
      + + + +
        +
      • +

        addProperty

        +
        SyntheticProperty addProperty(java.lang.String name,
        +                            java.lang.Class type)
        +
        Add a property to the set managed by this builder.
        +
        Parameters:
        name - of the property
        type - of the property
        +
        Returns:
        property specification which can be further refined
        +
      • +
      + + + +
        +
      • +

        addProperty

        +
        SyntheticProperty addProperty(SyntheticProperty prop)
        +
        Add an externally defined synthetic property to the list
        +
        Parameters:
        prop - to add
        +
        Returns:
        original synthetic property as a convenience
        +
      • +
      + + + +
        +
      • +

        hasProperty

        +
        boolean hasProperty(java.lang.String name)
        +
        Check to see if a particular property has already been added to the list of + properties to generate
        +
        Parameters:
        name -
        +
      • +
      + + + +
        +
      • +

        addPrimaryKey

        +
        SyntheticKey addPrimaryKey()
        +
        Add a primary key to be built.
        +
        Returns:
        key to be decorated with property values defining the primary key
        +
      • +
      + + + +
        +
      • +

        addAlternateKey

        +
        SyntheticKey addAlternateKey()
        +
        Add an alternate key to be built.
        +
        Returns:
        key to be decorated with property values defining the alternate key
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        addIndex

        +
        SyntheticIndex addIndex()
        +
        Add an index to the set managed by this builder. All indexes added this + way will be in addition to the primary and alternate key indexes.
        +
        Returns:
        index to be decorated with property values defining the index
        +
      • +
      + + + +
        +
      • +

        isVersioned

        +
        boolean isVersioned()
        +
        Returns true if a property with the version attribute has been addded
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

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

+ + -- cgit v1.2.3