Interface JdbcConversionContext
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.convert.ConversionContext, DatabaseTypeConversionContext, io.micronaut.core.convert.ErrorsContext, Iterable<io.micronaut.core.convert.ConversionError>, io.micronaut.core.type.TypeVariableResolver
- All Known Implementing Classes:
DefaultJdbcRepositoryOperations.ArgumentJdbcCC
Conversion context for JDBC implementation.
- Since:
- 3.1
- Author:
- Denis Stepanov
-
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 ConnectionProvides access to JDBC connection.default DataAccessTypeReturns the driver API of the current operation, used to pick converters that produce driver-specific values.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 DatabaseTypeConversionContext
getDatabaseTypeMethods 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
-
getConnection
@NonNull Connection getConnection()Provides access to JDBC connection.- Returns:
- the current connection
-
getDataAccessType
Description copied from interface:DatabaseTypeConversionContextReturns the driver API of the current operation, used to pick converters that produce driver-specific values.- Specified by:
getDataAccessTypein interfaceDatabaseTypeConversionContext- Returns:
DataAccessType.JDBC, so that vector converters for another driver API are not used- Since:
- 5.3.0
-