|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorableProperty<S extends Storable>
Contains all the metadata describing a property of a specific Storable type.
StorableIntrospector| Method Summary | |
|---|---|
StorablePropertyAdapter |
getAdapter()
Returns this property's adapter, or null if none. |
String |
getAlias(int index)
Returns a specific alias for this property. |
int |
getAliasCount()
Returns the count of aliases for this property. |
String[] |
getAliases()
Returns a new array with all the alias names in it. |
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. |
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. |
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. |
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. |
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. |
Method |
getReadMethod()
Returns a no-arg method used to read the property value, or null if reading is not allowed. |
String |
getReadMethodName()
Returns the name of the read method, even if no read method was actually declared. |
String |
getSequenceName()
Returns the property's sequence name, or null if none. |
Class<?> |
getType()
Returns the primary type of this property. |
Method |
getWriteMethod()
Returns a one argument method used to write the property value, or null if writing is not allowed. |
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 |
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. |
String |
toString()
|
| Methods inherited from interface com.amazon.carbonado.util.Appender |
|---|
appendTo |
| Method Detail |
|---|
String getName()
renamed.
String getBeanName()
Class<?> getType()
Class<?>[] getCovariantTypes()
int getNumber()
Class<S> getEnclosingType()
Method getReadMethod()
String getReadMethodName()
Method getWriteMethod()
String getWriteMethodName()
boolean isNullable()
Nullableboolean isPrimaryKeyMember()
PrimaryKeyboolean isAlternateKeyMember()
AlternateKeysint getAliasCount()
Alias
String getAlias(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionAliasString[] getAliases()
Aliasboolean isJoin()
Joinboolean isOneToOneJoin()
JoinClass<? extends Storable> getJoinedType()
int getJoinElementCount()
StorableProperty<S> getInternalJoinElement(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionStorableProperty<S>[] getInternalJoinElements()
StorableProperty<?> getExternalJoinElement(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionStorableProperty<?>[] getExternalJoinElements()
boolean isQuery()
Queryint getConstraintCount()
StorablePropertyConstraint getConstraint(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionStorablePropertyConstraint[] getConstraints()
StorablePropertyAdapter getAdapter()
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()
String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||