Class DefaultJdbcRepositoryOperations.ArgumentJdbcCC
java.lang.Object
io.micronaut.data.runtime.support.AbstractConversionContext
io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.ArgumentJdbcCC
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.convert.ArgumentConversionContext<Object>, io.micronaut.core.convert.ConversionContext, io.micronaut.core.convert.ErrorsContext, io.micronaut.core.type.TypeVariableResolver, JdbcConversionContext, DatabaseTypeConversionContext, Iterable<io.micronaut.core.convert.ConversionError>
- Enclosing class:
DefaultJdbcRepositoryOperations
@Internal
public static final class DefaultJdbcRepositoryOperations.ArgumentJdbcCC
extends AbstractConversionContext
implements io.micronaut.core.convert.ArgumentConversionContext<Object>
Internal argument-based JDBC conversion context used by repository operations.
This type is exposed only to share the current Connection, database type, and
Argument metadata with converter infrastructure. It is not intended for user code.
- Since:
- 1.0.0
- Author:
- graemerocher, 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 -
Constructor Summary
ConstructorsConstructorDescriptionArgumentJdbcCC(Connection connection, DatabaseType databaseType, io.micronaut.core.type.Argument<?> argument) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<Object> Provides access to JDBC connection.Returns theDatabaseTypefor the current operation.Methods inherited from class AbstractConversionContext
getAnnotationMetadata, getFirstTypeVariable, getLastError, getTypeParameters, getTypeVariable, getTypeVariables, hasErrors, iterator, reject, rejectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, 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.ArgumentConversionContext
getAnnotationMetadata, getTypeParameters, getTypeVariables, withMethods inherited from interface io.micronaut.core.convert.ConversionContext
getCharset, getLocale, 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, getTypeVariable
-
Constructor Details
-
ArgumentJdbcCC
public ArgumentJdbcCC(Connection connection, DatabaseType databaseType, io.micronaut.core.type.Argument<?> argument) - Parameters:
connection- the current JDBC connectiondatabaseType- the canonical database typeargument- the conversion argument metadata
-
-
Method Details
-
getArgument
-
getConnection
Description copied from interface:JdbcConversionContextProvides access to JDBC connection.- Specified by:
getConnectionin interfaceJdbcConversionContext- Returns:
- the current connection
-
getDatabaseType
Description copied from interface:DatabaseTypeConversionContextReturns theDatabaseTypefor the current operation.Datastore modules (JDBC/R2DBC) provide non-null database type values.
- Specified by:
getDatabaseTypein interfaceDatabaseTypeConversionContext- Returns:
- the database type (never null)
-