Class BasicValueBinder
java.lang.Object
org.hibernate.boot.model.internal.BasicValueBinder
- All Implemented Interfaces:
JdbcTypeIndicators
A stateful binder responsible for creating instances of
BasicValue
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
NO_COLUMN_LENGTH, NO_COLUMN_PRECISION, NO_COLUMN_SCALE
-
Constructor Summary
ConstructorsConstructorDescriptionBasicValueBinder
(BasicValueBinder.Kind kind, MetadataBuildingContext buildingContext) BasicValueBinder
(BasicValueBinder.Kind kind, Component aggregateComponent, MetadataBuildingContext buildingContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
The defaultTimeZoneStorageStrategy
.For enum mappings, what style of storage was requested (name vs.int
When mapping a basic array or collection type to the database what is the preferred SQL type code to use?int
When mapping a boolean type to the database what is the preferred SQL type code to use?int
When mapping a duration type to the database what is the preferred SQL type code to use?int
When mapping an instant type to the database what is the preferred SQL type code to use?int
When mapping an uuid type to the database what is the preferred SQL type code to use?protected org.hibernate.models.spi.SourceModelBuildingContext
For temporal type mappings, what precision was requested?Provides access to theTypeConfiguration
for access to various type system related registries.boolean
isLob()
Was LOB datatype requested for the given Java type?boolean
Was nationalized character datatype requested for the given Java type?boolean
boolean
void
make()
int
resolveJdbcTypeCode
(int jdbcTypeCode) Resolves the given type code to a possibly different type code, based on context.void
setAccessType
(AccessType accessType) void
setColumns
(AnnotatedColumns columns) void
setExplicitType
(String explicitType) void
setPersistentClassName
(String persistentClassName) void
setPropertyName
(String propertyName) void
setReferencedEntityName
(String referencedEntityName) void
setReturnedClassName
(String returnedClassName) void
void
setTimestampVersionType
(String versionType) void
setType
(org.hibernate.models.spi.MemberDetails valueMember, org.hibernate.models.spi.TypeDetails typeDetails, String declaringClassName, ConverterDescriptor converterDescriptor) void
setVersion
(boolean isVersion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getExplicitJdbcTypeCode, getJdbcType, getPreferredSqlTypeCodeForArray, isXmlFormatMapperLegacyFormatEnabled, preferJdbcDatetimeTypes
-
Constructor Details
-
BasicValueBinder
-
BasicValueBinder
public BasicValueBinder(BasicValueBinder.Kind kind, Component aggregateComponent, MetadataBuildingContext buildingContext)
-
-
Method Details
-
getSourceModelContext
protected org.hibernate.models.spi.SourceModelBuildingContext getSourceModelContext() -
getTypeConfiguration
Description copied from interface:JdbcTypeIndicators
Provides access to theTypeConfiguration
for access to various type system related registries.- Specified by:
getTypeConfiguration
in interfaceJdbcTypeIndicators
-
getDefaultTimeZoneStorageStrategy
Description copied from interface:JdbcTypeIndicators
The defaultTimeZoneStorageStrategy
.- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceJdbcTypeIndicators
- See Also:
-
getEnumeratedType
Description copied from interface:JdbcTypeIndicators
For enum mappings, what style of storage was requested (name vs. ordinal)?- Specified by:
getEnumeratedType
in interfaceJdbcTypeIndicators
- Returns:
- The enum type.
-
isLob
public boolean isLob()Description copied from interface:JdbcTypeIndicators
Was LOB datatype requested for the given Java type?- Specified by:
isLob
in interfaceJdbcTypeIndicators
- Returns:
true
if LOB datatype should be used;false
otherwise.
-
getTemporalPrecision
Description copied from interface:JdbcTypeIndicators
For temporal type mappings, what precision was requested?- Specified by:
getTemporalPrecision
in interfaceJdbcTypeIndicators
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()- Specified by:
isPreferJavaTimeJdbcTypesEnabled
in interfaceJdbcTypeIndicators
- See Also:
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceJdbcTypeIndicators
- See Also:
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()Description copied from interface:JdbcTypeIndicators
When mapping a boolean type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceJdbcTypeIndicators
- See Also:
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()Description copied from interface:JdbcTypeIndicators
When mapping a duration type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForDuration
in interfaceJdbcTypeIndicators
- See Also:
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()Description copied from interface:JdbcTypeIndicators
When mapping an uuid type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForUuid
in interfaceJdbcTypeIndicators
- See Also:
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()Description copied from interface:JdbcTypeIndicators
When mapping an instant type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForInstant
in interfaceJdbcTypeIndicators
- See Also:
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()Description copied from interface:JdbcTypeIndicators
When mapping a basic array or collection type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForArray
in interfaceJdbcTypeIndicators
- See Also:
-
resolveJdbcTypeCode
public int resolveJdbcTypeCode(int jdbcTypeCode) Description copied from interface:JdbcTypeIndicators
Resolves the given type code to a possibly different type code, based on context.A database might not support a certain type code in certain scenarios like within a UDT and has to resolve to a different type code in such a scenario.
- Specified by:
resolveJdbcTypeCode
in interfaceJdbcTypeIndicators
- Parameters:
jdbcTypeCode
- a type code fromSqlTypes
- Returns:
- The jdbc type code to use
-
isNationalized
public boolean isNationalized()Description copied from interface:JdbcTypeIndicators
Was nationalized character datatype requested for the given Java type?- Specified by:
isNationalized
in interfaceJdbcTypeIndicators
- Returns:
true
if nationalized character datatype should be used;false
otherwise.
-
setVersion
public void setVersion(boolean isVersion) -
setTimestampVersionType
-
setReferencedEntityName
-
setPropertyName
-
setReturnedClassName
-
setTable
-
setColumns
-
setPersistentClassName
-
setAccessType
-
setType
public void setType(org.hibernate.models.spi.MemberDetails valueMember, org.hibernate.models.spi.TypeDetails typeDetails, String declaringClassName, ConverterDescriptor converterDescriptor) -
getDialect
- Specified by:
getDialect
in interfaceJdbcTypeIndicators
-
setExplicitType
-
make
-
linkWithValue
public void linkWithValue() -
fillSimpleValue
public void fillSimpleValue()
-