Interface ResultSetMapping<T>

  • Type Parameters:
    T - the Java result type of the query

    public interface ResultSetMapping<T>
    Represents the shape of a native SQL query result set, as specified by an instance of the annotation SqlResultSetMapping. At runtime an instance may be obtained by calling session.getResultSetMapping(type, name), or using a typesafe reference produced by some sort of compile-time code generator.
    See Also:
    Mutiny.Session.getResultSetMapping(Class, String), Stage.Session.getResultSetMapping(Class, String)
    • Method Detail

      • getName

        String getName()
        The name of the result set mapping, as specified by SqlResultSetMapping.name().
      • getResultType

        Class<T> getResultType()
        The Java result type of the query. For queries which return multiple columns of results in each row, this must be Object[].