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 TypeMethodDescriptionvoidThe defaultTimeZoneStorageStrategy.For enum mappings, what style of storage was requested (name vs.intWhen mapping a basic array or collection type to the database what is the preferred SQL type code to use?intWhen mapping a boolean type to the database what is the preferred SQL type code to use?intWhen mapping a duration type to the database what is the preferred SQL type code to use?intWhen mapping an instant type to the database what is the preferred SQL type code to use?intWhen mapping an uuid type to the database what is the preferred SQL type code to use?protected org.hibernate.models.spi.ModelsContextFor temporal type mappings, what precision was requested?Provides access to theTypeConfigurationfor access to various type system related registries.booleanisLob()Was LOB datatype requested for the given Java type?booleanWas nationalized character datatype requested for the given Java type?booleanbooleanmake()intresolveJdbcTypeCode(int jdbcTypeCode) Resolves the given type code to a possibly different type code, based on context.voidsetAccessType(AccessType accessType) voidsetColumns(AnnotatedColumns columns) voidsetPersistentClassName(String persistentClassName) voidsetReturnedClassName(String returnedClassName) voidvoidsetType(org.hibernate.models.spi.MemberDetails value, org.hibernate.models.spi.TypeDetails typeDetails, String declaringClassName, @Nullable ConverterDescriptor converterDescriptor) voidsetVersion(boolean isVersion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.ModelsContext getSourceModelContext() -
getTypeConfiguration
Description copied from interface:JdbcTypeIndicatorsProvides access to theTypeConfigurationfor access to various type system related registries.- Specified by:
getTypeConfigurationin interfaceJdbcTypeIndicators
-
getDefaultTimeZoneStorageStrategy
Description copied from interface:JdbcTypeIndicatorsThe defaultTimeZoneStorageStrategy.- Specified by:
getDefaultTimeZoneStorageStrategyin interfaceJdbcTypeIndicators- See Also:
-
getEnumeratedType
Description copied from interface:JdbcTypeIndicatorsFor enum mappings, what style of storage was requested (name vs. ordinal)?- Specified by:
getEnumeratedTypein interfaceJdbcTypeIndicators- Returns:
- The enum type.
-
isLob
public boolean isLob()Description copied from interface:JdbcTypeIndicatorsWas LOB datatype requested for the given Java type?- Specified by:
isLobin interfaceJdbcTypeIndicators- Returns:
trueif LOB datatype should be used;falseotherwise.
-
getTemporalPrecision
Description copied from interface:JdbcTypeIndicatorsFor temporal type mappings, what precision was requested?- Specified by:
getTemporalPrecisionin interfaceJdbcTypeIndicators
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceJdbcTypeIndicators- See Also:
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()- Specified by:
isPreferNativeEnumTypesEnabledin interfaceJdbcTypeIndicators- See Also:
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()Description copied from interface:JdbcTypeIndicatorsWhen mapping a boolean type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceJdbcTypeIndicators- See Also:
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()Description copied from interface:JdbcTypeIndicatorsWhen mapping a duration type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForDurationin interfaceJdbcTypeIndicators- See Also:
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()Description copied from interface:JdbcTypeIndicatorsWhen mapping an uuid type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForUuidin interfaceJdbcTypeIndicators- See Also:
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()Description copied from interface:JdbcTypeIndicatorsWhen mapping an instant type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForInstantin interfaceJdbcTypeIndicators- See Also:
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()Description copied from interface:JdbcTypeIndicatorsWhen 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:
getPreferredSqlTypeCodeForArrayin interfaceJdbcTypeIndicators- See Also:
-
resolveJdbcTypeCode
public int resolveJdbcTypeCode(int jdbcTypeCode) Description copied from interface:JdbcTypeIndicatorsResolves 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:
resolveJdbcTypeCodein interfaceJdbcTypeIndicators- Parameters:
jdbcTypeCode- a type code fromSqlTypes- Returns:
- The jdbc type code to use
-
isNationalized
public boolean isNationalized()Description copied from interface:JdbcTypeIndicatorsWas nationalized character datatype requested for the given Java type?- Specified by:
isNationalizedin interfaceJdbcTypeIndicators- Returns:
trueif nationalized character datatype should be used;falseotherwise.
-
setVersion
public void setVersion(boolean isVersion) -
setReturnedClassName
-
setTable
-
setColumns
-
setPersistentClassName
-
setAccessType
-
setType
public void setType(org.hibernate.models.spi.MemberDetails value, org.hibernate.models.spi.TypeDetails typeDetails, String declaringClassName, @Nullable ConverterDescriptor converterDescriptor) -
getDialect
- Specified by:
getDialectin interfaceJdbcTypeIndicators
-
make
-
fillSimpleValue
public void fillSimpleValue()
-