org.apache.oozie.executor.jpa
Class CoordJobQueryExecutor
java.lang.Object
org.apache.oozie.executor.jpa.QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
org.apache.oozie.executor.jpa.CoordJobQueryExecutor
public class CoordJobQueryExecutor
- extends QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
Query Executor that provides API to run query for Coordinator Job
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CoordJobQueryExecutor getInstance()
getUpdateQuery
public javax.persistence.Query getUpdateQuery(CoordJobQueryExecutor.CoordJobQuery namedQuery,
CoordinatorJobBean cjBean,
javax.persistence.EntityManager em)
throws JPAExecutorException
- Specified by:
getUpdateQuery in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
getSelectQuery
public javax.persistence.Query getSelectQuery(CoordJobQueryExecutor.CoordJobQuery namedQuery,
javax.persistence.EntityManager em,
Object... parameters)
throws JPAExecutorException
- Specified by:
getSelectQuery in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
executeUpdate
public int executeUpdate(CoordJobQueryExecutor.CoordJobQuery namedQuery,
CoordinatorJobBean jobBean)
throws JPAExecutorException
- Specified by:
executeUpdate in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
get
public CoordinatorJobBean get(CoordJobQueryExecutor.CoordJobQuery namedQuery,
Object... parameters)
throws JPAExecutorException
- Specified by:
get in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
getList
public List<CoordinatorJobBean> getList(CoordJobQueryExecutor.CoordJobQuery namedQuery,
Object... parameters)
throws JPAExecutorException
- Specified by:
getList in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
getSingleValue
public Object getSingleValue(CoordJobQueryExecutor.CoordJobQuery namedQuery,
Object... parameters)
throws JPAExecutorException
- Specified by:
getSingleValue in class QueryExecutor<CoordinatorJobBean,CoordJobQueryExecutor.CoordJobQuery>
- Throws:
JPAExecutorException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.