org.synyx.hades.dao.query
Interface QueryExtractor


public interface QueryExtractor

Interface to hide different implementations to extract the original JPA query string from a Query.

Author:
Oliver Gierke

Method Summary
 boolean canExtractQuery()
          Returns whether the extractor is able to extract the original query string from a given Query.
 java.lang.String extractQueryString(javax.persistence.Query query)
          Reverse engineers the query string from the Query object.
 

Method Detail

extractQueryString

java.lang.String extractQueryString(javax.persistence.Query query)
Reverse engineers the query string from the Query object. This requires provider specific API as JPA does not provide access to the underlying query string as soon as one has created a Query instance of it.

Parameters:
query -
Returns:
the query string representing the query or null if resolving is not possible.

canExtractQuery

boolean canExtractQuery()
Returns whether the extractor is able to extract the original query string from a given Query.

Returns:


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.