org.apache.oozie.executor.jpa
Class CoordActionQueryExecutor

java.lang.Object
  extended by org.apache.oozie.executor.jpa.QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
      extended by org.apache.oozie.executor.jpa.CoordActionQueryExecutor

public class CoordActionQueryExecutor
extends QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>

Query Executor that provides API to run query for Coordinator Action


Nested Class Summary
static class CoordActionQueryExecutor.CoordActionQuery
           
 
Method Summary
 int executeUpdate(CoordActionQueryExecutor.CoordActionQuery namedQuery, CoordinatorActionBean jobBean)
           
 CoordinatorActionBean get(CoordActionQueryExecutor.CoordActionQuery namedQuery, Object... parameters)
           
static QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery> getInstance()
           
 List<CoordinatorActionBean> getList(CoordActionQueryExecutor.CoordActionQuery namedQuery, Object... parameters)
           
 javax.persistence.Query getSelectQuery(CoordActionQueryExecutor.CoordActionQuery namedQuery, javax.persistence.EntityManager em, Object... parameters)
           
 Object getSingleValue(CoordActionQueryExecutor.CoordActionQuery namedQuery, Object... parameters)
           
 javax.persistence.Query getUpdateQuery(CoordActionQueryExecutor.CoordActionQuery namedQuery, CoordinatorActionBean actionBean, javax.persistence.EntityManager em)
           
 
Methods inherited from class org.apache.oozie.executor.jpa.QueryExecutor
insert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery> getInstance()

getUpdateQuery

public javax.persistence.Query getUpdateQuery(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                                              CoordinatorActionBean actionBean,
                                              javax.persistence.EntityManager em)
                                       throws JPAExecutorException
Specified by:
getUpdateQuery in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException

getSelectQuery

public javax.persistence.Query getSelectQuery(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                                              javax.persistence.EntityManager em,
                                              Object... parameters)
                                       throws JPAExecutorException
Specified by:
getSelectQuery in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException

executeUpdate

public int executeUpdate(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                         CoordinatorActionBean jobBean)
                  throws JPAExecutorException
Specified by:
executeUpdate in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException

get

public CoordinatorActionBean get(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                                 Object... parameters)
                          throws JPAExecutorException
Specified by:
get in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException

getList

public List<CoordinatorActionBean> getList(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                                           Object... parameters)
                                    throws JPAExecutorException
Specified by:
getList in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException

getSingleValue

public Object getSingleValue(CoordActionQueryExecutor.CoordActionQuery namedQuery,
                             Object... parameters)
                      throws JPAExecutorException
Specified by:
getSingleValue in class QueryExecutor<CoordinatorActionBean,CoordActionQueryExecutor.CoordActionQuery>
Throws:
JPAExecutorException


Copyright © 2015 Apache Software Foundation. All Rights Reserved.