public class SingleValueResultMapperFactory<T> extends TarantoolCallResultMapperFactory<T,SingleValueCallResult<T>>
CallResultMapper
instances used for handling Lua call results resulting in two possible
values -- result and errorConstructor and Description |
---|
SingleValueResultMapperFactory()
Basic constructor
|
SingleValueResultMapperFactory(MessagePackMapper messagePackMapper)
Basic constructor with mapper
|
createMapper, createMapper, createMapper, createMapper
withConverter, withConverter, withConverter, withConverter, withConverters, withConverters, withConverterWithoutTargetClass, withConverterWithoutTargetClass
public SingleValueResultMapperFactory()
public SingleValueResultMapperFactory(MessagePackMapper messagePackMapper)
messagePackMapper
- mapper for MessagePack entities in tuple fields to Java objectspublic CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.Value,T> valueConverter)
valueMapper
- MessagePack-to-object mapper for result contentsvalueConverter
- the result content converterpublic CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(ValueConverter<org.msgpack.value.Value,T> valueConverter)
valueConverter
- the result content converterpublic CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(MessagePackValueMapper valueMapper, ValueConverter<org.msgpack.value.Value,T> valueConverter, Class<? extends SingleValueCallResult<T>> resultClass)
valueMapper
- MessagePack-to-object mapper for result contentsvalueConverter
- the result content converterresultClass
- full result type classpublic CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(ValueConverter<org.msgpack.value.Value,T> valueConverter, Class<? extends SingleValueCallResult<T>> resultClass)
valueConverter
- the result content converterresultClass
- full result type classpublic CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(MessagePackValueMapper structureValueMapper)
public CallResultMapper<T,SingleValueCallResult<T>> withSingleValueResultConverter(MessagePackValueMapper structureValueMapper, Class<? extends SingleValueCallResult<T>> resultClass)
public ValueConverterWithInputTypeWrapper<Object> getSingleValueResultConverter(MessagePackValueMapper structureValueMapper)
Copyright © 2025 Picodata. All rights reserved.