org.apache.oozie.executor.jpa
Class QueryExecutor<T,E extends Enum<E>>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryExecutor
protected QueryExecutor()
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.