Interface DomainType<J>
-
- All Superinterfaces:
BindableType<J>
,SqmExpressible<J>
- All Known Subinterfaces:
AdjustableBasicType<J>
,AnyMappingDomainType<J>
,BasicDomainType<J>
,BasicPluralType<C,E>
,BasicType<T>
,ConvertedBasicType<J>
,DiscriminatorType<O>
,EmbeddableDomainType<J>
,EmbeddedDomainType<J>
,EntityDomainType<J>
,IdentifiableDomainType<J>
,ManagedDomainType<J>
,MappedSuperclassDomainType<J>
,ReturnableType<T>
,SimpleDomainType<J>
- All Known Implementing Classes:
AbstractDomainType
,AbstractIdentifiableType
,AbstractManagedType
,AbstractSingleColumnStandardBasicType
,AbstractStandardBasicType
,AnonymousTupleType
,AnyDiscriminatorSqmPathSource
,AnyMappingDomainTypeImpl
,ArrayTupleType
,BasicArrayType
,BasicCollectionType
,BasicSqmPathSource
,BasicTypeImpl
,BasicTypeImpl
,ConvertedBasicArrayType
,ConvertedBasicCollectionType
,ConvertedBasicTypeImpl
,CustomMutabilityConvertedBasicTypeImpl
,CustomType
,DiscriminatorSqmPathSource
,DiscriminatorType
,DiscriminatorTypeImpl
,EmbeddableTypeImpl
,EntityTypeImpl
,ImmutableNamedBasicTypeImpl
,JavaObjectType
,MappedSuperclassTypeImpl
,NamedBasicTypeImpl
,NullType
,PrimitiveBasicTypeImpl
,SerializableToBlobType
,SerializableType
,SqmCteTable
,SqmPolymorphicRootDescriptor
,StandardBasicTypeTemplate
public interface DomainType<J> extends SqmExpressible<J>
Describes any type that occurs in the application's domain model. The base for Hibernate's extension of the JPA type system. Encapsulates aJavaType
describing the more rudimentary aspects of the Java type. The DomainType is a higher-level construct incorporating information such as bean properties, constructors, etc- Implementation Note:
- The actual JPA type system is more akin to
SimpleDomainType
. This contract represents a "higher level" than JPA including descriptors for collections (which JPA does not define) as well as Hibernate-specific features (like dynamic models or ANY mappings).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JavaType<J>
getExpressibleJavaType()
The descriptor for the Java type (i.e.default String
getTypeName()
The name of the type.-
Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, isInstance, resolveExpressible
-
-
-
-
Method Detail
-
getTypeName
default String getTypeName()
The name of the type.- API Note:
- This is the Hibernate notion of the type name. For most types
this will simply be the Java type (i.e.
Class
) name. However using the String allows for Hibernate's dynamic model feature.
-
getExpressibleJavaType
JavaType<J> getExpressibleJavaType()
The descriptor for the Java type (i.e.Class
) represented by this DomainType.- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<J>
- See Also:
getTypeName()
-
-