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

Interface StorableProperty<S extends Storable>

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    Appender, java.io.Serializable
    +
    +
    +
    All Known Subinterfaces:
    +
    JDBCStorableProperty<S>
    +
    +
    +
    +
    public interface StorableProperty<S extends Storable>
    +extends java.io.Serializable, Appender
    +
    Contains all the metadata describing a property of a specific Storable type.
    +
    Author:
    +
    Brian S O'Neill, Tobias Holgers, Archit Shivaprakash
    +
    See Also:
    StorableIntrospector
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      StorablePropertyAdaptergetAdapter() +
      Returns this property's adapter, or null if none.
      +
      java.lang.StringgetAlias(int index) +
      Returns a specific alias for this property.
      +
      intgetAliasCount() +
      Returns the count of aliases for this property.
      +
      java.lang.String[]getAliases() +
      Returns a new array with all the alias names in it.
      +
      java.lang.StringgetBeanName() +
      Returns the bean name of this property, which is derived from the read + and write method names.
      +
      StorablePropertyConstraintgetConstraint(int index) +
      Returns a specific constraint for this property.
      +
      intgetConstraintCount() +
      Returns the count of constraints for this property.
      +
      StorablePropertyConstraint[]getConstraints() +
      Returns a new array with all the constraints in it.
      +
      java.lang.Class<?>[]getCovariantTypes() +
      Returns additional types of this property, all of which are assignable + by the primary type.
      +
      ChainedProperty<S>[]getDerivedFromProperties() +
      Returns a new array with all the derived-from properties, which is empty + if this is not a derived property.
      +
      ChainedProperty<?>[]getDerivedToProperties() +
      Returns a new array with all the properties which are derived from this + one.
      +
      java.lang.Class<S>getEnclosingType() +
      Returns the enclosing type of this property.
      +
      StorableProperty<?>getExternalJoinElement(int index) +
      Returns a specific property in the joined class that participates in the + join.
      +
      StorableProperty<?>[]getExternalJoinElements() +
      Returns a new array with all the external join elements in it.
      +
      StorableProperty<S>getInternalJoinElement(int index) +
      Returns a specific property in this property's class that participates + in the join.
      +
      StorableProperty<S>[]getInternalJoinElements() +
      Returns a new array with all the internal join elements in it.
      +
      java.lang.Class<? extends Storable>getJoinedType() +
      Returns the type of property this is joined to, or null if not joined.
      +
      intgetJoinElementCount() +
      Returns the count of properties that participate in this property's + join.
      +
      java.lang.StringgetName() +
      Returns the name of this property, which is the same as the bean name + unless it has been renamed.
      +
      intgetNumber() +
      Returns the zero-based numerical position of this property within its + enclosing type.
      +
      java.lang.reflect.MethodgetReadMethod() +
      Returns a no-arg method used to read the property value, or null if + reading is not allowed.
      +
      java.lang.StringgetReadMethodName() +
      Returns the name of the read method, even if no read method was actually + declared.
      +
      java.lang.StringgetSequenceName() +
      Returns the property's sequence name, or null if none.
      +
      java.lang.Class<?>getType() +
      Returns the primary type of this property.
      +
      java.lang.reflect.MethodgetWriteMethod() +
      Returns a one argument method used to write the property value, or null + if writing is not allowed.
      +
      java.lang.StringgetWriteMethodName() +
      Returns the name of the write method, even if no write method was + actually declared.
      +
      booleanisAlternateKeyMember() +
      Returns true if this property is a member of an alternate key.
      +
      booleanisAutomatic() +
      Returns true of this property is given an automatic value upon insert.
      +
      booleanisDerived() +
      Returns true if this property is derived.
      +
      booleanisIndependent() +
      Returns true if this property has been designated independent.
      +
      booleanisJoin() +
      Returns true if this property is joined in any way to another Storable.
      +
      booleanisNullable() +
      Returns true if this property can be null.
      +
      booleanisOneToOneJoin() +
      Returns true if this property is one-to-one joined to another Storable.
      +
      booleanisPartitionKeyMember() +
      Returns true if this property is a member of a partition key.
      +
      booleanisPrimaryKeyMember() +
      Returns true if this property is a member of a primary key.
      +
      booleanisQuery() +
      Returns true if this property is a query, which also implies that it is + a join property.
      +
      booleanisVersion() +
      Returns true if this property is the designated version number for the + Storable.
      +
      booleanshouldCopyDerived() +
      Returns true if this derived property should be included when copying a + storable.
      +
      java.lang.StringtoString() 
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        java.lang.String getName()
        +
        Returns the name of this property, which is the same as the bean name + unless it has been renamed.
        +
      • +
      + + + +
        +
      • +

        getBeanName

        +
        java.lang.String getBeanName()
        +
        Returns the bean name of this property, which is derived from the read + and write method names.
        +
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        getType

        +
        java.lang.Class<?> getType()
        +
        Returns the primary type of this property.
        +
      • +
      + + + +
        +
      • +

        getCovariantTypes

        +
        java.lang.Class<?>[] getCovariantTypes()
        +
        Returns additional types of this property, all of which are assignable + by the primary type.
        +
        Since:
        +
        1.2.1
        +
      • +
      + + + +
        +
      • +

        getNumber

        +
        int getNumber()
        +
        Returns the zero-based numerical position of this property within its + enclosing type.
        +
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        getEnclosingType

        +
        java.lang.Class<S> getEnclosingType()
        +
        Returns the enclosing type of this property.
        +
      • +
      + + + +
        +
      • +

        getReadMethod

        +
        java.lang.reflect.Method getReadMethod()
        +
        Returns a no-arg method used to read the property value, or null if + reading is not allowed. The return type matches the type of this + property.
        +
      • +
      + + + +
        +
      • +

        getReadMethodName

        +
        java.lang.String getReadMethodName()
        +
        Returns the name of the read method, even if no read method was actually + declared. That is, this method always returns a method name, but + getReadMethod may still return null.
        +
      • +
      + + + +
        +
      • +

        getWriteMethod

        +
        java.lang.reflect.Method getWriteMethod()
        +
        Returns a one argument method used to write the property value, or null + if writing is not allowed. The first argument is the value to set, which + is the type of this property.
        +
      • +
      + + + +
        +
      • +

        getWriteMethodName

        +
        java.lang.String getWriteMethodName()
        +
        Returns the name of the write method, even if no write method was + actually declared. That is, this method always returns a method name, + but getWriteMethod may still return null.
        +
      • +
      + + + +
        +
      • +

        isNullable

        +
        boolean isNullable()
        +
        Returns true if this property can be null.
        +
        See Also:
        Nullable
        +
      • +
      + + + +
        +
      • +

        isPrimaryKeyMember

        +
        boolean isPrimaryKeyMember()
        +
        Returns true if this property is a member of a primary key.
        +
        See Also:
        PrimaryKey
        +
      • +
      + + + +
        +
      • +

        isAlternateKeyMember

        +
        boolean isAlternateKeyMember()
        +
        Returns true if this property is a member of an alternate key.
        +
        See Also:
        AlternateKeys
        +
      • +
      + + + +
        +
      • +

        isPartitionKeyMember

        +
        boolean isPartitionKeyMember()
        +
        Returns true if this property is a member of a partition key.
        +
        See Also:
        PartitionKey
        +
      • +
      + + + +
        +
      • +

        getAliasCount

        +
        int getAliasCount()
        +
        Returns the count of aliases for this property.
        +
        See Also:
        Alias
        +
      • +
      + + + +
        +
      • +

        getAlias

        +
        java.lang.String getAlias(int index)
        +                          throws java.lang.IndexOutOfBoundsException
        +
        Returns a specific alias for this property.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException
        See Also:
        Alias
        +
      • +
      + + + +
        +
      • +

        getAliases

        +
        java.lang.String[] getAliases()
        +
        Returns a new array with all the alias names in it.
        +
        See Also:
        Alias
        +
      • +
      + + + +
        +
      • +

        isJoin

        +
        boolean isJoin()
        +
        Returns true if this property is joined in any way to another Storable.
        +
        See Also:
        Join
        +
      • +
      + + + +
        +
      • +

        isOneToOneJoin

        +
        boolean isOneToOneJoin()
        +
        Returns true if this property is one-to-one joined to another Storable.
        +
        Since:
        +
        1.2
        +
        See Also:
        Join
        +
      • +
      + + + +
        +
      • +

        getJoinedType

        +
        java.lang.Class<? extends Storable> getJoinedType()
        +
        Returns the type of property this is joined to, or null if not joined.
        +
      • +
      + + + +
        +
      • +

        getJoinElementCount

        +
        int getJoinElementCount()
        +
        Returns the count of properties that participate in this property's + join. If this property is not a join, then zero is returned.
        +
      • +
      + + + +
        +
      • +

        getInternalJoinElement

        +
        StorableProperty<S> getInternalJoinElement(int index)
        +                                                            throws java.lang.IndexOutOfBoundsException
        +
        Returns a specific property in this property's class that participates + in the join.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException
        +
      • +
      + + + +
        +
      • +

        getInternalJoinElements

        +
        StorableProperty<S>[] getInternalJoinElements()
        +
        Returns a new array with all the internal join elements in it.
        +
      • +
      + + + +
        +
      • +

        getExternalJoinElement

        +
        StorableProperty<?> getExternalJoinElement(int index)
        +                                           throws java.lang.IndexOutOfBoundsException
        +
        Returns a specific property in the joined class that participates in the + join.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException
        +
      • +
      + + + +
        +
      • +

        getExternalJoinElements

        +
        StorableProperty<?>[] getExternalJoinElements()
        +
        Returns a new array with all the external join elements in it.
        +
      • +
      + + + +
        +
      • +

        isQuery

        +
        boolean isQuery()
        +
        Returns true if this property is a query, which also implies that it is + a join property.
        +
        See Also:
        Query
        +
      • +
      + + + +
        +
      • +

        getConstraintCount

        +
        int getConstraintCount()
        +
        Returns the count of constraints for this property.
        +
      • +
      + + + +
        +
      • +

        getConstraint

        +
        StorablePropertyConstraint getConstraint(int index)
        +                                         throws java.lang.IndexOutOfBoundsException
        +
        Returns a specific constraint for this property.
        +
        Throws:
        +
        java.lang.IndexOutOfBoundsException
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getSequenceName

        +
        java.lang.String getSequenceName()
        +
        Returns the property's sequence name, or null if none.
        +
        See Also:
        Sequence
        +
      • +
      + + + +
        +
      • +

        isAutomatic

        +
        boolean isAutomatic()
        +
        Returns true of this property is given an automatic value upon insert.
        +
        Since:
        +
        1.2
        +
        See Also:
        Automatic
        +
      • +
      + + + +
        +
      • +

        isVersion

        +
        boolean isVersion()
        +
        Returns true if this property is the designated version number for the + Storable.
        +
        See Also:
        Version
        +
      • +
      + + + +
        +
      • +

        isIndependent

        +
        boolean isIndependent()
        +
        Returns true if this property has been designated independent.
        +
        See Also:
        Independent
        +
      • +
      + + + +
        +
      • +

        isDerived

        +
        boolean isDerived()
        +
        Returns true if this property is derived.
        +
        Since:
        +
        1.2
        +
        See Also:
        Derived
        +
      • +
      + + + +
        +
      • +

        getDerivedFromProperties

        +
        ChainedProperty<S>[] getDerivedFromProperties()
        +
        Returns a new array with all the derived-from properties, which is empty + if this is not a derived property. Otherwise, the set is the transitive + closure of all dependent properties. This set may include joins and + other derived properties.
        +
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        getDerivedToProperties

        +
        ChainedProperty<?>[] getDerivedToProperties()
        +
        Returns a new array with all the properties which are derived from this + one. The set is the transitive closure of all derived properties which + depend on this one. + +

        Each property in the set is represented as a chain, where the prime + property is the actual dependent property, and the tail is the path to + reach this property's enclosing type. If a derived property resides in + the same enclosing type as this one, the chain count is zero.

        +
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        shouldCopyDerived

        +
        boolean shouldCopyDerived()
        +
        Returns true if this derived property should be included when copying a + storable. Copying of a derived property uses the "get" and "set" methods + and requires the "set" method to be defined.
        +
        Since:
        +
        1.2
        +
      • +
      + + + +
        +
      • +

        toString

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

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

+ + -- cgit v1.2.3