Package org.hibernate.query.named
Interface NamedResultSetMappingMemento
- All Known Implementing Classes:
NamedResultSetMappingMementoImpl
Used to keep information about named result mappings defined by the
application which can then be applied to native-sql and stored-procedure
queries.
These can be defined in a number of ways:
SqlResultSetMapping- JPA Class-based mapping
- Hibernate's legacy XML-defined mapping
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The name associated with this mementovoidresolve(ResultSetMapping resultSetMapping, Consumer<String> querySpaceConsumer, ResultSetMappingResolutionContext context) Resolve this memento.
-
Method Details
-
getName
String getName()The name associated with this memento -
resolve
void resolve(ResultSetMapping resultSetMapping, Consumer<String> querySpaceConsumer, ResultSetMappingResolutionContext context) Resolve this memento. This involves buildingResultBuilderinstances for each defined result and registering them with the passedresultSetMapping. Any known query spaces should be passed to thequerySpaceConsumer.
-