Class DynamicProperty
- java.lang.Object
-
- org.hibernate.envers.configuration.internal.metadata.reader.DynamicProperty
-
- All Implemented Interfaces:
XAnnotatedElement,XMember,XProperty
public class DynamicProperty extends Object implements XProperty
This class pretends to be property but in fact it represents entry in the map (for dynamic component)- Author:
- Lukasz Zuchowski (author at zuchos dot com), Chris Cranford
-
-
Constructor Summary
Constructors Constructor Description DynamicProperty(PersistentPropertiesSource source, String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationType)Annotation[]getAnnotations()XClassgetClassOrElementClass()The type of this property's elements for arrays, the type of the property itself for everything else.Class<? extends Collection<?>>getCollectionClass()The collection class for collections, null for others.XClassgetDeclaringClass()Retrieve the XClass reference for the class which declares this member.XClassgetElementClass()This property's type for simple properties, the type of its elements for arrays and collections.XClassgetMapKey()The type of this map's key, or null for anything that is not a map.intgetModifiers()Same modifiers as java.lang.Member#getModifiers()StringgetName()XClassgetType()This property's XClass.Objectinvoke(Object target)Invoke the method with no parameters.Objectinvoke(Object target, Object... parameters)<T extends Annotation>
booleanisAnnotationPresent(Class<T> annotationType)booleanisArray()booleanisCollection()booleanisTypeResolved()voidsetAccessible(boolean accessible)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.annotations.common.reflection.XAnnotatedElement
equals
-
-
-
-
Constructor Detail
-
DynamicProperty
public DynamicProperty(PersistentPropertiesSource source, String propertyName)
-
-
Method Detail
-
getDeclaringClass
public XClass getDeclaringClass()
Description copied from interface:XMemberRetrieve the XClass reference for the class which declares this member.- Specified by:
getDeclaringClassin interfaceXMember- Returns:
- The XClass representing the declaring class of the underlying member
-
isCollection
public boolean isCollection()
- Specified by:
isCollectionin interfaceXMember
-
getCollectionClass
public Class<? extends Collection<?>> getCollectionClass()
Description copied from interface:XMemberThe collection class for collections, null for others.- Specified by:
getCollectionClassin interfaceXMember
-
getElementClass
public XClass getElementClass()
Description copied from interface:XMemberThis property's type for simple properties, the type of its elements for arrays and collections.- Specified by:
getElementClassin interfaceXMember
-
getClassOrElementClass
public XClass getClassOrElementClass()
Description copied from interface:XMemberThe type of this property's elements for arrays, the type of the property itself for everything else.- Specified by:
getClassOrElementClassin interfaceXMember
-
getMapKey
public XClass getMapKey()
Description copied from interface:XMemberThe type of this map's key, or null for anything that is not a map.
-
getModifiers
public int getModifiers()
Description copied from interface:XMemberSame modifiers as java.lang.Member#getModifiers()- Specified by:
getModifiersin interfaceXMember
-
setAccessible
public void setAccessible(boolean accessible)
- Specified by:
setAccessiblein interfaceXMember
-
invoke
public Object invoke(Object target)
Description copied from interface:XMemberInvoke the method with no parameters. Same asXMember.invoke(Object, Object...).
-
isTypeResolved
public boolean isTypeResolved()
- Specified by:
isTypeResolvedin interfaceXMember
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotationin interfaceXAnnotatedElement
-
isAnnotationPresent
public <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
- Specified by:
isAnnotationPresentin interfaceXAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceXAnnotatedElement
-
-