Interface R2dbcConversionContext

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

public interface R2dbcConversionContext extends DatabaseTypeConversionContext
Conversion context for R2DBC implementation.
Since:
3.1
Author:
Denis Stepanov
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY

    Fields inherited from interface io.micronaut.core.convert.ConversionContext

    BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.r2dbc.spi.Connection
    Provides access to R2DBC connection.
    Returns 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, synthesizeDeclaredAnnotationsByType

    Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

    getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared

    Methods inherited from interface io.micronaut.core.convert.ConversionContext

    getCharset, getLocale, getTypeVariables, with

    Methods inherited from interface DatabaseTypeConversionContext

    getDatabaseType

    Methods inherited from interface io.micronaut.core.convert.ErrorsContext

    getLastError, hasErrors, iterator, reject, reject

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface io.micronaut.core.type.TypeVariableResolver

    getFirstTypeVariable, getTypeParameters, getTypeVariable
  • Method Details

    • getConnection

      @NonNull io.r2dbc.spi.Connection getConnection()
      Provides access to R2DBC connection.
      Returns:
      the current connection
    • getDataAccessType

      default DataAccessType getDataAccessType()
      Description copied from interface: DatabaseTypeConversionContext
      Returns the driver API of the current operation, used to pick converters that produce driver-specific values.
      Specified by:
      getDataAccessType in interface DatabaseTypeConversionContext
      Returns:
      DataAccessType.R2DBC, so that vector converters for another driver API are not used
      Since:
      5.3.0