Class PersistentPropertyMetadata
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.metadata.PropertyMetadata
com.vaadin.featurepack.data.jpacontainer.metadata.PersistentPropertyMetadata
- All Implemented Interfaces:
Serializable
An extended version of
PropertyMetadata that provides additional
information about persistent properties.- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration defining the property access types. -
Field Summary
FieldsFields inherited from class com.vaadin.featurepack.data.jpacontainer.metadata.PropertyMetadata
getterDeclaringClass, getterName, setterDeclaringClass, setterName -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe way the property value is accessed (as a JavaBean property or as a field).<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Gets the annotation of the specified annotation class, if available.The annotations of the property, if any.The kind of the property.The metadata of the property type, if it is embedded or a reference.inthashCode()booleanPersistent properties are always writable.Methods inherited from class com.vaadin.featurepack.data.jpacontainer.metadata.PropertyMetadata
getName, getType
-
Field Details
-
fieldName
-
fieldDeclaringClass
-
-
Method Details
-
getTypeMetadata
The metadata of the property type, if it is embedded or a reference. Otherwise, this method returns null.- See Also:
-
getPropertyKind
The kind of the property.- Overrides:
getPropertyKindin classPropertyMetadata
-
getAccessType
The way the property value is accessed (as a JavaBean property or as a field). -
getAnnotation
Description copied from class:PropertyMetadataGets the annotation of the specified annotation class, if available.- Overrides:
getAnnotationin classPropertyMetadata- Parameters:
annotationClass- the annotation class.- Returns:
- the annotation, or null if not found.
- See Also:
-
getAnnotations
Description copied from class:PropertyMetadataThe annotations of the property, if any.- Overrides:
getAnnotationsin classPropertyMetadata- See Also:
-
readResolve
- Overrides:
readResolvein classPropertyMetadata- Throws:
ObjectStreamException
-
isWritable
public boolean isWritable()Persistent properties are always writable.Returns whether the property is writable or not. Transient properties (i.e. JavaBean properties) are only writable if they have a setter method..
- Overrides:
isWritablein classPropertyMetadata- Returns:
- true if the property is writable, false if it is not.
-
equals
- Overrides:
equalsin classPropertyMetadata
-
hashCode
public int hashCode()- Overrides:
hashCodein classPropertyMetadata
-