Class DynamicProperty
java.lang.Object
org.hibernate.envers.configuration.internal.metadata.reader.DynamicProperty
- All Implemented Interfaces:
XAnnotatedElement,XMember,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 -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class<T> annotationType) The type of this property's elements for arrays, the type of the property itself for everything else.Class<? extends Collection<?>>The collection class for collections, null for others.Retrieve the XClass reference for the class which declares this member.This property's type for simple properties, the type of its elements for arrays and collections.The type of this map's key, or null for anything that is not a map.intSame modifiers as java.lang.Member#getModifiers()getName()getType()This property's XClass.Invoke the method with no parameters.<T extends Annotation>
booleanisAnnotationPresent(Class<T> annotationType) booleanisArray()booleanbooleanvoidsetAccessible(boolean accessible) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.annotations.common.reflection.XAnnotatedElement
equals
-
Constructor Details
-
DynamicProperty
-
-
Method Details
-
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
-
getName
-
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceXMember
-
isArray
public boolean isArray() -
getCollectionClass
Description copied from interface:XMemberThe collection class for collections, null for others.- Specified by:
getCollectionClassin interfaceXMember
-
getType
Description copied from interface:XMemberThis property's 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
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
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
-
invoke
Description copied from interface:XMemberInvoke the method with no parameters. Same asXMember.invoke(Object, Object...). -
isTypeResolved
public boolean isTypeResolved()- Specified by:
isTypeResolvedin interfaceXMember
-
getAnnotation
- Specified by:
getAnnotationin interfaceXAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceXAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceXAnnotatedElement
-