Class DynamicAnnotationUsage<A extends Annotation>
java.lang.Object
org.hibernate.models.internal.dynamic.DynamicAnnotationUsage<A>
- All Implemented Interfaces:
AnnotationUsage<A>,MutableAnnotationUsage<A>
public class DynamicAnnotationUsage<A extends Annotation>
extends Object
implements MutableAnnotationUsage<A>
AnnotationUsage built dynamically (for dynamic models, XML mappings, etc.)
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelContext context) DynamicAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, SourceModelContext context) -
Method Summary
Modifier and TypeMethodDescription<V> VfindAttributeValue(String name) The value of the named annotation attributeDescriptor for the type of the used annotationThe target where this usage occurs<V> VgetAttributeValue(String name) DynamicAnnotationUsage<V> VsetAttributeValue(String name, V value) Set thevalueof the named attributeCreate the Annotation representation of this usageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.models.spi.AnnotationUsage
getAnnotationType, getAttributeValue, getAttributeValue, getAttributeValue, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getClassDetails, getClassDetails, getClassDetails, getDouble, getDouble, getDouble, getEnum, getEnum, getEnum, getEnum, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getList, getList, getList, getLong, getLong, getLong, getNestedUsage, getNestedUsage, getNestedUsage, getShort, getShort, getShort, getString, getString, getString
-
Constructor Details
-
DynamicAnnotationUsage
public DynamicAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, SourceModelContext context) -
DynamicAnnotationUsage
public DynamicAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelContext context)
-
-
Method Details
-
getAnnotationDescriptor
Description copied from interface:AnnotationUsageDescriptor for the type of the used annotation- Specified by:
getAnnotationDescriptorin interfaceAnnotationUsage<A extends Annotation>
-
getAnnotationTarget
Description copied from interface:AnnotationUsageThe target where this usage occurs- Specified by:
getAnnotationTargetin interfaceAnnotationUsage<A extends Annotation>
-
toAnnotation
Description copied from interface:AnnotationUsageCreate the Annotation representation of this usage- Specified by:
toAnnotationin interfaceAnnotationUsage<A extends Annotation>
-
findAttributeValue
Description copied from interface:AnnotationUsageThe value of the named annotation attribute- Specified by:
findAttributeValuein interfaceAnnotationUsage<A extends Annotation>
-
getAttributeValue
DynamicAnnotationUsage- Specified by:
getAttributeValuein interfaceAnnotationUsage<A extends Annotation>
-
setAttributeValue
Description copied from interface:MutableAnnotationUsageSet thevalueof the named attribute- Specified by:
setAttributeValuein interfaceMutableAnnotationUsage<A extends Annotation>
-