Class QueryRedirectorHelper

  • public class QueryRedirectorHelper
    extends Object

    Purpose: The purpose of this class is to provide the query redirector with some helper methods for general EclipseLink operations (such as checking a query against the cache) which may not occur because the query is being redirected.

    Gordon Yorke
    • Constructor Detail

      • QueryRedirectorHelper

        public QueryRedirectorHelper()
    • Method Detail

      • checkEclipseLinkCache

        public static Object checkEclipseLinkCache​(DatabaseQuery query,
                                                   Record record,
                                                   Session session)
        This method will cause EclipseLink to check the EclipseLink cache for the object. EclipseLink always checks the shared cache before executing a query but because the query has been redirected in this case the cache check has also been redirected. Through this method the redirector can have EclipseLink check the cache in the normal manner.