Class QueryRedirectorHelper


  • public class QueryRedirectorHelper
    extends java.lang.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.

    Author:
    Gordon Yorke
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object checkEclipseLinkCache​(DatabaseQuery query, Record record, Session session)
      This method will cause EclipseLink to check the EclipseLink cache for the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryRedirectorHelper

        public QueryRedirectorHelper()
    • Method Detail

      • checkEclipseLinkCache

        public static java.lang.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.