Class StringArrayResultRowMapperFactory
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.mapper.StringArrayResultRowMapperFactory
- All Implemented Interfaces:
ResultRowMapperFactory
@Component
public class StringArrayResultRowMapperFactory
extends Object
implements ResultRowMapperFactory
ResultRowMapperFactory
that supports query results of type String
[].
The order of the array is defined by the order the paths are given to PathQueryBuilder.addPathToSelection(String...)
.
To-Many paths get joined by commas-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringArrayResultRowMapperFactory
public StringArrayResultRowMapperFactory()
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceResultRowMapperFactory
- Returns:
- true if this factory supports the given target type
-
createMapper
- Specified by:
createMapper
in interfaceResultRowMapperFactory
- Returns:
- a
ResultRowMapper
that can produce results of type T
-