Package org.hibernate.reactive.common
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 annotationSqlResultSetMapping
. At runtime an instance may be obtained by callingsession.getResultSetMapping(type, name)
, or using a typesafe reference produced by some sort of compile-time code generator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
The name of the result set mapping, as specified bySqlResultSetMapping.name()
.java.lang.Class<T>
getResultType()
The Java result type of the query.
-
-
-
Method Detail
-
getName
java.lang.String getName()
The name of the result set mapping, as specified bySqlResultSetMapping.name()
.
-
getResultType
java.lang.Class<T> getResultType()
The Java result type of the query. For queries which return multiple columns of results in each row, this must beObject[]
.
-
-