Interface JdbcRecommendedSqlTypeMappingContext
-
public interface JdbcRecommendedSqlTypeMappingContext
More-or-less a parameter-object intended for use in determining the SQL/JDBC type recommended by the JDBC spec (explicitly or implicitly) for a given Java type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EnumType
getEnumeratedType()
For enum mappings, what style of storage was requested (name vs.default int
getPreferredSqlTypeCodeForBoolean()
When mapping a boolean type to the database what is the preferred SQL type code to use?TypeConfiguration
getTypeConfiguration()
Provides access to the TypeConfiguration for access to various type-system registries.default boolean
isLob()
Was LOB datatype requested for the given Java type?default boolean
isNationalized()
Was nationalized character datatype requested for the given Java type?
-
-
-
Method Detail
-
isNationalized
default boolean isNationalized()
Was nationalized character datatype requested for the given Java type?- Returns:
true
if nationalized character datatype should be used;false
otherwise.
-
isLob
default boolean isLob()
Was LOB datatype requested for the given Java type?- Returns:
true
if LOB datatype should be used;false
otherwise.
-
getEnumeratedType
default EnumType getEnumeratedType()
For enum mappings, what style of storage was requested (name vs. ordinal)?- Returns:
- The enum type.
-
getPreferredSqlTypeCodeForBoolean
default int getPreferredSqlTypeCodeForBoolean()
When mapping a boolean type to the database what is the preferred SQL type code to use? Specifically names the key into theSqlTypeDescriptorRegistry
.
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
Provides access to the TypeConfiguration for access to various type-system registries.
-
-