Interface QueryExtractor
- All Known Implementing Classes:
- PersistenceProvider
public interface QueryExtractor
Interface to hide different implementations to extract the original JPA query string from a 
Query.- Author:
- Oliver Gierke, Mark Paluch
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns whether the extractor is able to extract the original query string from a givenQuery.extractQueryString(jakarta.persistence.Query query) Reverse engineers the query string from theQueryobject.
- 
Method Details- 
extractQueryStringReverse engineers the query string from theQueryobject. This requires provider specific API as JPA does not provide access to the underlying query string as soon as one has created aQueryinstance of it.- Parameters:
- query-
- Returns:
- the query string representing the query or null if resolving is not possible.
 
- 
canExtractQueryboolean canExtractQuery()Returns whether the extractor is able to extract the original query string from a givenQuery.- Returns:
 
 
-