Package org.hibernate.type.internal
Class NamedBasicTypeImpl<J>
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<J>
-
- org.hibernate.type.internal.BasicTypeImpl<J>
-
- org.hibernate.type.internal.NamedBasicTypeImpl<J>
-
- All Implemented Interfaces:
BasicType<J>
,Type<J>
,Serializable
,BasicValuedMapping
,Bindable
,JdbcMapping
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,SqlExpressible
,ValueMapping
,BasicDomainType<J>
,DomainType<J>
,SimpleDomainType<J>
,BindableType<J>
,OutputableType<J>
,ReturnableType<J>
,SqmExpressible<J>
,AdjustableBasicType<J>
,BasicType<J>
,JavaTypedExpressible
,ProcedureParameterExtractionAware<J>
,ProcedureParameterNamedBinder<J>
,Type
- Direct Known Subclasses:
ImmutableNamedBasicTypeImpl
public class NamedBasicTypeImpl<J> extends BasicTypeImpl<J>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
-
Field Summary
-
Fields inherited from class org.hibernate.type.internal.BasicTypeImpl
EXTERNALIZED_PREFIX, NO_REG_KEYS
-
-
Constructor Summary
Constructors Constructor Description NamedBasicTypeImpl(JavaType<J> jtd, JdbcType std, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
BasicTypeImpl produces a name whose sole purpose is to be used as part of interpreting Envers-produced mappings.-
Methods inherited from class org.hibernate.type.internal.BasicTypeImpl
getRegistrationKeys, toString
-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, disassemble, extract, extract, fromString, getCastType, getColumnSpan, getHashCode, getHashCode, getJavaType, getJavaTypeDescriptor, getJdbcLiteralFormatter, getJdbcType, getJdbcValueBinder, getJdbcValueExtractor, getMutabilityPlan, getReturnedClass, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, registerUnderJavaType, replace, replace, toColumnNullness, toLoggableString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.AdjustableBasicType
resolveIndicatedType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
areEqual, getPersistenceType
-
Methods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getExpressibleJavaType, getJavaTypeDescriptor, getJdbcLiteralFormatter, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getJdbcValueBinder, getJdbcValueExtractor, getMappedJavaType, getMappedType, getSingleJdbcMapping, getValueConverter
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLength
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcJavaType, getJdbcType
-
Methods inherited from interface org.hibernate.query.OutputableType
canDoExtraction, extract, extract, getJdbcType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.SimpleDomainType
getBindableJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, disassemble, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getReturnedClassName, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
treatAs
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from class:BasicTypeImpl
BasicTypeImpl produces a name whose sole purpose is to be used as part of interpreting Envers-produced mappings. We want to use the same exact BasicTypeImpl *instance* in the audit mapping (Envers) as is used in the audited (ORM) mapping. The name is in the form`basicType@${u}(${o},${r})`
, where- ${u} is a unique number
- ${o} is the mapped Java type
- ${r} is the mapped SQL type (JDBC type code)
`basicType@${u}`
is enough to uniquely identify this type instance; the Java Type and JDBC type code are informational E.g.`basicType@321(java.lang.String,12)`
- Specified by:
getName
in interfaceType
- Overrides:
getName
in classBasicTypeImpl<J>
- Returns:
- the Hibernate type name
-
-