Class DistributedQueryImpl

java.lang.Object
org.apache.openjpa.kernel.QueryImpl
org.apache.openjpa.slice.DistributedQueryImpl
All Implemented Interfaces:
Serializable, Query, QueryContext, QueryFlushModes, QueryOperations

public class DistributedQueryImpl extends QueryImpl
Extension with slice locking policy.
Author:
Pinaki Poddar
See Also:
  • Constructor Details

  • Method Details

    • execute

      public Object execute(Map params)
      Overrides to set the query targets via policy, if user has not already set the targets via hint explicitly on this query.
      Specified by:
      execute in interface Query
      Overrides:
      execute in class QueryImpl
    • lock

      public void lock()
      Always uses lock irrespective of super's multi-threaded settings.
      Specified by:
      lock in interface QueryContext
      Overrides:
      lock in class QueryImpl
    • unlock

      public void unlock()
      Description copied from interface: QueryContext
      Unlock the query's internal lock.
      Specified by:
      unlock in interface QueryContext
      Overrides:
      unlock in class QueryImpl