Class CallableStatementTupleMapper
java.lang.Object
io.micronaut.data.jdbc.mapper.CallableStatementTupleMapper
- All Implemented Interfaces:
SqlTypeMapper<CallableStatement, jakarta.persistence.Tuple>, TypeMapper<CallableStatement, jakarta.persistence.Tuple>
@Internal
public final class CallableStatementTupleMapper
extends Object
implements SqlTypeMapper<CallableStatement, jakarta.persistence.Tuple>
A mapper of
Tuple backed by a CallableStatement OUT parameter set.- Since:
- 5.0
- Author:
- Radovan Radic
-
Constructor Summary
ConstructorsConstructorDescriptionCallableStatementTupleMapper(io.micronaut.core.convert.ConversionService conversionService, Map<String, Integer> columnIndexesByName) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.convert.ConversionServicebooleanhasNext(CallableStatement resultSet) Is another result available.jakarta.persistence.Tuplemap(CallableStatement cs, Class<jakarta.persistence.Tuple> type) Map the given result set to the given object.@Nullable Objectread(CallableStatement cs, String name) Read a value for the given name from the given object.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TypeMapper
read
-
Constructor Details
-
CallableStatementTupleMapper
-
-
Method Details
-
hasNext
Description copied from interface:SqlTypeMapperIs another result available.- Specified by:
hasNextin interfaceSqlTypeMapper<CallableStatement, jakarta.persistence.Tuple>- Parameters:
resultSet- The result set- Returns:
- True if it is
-
map
public jakarta.persistence.Tuple map(CallableStatement cs, Class<jakarta.persistence.Tuple> type) throws DataAccessException Description copied from interface:TypeMapperMap the given result set to the given object.- Specified by:
mapin interfaceTypeMapper<CallableStatement, jakarta.persistence.Tuple>- Parameters:
cs- The object to maptype- The type- Returns:
- The mapped object
- Throws:
DataAccessException- If the object cannot be mapped.
-
read
Description copied from interface:TypeMapperRead a value for the given name from the given object.- Specified by:
readin interfaceTypeMapper<CallableStatement, jakarta.persistence.Tuple>- Parameters:
cs- The object to read fromname- The name- Returns:
- The value
-
getConversionService
public io.micronaut.core.convert.ConversionService getConversionService()- Specified by:
getConversionServicein interfaceTypeMapper<CallableStatement, jakarta.persistence.Tuple>- Returns:
- The conversion service to use.
-