Interface DatabaseTypeConversionContext
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.convert.ConversionContext, io.micronaut.core.convert.ErrorsContext, Iterable<io.micronaut.core.convert.ConversionError>, io.micronaut.core.type.TypeVariableResolver
- All Known Subinterfaces:
JdbcConversionContext, R2dbcConversionContext
- All Known Implementing Classes:
DefaultJdbcRepositoryOperations.ArgumentJdbcCC
public interface DatabaseTypeConversionContext
extends io.micronaut.core.convert.ConversionContext
Database-type-aware
ConversionContext used by SQL mappers and converters.
Implementations provided by datastore modules (e.g. JDBC, R2DBC) expose the current
DatabaseType so that converters can render
vendor-specific behavior (types, column definitions, reading strategies).
- Since:
- 5.0.0
- Author:
- Nemanja Mikic
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.core.convert.ConversionContext
BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING -
Method Summary
Modifier and TypeMethodDescription@NonNull DatabaseTypeReturns theDatabaseTypefor the current operation.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.core.convert.ConversionContext
getCharset, getLocale, getTypeVariables, withMethods inherited from interface io.micronaut.core.convert.ErrorsContext
getLastError, hasErrors, iterator, reject, rejectMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeParameters, getTypeVariable
-
Method Details
-
getDatabaseType
@NonNull DatabaseType getDatabaseType()Returns theDatabaseTypefor the current operation.Datastore modules (JDBC/R2DBC) provide non-null database type values.
- Returns:
- the database type (never null)
-