Package io.tarantool.driver.mappers
Interface ResultMapperFactoryFactory
-
- All Known Implementing Classes:
DefaultResultMapperFactoryFactory
public interface ResultMapperFactoryFactory
Provides different factories for creating result mappers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TarantoolTupleMultiResultMapperFactory
defaultTupleMultiResultMapperFactory()
Default factory for multi value stored function call result, where each return item is a tuple.TarantoolTupleResultMapperFactory
defaultTupleResultMapperFactory()
Default factory for call result with a list of tuples.TarantoolTupleSingleResultMapperFactory
defaultTupleSingleResultMapperFactory()
Default factory for single value stored function call result with a list of tuples.<T,R extends List<T>>
MultiValueResultMapperFactory<T,R>multiValueResultMapperFactory()
Create a factory for mapping stored function call results toMultiValueCallResult
<T> MultiValueTarantoolResultMapperFactory<T>
multiValueTarantoolResultMapperFactory()
Create a factory for mapping stored function call result toMultiValueCallResult
containing a list of tuples mapped toTarantoolResult
<T> SingleValueResultMapperFactory<T>
singleValueResultMapperFactory()
Create a factory for mapping stored function call results toSingleValueCallResult
<T> SingleValueTarantoolResultMapperFactory<T>
singleValueTarantoolResultMapperFactory()
Create a factory for mapping stored function call result toSingleValueCallResult
containing a list of tuples mapped toTarantoolResult
<T> TupleResultMapperFactory<T>
tupleResultMapperFactory()
Create a factory for mapping Tarantool server protocol result to a list of tuples asTarantoolResult
-
-
-
Method Detail
-
defaultTupleResultMapperFactory
TarantoolTupleResultMapperFactory defaultTupleResultMapperFactory()
Default factory for call result with a list of tuples. Use this factory for handling default standalone server protocol results.- Returns:
- default factory for array of tuple results
-
defaultTupleSingleResultMapperFactory
TarantoolTupleSingleResultMapperFactory defaultTupleSingleResultMapperFactory()
Default factory for single value stored function call result with a list of tuples. Use this factory for handling default proxy function call results like tarantool/crud module API.- Returns:
- default factory for single value call result with a list of tuples
-
defaultTupleMultiResultMapperFactory
TarantoolTupleMultiResultMapperFactory defaultTupleMultiResultMapperFactory()
Default factory for multi value stored function call result, where each return item is a tuple. Use this factory for handling proxy function call results which return tuples as a multi-return result.- Returns:
- default factory for multi value call result, where each item is a tuple
-
tupleResultMapperFactory
<T> TupleResultMapperFactory<T> tupleResultMapperFactory()
Create a factory for mapping Tarantool server protocol result to a list of tuples asTarantoolResult
- Type Parameters:
T
- target tuple type- Returns:
- new or existing factory instance
-
singleValueResultMapperFactory
<T> SingleValueResultMapperFactory<T> singleValueResultMapperFactory()
Create a factory for mapping stored function call results toSingleValueCallResult
- Type Parameters:
T
- target result type- Returns:
- new or existing factory instance
-
singleValueTarantoolResultMapperFactory
<T> SingleValueTarantoolResultMapperFactory<T> singleValueTarantoolResultMapperFactory()
Create a factory for mapping stored function call result toSingleValueCallResult
containing a list of tuples mapped toTarantoolResult
- Type Parameters:
T
- target tuple type- Returns:
- new or existing factory instance
-
multiValueResultMapperFactory
<T,R extends List<T>> MultiValueResultMapperFactory<T,R> multiValueResultMapperFactory()
Create a factory for mapping stored function call results toMultiValueCallResult
- Type Parameters:
T
- target result content typeR
- target result type- Returns:
- new or existing factory instance
-
multiValueTarantoolResultMapperFactory
<T> MultiValueTarantoolResultMapperFactory<T> multiValueTarantoolResultMapperFactory()
Create a factory for mapping stored function call result toMultiValueCallResult
containing a list of tuples mapped toTarantoolResult
- Type Parameters:
T
- target tuple type- Returns:
- new or existing factory instance
-
-