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

    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 DatabaseType
    Returns the DatabaseType for 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, 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 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

    • getDatabaseType

      @NonNull DatabaseType getDatabaseType()
      Returns the DatabaseType for the current operation.

      Datastore modules (JDBC/R2DBC) provide non-null database type values.

      Returns:
      the database type (never null)