org.apache.oozie.executor.jpa
Class QueryExecutor<T,E extends Enum<E>>

java.lang.Object
  extended by org.apache.oozie.executor.jpa.QueryExecutor<T,E>
Direct Known Subclasses:
BundleActionQueryExecutor, BundleJobQueryExecutor, CoordActionQueryExecutor, CoordJobQueryExecutor, SLARegistrationQueryExecutor, SLASummaryQueryExecutor, WorkflowActionQueryExecutor, WorkflowJobQueryExecutor

public abstract class QueryExecutor<T,E extends Enum<E>>
extends Object

Base Class of Query Executor


Constructor Summary
protected QueryExecutor()
           
 
Method Summary
abstract  int executeUpdate(E namedQuery, T jobBean)
           
abstract  T get(E namedQuery, Object... parameters)
           
abstract  List<T> getList(E namedQuery, Object... parameters)
           
abstract  javax.persistence.Query getSelectQuery(E namedQuery, javax.persistence.EntityManager em, Object... parameters)
           
abstract  Object getSingleValue(E namedQuery, Object... parameters)
           
abstract  javax.persistence.Query getUpdateQuery(E namedQuery, T wfBean, javax.persistence.EntityManager em)
           
 void insert(JsonBean bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExecutor

protected QueryExecutor()
Method Detail

executeUpdate

public abstract int executeUpdate(E namedQuery,
                                  T jobBean)
                           throws JPAExecutorException
Throws:
JPAExecutorException

insert

public void insert(JsonBean bean)
            throws JPAExecutorException
Throws:
JPAExecutorException

get

public abstract T get(E namedQuery,
                      Object... parameters)
               throws JPAExecutorException
Throws:
JPAExecutorException

getList

public abstract List<T> getList(E namedQuery,
                                Object... parameters)
                         throws JPAExecutorException
Throws:
JPAExecutorException

getUpdateQuery

public abstract javax.persistence.Query getUpdateQuery(E namedQuery,
                                                       T wfBean,
                                                       javax.persistence.EntityManager em)
                                                throws JPAExecutorException
Throws:
JPAExecutorException

getSelectQuery

public abstract javax.persistence.Query getSelectQuery(E namedQuery,
                                                       javax.persistence.EntityManager em,
                                                       Object... parameters)
                                                throws JPAExecutorException
Throws:
JPAExecutorException

getSingleValue

public abstract Object getSingleValue(E namedQuery,
                                      Object... parameters)
                               throws JPAExecutorException
Throws:
JPAExecutorException


Copyright © 2015 Apache Software Foundation. All Rights Reserved.