public interface StorableProperty<S extends Storable> extends java.io.Serializable, Appender
Storable type.StorableIntrospector| Modifier and Type | Method and Description |
|---|---|
StorablePropertyAdapter |
getAdapter()
Returns this property's adapter, or null if none.
|
java.lang.String |
getAlias(int index)
Returns a specific alias for this property.
|
int |
getAliasCount()
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.String |
getBeanName()
Returns the bean name of this property, which is derived from the read
and write method names.
|
StorablePropertyConstraint |
getConstraint(int index)
Returns a specific constraint for this property.
|
int |
getConstraintCount()
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.
|
int |
getJoinElementCount()
Returns the count of properties that participate in this property's
join.
|
java.lang.String |
getName()
Returns the name of this property, which is the same as the bean name
unless it has been
renamed. |
int |
getNumber()
Returns the zero-based numerical position of this property within its
enclosing type.
|
java.lang.reflect.Method |
getReadMethod()
Returns a no-arg method used to read the property value, or null if
reading is not allowed.
|
java.lang.String |
getReadMethodName()
Returns the name of the read method, even if no read method was actually
declared.
|
java.lang.String |
getSequenceName()
Returns the property's sequence name, or null if none.
|
java.lang.Class<?> |
getType()
Returns the primary type of this property.
|
java.lang.reflect.Method |
getWriteMethod()
Returns a one argument method used to write the property value, or null
if writing is not allowed.
|
java.lang.String |
getWriteMethodName()
Returns the name of the write method, even if no write method was
actually declared.
|
boolean |
isAlternateKeyMember()
Returns true if this property is a member of an alternate key.
|
boolean |
isAutomatic()
Returns true of this property is given an automatic value upon insert.
|
boolean |
isDerived()
Returns true if this property is derived.
|
boolean |
isIndependent()
Returns true if this property has been designated independent.
|
boolean |
isJoin()
Returns true if this property is joined in any way to another Storable.
|
boolean |
isNullable()
Returns true if this property can be null.
|
boolean |
isOneToOneJoin()
Returns true if this property is one-to-one joined to another Storable.
|
boolean |
isPartitionKeyMember()
Returns true if this property is a member of a partition key.
|
boolean |
isPrimaryKeyMember()
Returns true if this property is a member of a primary key.
|
boolean |
isQuery()
Returns true if this property is a query, which also implies that it is
a join property.
|
boolean |
isVersion()
Returns true if this property is the designated version number for the
Storable.
|
boolean |
shouldCopyDerived()
Returns true if this derived property should be included when copying a
storable.
|
java.lang.String |
toString() |
java.lang.String getName()
renamed.java.lang.String getBeanName()
java.lang.Class<?> getType()
java.lang.Class<?>[] getCovariantTypes()
int getNumber()
java.lang.Class<S> getEnclosingType()
java.lang.reflect.Method getReadMethod()
java.lang.String getReadMethodName()
java.lang.reflect.Method getWriteMethod()
java.lang.String getWriteMethodName()
boolean isNullable()
Nullableboolean isPrimaryKeyMember()
PrimaryKeyboolean isAlternateKeyMember()
AlternateKeysboolean isPartitionKeyMember()
PartitionKeyint getAliasCount()
Aliasjava.lang.String getAlias(int index)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionAliasjava.lang.String[] getAliases()
Aliasboolean isJoin()
Joinboolean isOneToOneJoin()
Joinjava.lang.Class<? extends Storable> getJoinedType()
int getJoinElementCount()
StorableProperty<S> getInternalJoinElement(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionStorableProperty<S>[] getInternalJoinElements()
StorableProperty<?> getExternalJoinElement(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionStorableProperty<?>[] getExternalJoinElements()
boolean isQuery()
Queryint getConstraintCount()
StorablePropertyConstraint getConstraint(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionStorablePropertyConstraint[] getConstraints()
StorablePropertyAdapter getAdapter()
java.lang.String getSequenceName()
Sequenceboolean isAutomatic()
Automaticboolean isVersion()
Versionboolean isIndependent()
Independentboolean isDerived()
DerivedChainedProperty<S>[] getDerivedFromProperties()
ChainedProperty<?>[] getDerivedToProperties()
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.
boolean shouldCopyDerived()
java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.