|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.addon.jpacontainer.metadata.PropertyMetadata
com.vaadin.addon.jpacontainer.metadata.PersistentPropertyMetadata
public class PersistentPropertyMetadata
An extended version of PropertyMetadata that provides additional
information about persistent properties.
| Nested Class Summary | |
|---|---|
static class |
PersistentPropertyMetadata.AccessType
Enumeration defining the property access types. |
| Field Summary | |
|---|---|
protected Class<?> |
fieldDeclaringClass
|
protected String |
fieldName
|
| Fields inherited from class com.vaadin.addon.jpacontainer.metadata.PropertyMetadata |
|---|
getterDeclaringClass, getterName, setterDeclaringClass, setterName |
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
PersistentPropertyMetadata.AccessType |
getAccessType()
The way the property value is accessed (as a JavaBean property or as a field). |
|
|
getAnnotation(Class<T> annotationClass)
Gets the annotation of the specified annotation class, if available. |
|
Annotation[] |
getAnnotations()
The annotations of the property, if any. |
|
PropertyKind |
getPropertyKind()
The kind of the property. |
|
ClassMetadata<?> |
getTypeMetadata()
The metadata of the property type, if it is embedded or a reference. |
|
int |
hashCode()
|
|
boolean |
isWritable()
Persistent properties are always writable. |
|
Object |
readResolve()
|
|
| Methods inherited from class com.vaadin.addon.jpacontainer.metadata.PropertyMetadata |
|---|
getName, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String fieldName
protected final Class<?> fieldDeclaringClass
| Method Detail |
|---|
public ClassMetadata<?> getTypeMetadata()
getPropertyKind()public PropertyKind getPropertyKind()
getPropertyKind in class PropertyMetadatapublic PersistentPropertyMetadata.AccessType getAccessType()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
PropertyMetadata
getAnnotation in class PropertyMetadataannotationClass - the annotation class.
PropertyMetadata.getAnnotations(),
Class.getAnnotation(java.lang.Class)public Annotation[] getAnnotations()
PropertyMetadata
getAnnotations in class PropertyMetadataPropertyMetadata.getAnnotation(java.lang.Class)
public Object readResolve()
throws ObjectStreamException
readResolve in class PropertyMetadataObjectStreamExceptionpublic boolean isWritable()
Returns whether the property is writable or not. Transient properties (i.e. JavaBean properties) are only writable if they have a setter method..
isWritable in class PropertyMetadatapublic boolean equals(Object obj)
equals in class PropertyMetadatapublic int hashCode()
hashCode in class PropertyMetadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||