Class JdkClassDetails
java.lang.Object
org.hibernate.models.internal.jdk.AbstractJdkAnnotationTarget
org.hibernate.models.internal.jdk.JdkClassDetails
- All Implemented Interfaces:
AnnotationTargetSupport,ClassDetailsSupport,Storable<ClassDetails,,SerialClassDetails> AnnotationTarget,ClassDetails,MutableAnnotationTarget,MutableClassDetails,TypeVariableScope
ClassDetails implementation based on a
Class reference-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationTarget
AnnotationTarget.AnnotationUsageProcessor<T,A extends Annotation>, AnnotationTarget.Kind Nested classes/interfaces inherited from interface org.hibernate.models.spi.ClassDetails
ClassDetails.ClassDetailsConsumer -
Field Summary
Fields inherited from interface org.hibernate.models.spi.ClassDetails
CLASS_CLASS_DETAILS, OBJECT_CLASS_DETAILS, VOID_CLASS_DETAILS, VOID_OBJECT_CLASS_DETAILS -
Constructor Summary
ConstructorsConstructorDescriptionJdkClassDetails(Class<?> managedClass, ModelsContext modelContext) JdkClassDetails(String name, Class<?> managedClass, ModelsContext modelContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(FieldDetails fieldDetails) voidaddMethod(MethodDetails methodDetails) The name of theClass, ornullfor dynamic models.Get the fields for this classGeneric type information for this class.Details for the interfaces this class implements.Get the methods for this classgetName()The name of the class.Get the record components for this classDetails for the class that is the super type for this class.Access to the type parameters associated with this class.booleanWhether the class should be considered abstract.booleanisEnum()Whether this class is an enumbooleanisImplementor(Class<?> checkType) Whether the described class is an implementor of the givencheckType.booleanWhether this class is an interfacebooleanisRecord()Where the class is a Java recordbooleanWhether the Class, if one, represented by this ClassDetails is already loaded on the ClassLoader used for loading.<X> Class<X> Load the corresponding Class using standard ClassLoading.<X> Class<X> toJavaClass(ClassLoading classLoading, ModelsContext modelContext) Load the corresponding Class using the specifiedClassLoading.toString()Methods inherited from class org.hibernate.models.internal.jdk.AbstractJdkAnnotationTarget
addAnnotationUsage, clearAnnotationUsages, getModelContext, getUsageMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.models.spi.AnnotationTarget
forEachAnnotationUsage, forEachAnnotationUsage, forEachDirectAnnotationUsage, fromAnnotations, fromContainers, fromSelfAndContainers, getNamedAnnotationUsage, getRepeatedAnnotationUsages, walkContainers, walkSelfAndContainersMethods inherited from interface org.hibernate.models.internal.AnnotationTargetSupport
addAnnotationUsage, asAnnotationDescriptor, asClassDetails, asFieldDetails, asMemberDetails, asMethodDetails, asRecordComponentDetails, clearAnnotationUsages, forEachRepeatedAnnotationUsages, forEachRepeatedAnnotationUsages, getDirectAnnotationUsage, getDirectAnnotationUsage, getDirectAnnotationUsages, getMetaAnnotated, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, getRepeatedAnnotationUsages, getUsageMap, hasAnnotationUsage, hasDirectAnnotationUsage, locateAnnotationUsage, removeAnnotationUsage, replaceAnnotationUsageMethods inherited from interface org.hibernate.models.spi.ClassDetails
determineRawClass, findField, findFieldByName, findRecordComponent, findRecordComponentByName, forEachMember, forEachPersistableMember, forEachSuper, forSelfAndEachSuper, getContainer, getKind, isSuperclass, resolveTypeVariableMethods inherited from interface org.hibernate.models.internal.ClassDetailsSupport
asAnnotationDescriptor, asClassDetails, asFieldDetails, asMemberDetails, asMethodDetails, asRecordComponentDetails, forEachField, forEachMethod, forEachRecordComponent, getAnnotationUsage, getAnnotationUsageMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
applyAnnotationUsage, replaceAnnotationUsageMethods inherited from interface org.hibernate.models.spi.MutableClassDetails
clearMemberAnnotationUsages
-
Constructor Details
-
JdkClassDetails
-
JdkClassDetails
-
-
Method Details
-
getName
Description copied from interface:ClassDetailsThe name of the class. Generally this is the same as the class name. But in the case of Hibernate'sentity-namefeature, this would be theentity-name- Specified by:
getNamein interfaceAnnotationTarget- Specified by:
getNamein interfaceClassDetails
-
getClassName
Description copied from interface:ClassDetailsThe name of theClass, ornullfor dynamic models.- Specified by:
getClassNamein interfaceClassDetails
-
isResolved
public boolean isResolved()Description copied from interface:ClassDetailsWhether the Class, if one, represented by this ClassDetails is already loaded on the ClassLoader used for loading.- Specified by:
isResolvedin interfaceClassDetails- Returns:
truewhen there is a physical backing class, and it is loaded;falseotherwise.
-
toJavaClass
Description copied from interface:ClassDetailsLoad the corresponding Class using standard ClassLoading.- Specified by:
toJavaClassin interfaceClassDetails- See Also:
-
toJavaClass
Description copied from interface:ClassDetailsLoad the corresponding Class using the specifiedClassLoading.- Specified by:
toJavaClassin interfaceClassDetails- Parameters:
classLoading- Where to load the class from/intomodelContext- The model context
-
isAbstract
public boolean isAbstract()Description copied from interface:ClassDetailsWhether the class should be considered abstract.- Specified by:
isAbstractin interfaceClassDetails
-
isInterface
public boolean isInterface()Description copied from interface:ClassDetailsWhether this class is an interface- Specified by:
isInterfacein interfaceClassDetails
-
isEnum
public boolean isEnum()Description copied from interface:ClassDetailsWhether this class is an enum- Specified by:
isEnumin interfaceClassDetails
-
isRecord
public boolean isRecord()Description copied from interface:ClassDetailsWhere the class is a Java record- Specified by:
isRecordin interfaceClassDetails
-
getSuperClass
Description copied from interface:ClassDetailsDetails for the class that is the super type for this class.- Specified by:
getSuperClassin interfaceClassDetails
-
getGenericSuperType
Description copied from interface:ClassDetailsGeneric type information for this class.- Specified by:
getGenericSuperTypein interfaceClassDetails
-
getImplementedInterfaces
Description copied from interface:ClassDetailsDetails for the interfaces this class implements.- Specified by:
getImplementedInterfacesin interfaceClassDetails
-
getTypeParameters
Description copied from interface:ClassDetailsAccess to the type parameters associated with this class.- Specified by:
getTypeParametersin interfaceClassDetails
-
isImplementor
Description copied from interface:ClassDetailsWhether the described class is an implementor of the givencheckType.- Specified by:
isImplementorin interfaceClassDetails
-
getFields
Description copied from interface:ClassDetailsGet the fields for this class- Specified by:
getFieldsin interfaceClassDetails
-
addField
- Specified by:
addFieldin interfaceMutableClassDetails
-
getMethods
Description copied from interface:ClassDetailsGet the methods for this class- Specified by:
getMethodsin interfaceClassDetails
-
addMethod
- Specified by:
addMethodin interfaceMutableClassDetails
-
getRecordComponents
Description copied from interface:ClassDetailsGet the record components for this class- Specified by:
getRecordComponentsin interfaceClassDetails
-
toString
-
toStorableForm
- Specified by:
toStorableFormin interfaceStorable<ClassDetails,SerialClassDetails>
-