Uses of Interface
jakarta.persistence.sql.ResultSetMapping
Packages that use ResultSetMapping
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
Defines an API for the programmatic definition of SQL result set
mappings to Java classes.
-
Uses of ResultSetMapping in jakarta.persistence
Methods in jakarta.persistence that return types with arguments of type ResultSetMappingModifier and TypeMethodDescription<R> Map<String, ResultSetMapping<R>> EntityManagerFactory.getResultSetMappings(Class<R> resultType) A map keyed by name, containing a typedResultSetMappingfor every result set mapping defined in annotations whose inferred result type is exactly the given Java type.Methods in jakarta.persistence with parameters of type ResultSetMappingModifier and TypeMethodDescription<T> TypedQuery<T> EntityHandler.createNativeQuery(String sqlString, ResultSetMapping<T> resultSetMapping) Create an instance ofTypedQueryfor executing a native SQL query, using the givenResultSetMappingto interpret the JDBC result set.<R> List<R> StoredProcedureQuery.getResultList(ResultSetMapping<R> mapping) Retrieve the list of results from the next result set, specifying a result set mapping which overrides any mapping or result class already specified.<R> RStoredProcedureQuery.getSingleResult(ResultSetMapping<R> mapping) Retrieve a single result from the next result set, specifying a result set mapping which overrides any mapping or result class already specified.<R> RStoredProcedureQuery.getSingleResultOrNull(ResultSetMapping<R> mapping) Retrieve a single result from the next result set, specifying a result set mapping which overrides any mapping or result class already specified.<R> TypedQuery<R> StatementOrTypedQuery.withResultSetMapping(ResultSetMapping<R> mapping) Obtain aTypedQuerywith the given result set mapping. -
Uses of ResultSetMapping in jakarta.persistence.sql
Classes in jakarta.persistence.sql that implement ResultSetMappingModifier and TypeClassDescriptionfinal recordMaps a column of a JDBCResultSetto a scalar value in the result returned by the query.final recordMaps a JDBCResultSetto a tuple of values packaged as an object array.final recordMaps columns of a JDBCResultSetto parameters of the constructor of a Java class.final recordfinal record