public abstract class QueryExecutor<T,E extends Enum<E>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
QueryExecutor() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
executeUpdate(E namedQuery,
T jobBean) |
abstract T |
get(E namedQuery,
Object... parameters) |
abstract T |
getIfExist(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) |
protected QueryExecutor()
public abstract int executeUpdate(E namedQuery, T jobBean) throws JPAExecutorException
JPAExecutorExceptionpublic void insert(JsonBean bean) throws JPAExecutorException
JPAExecutorExceptionpublic abstract T get(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorExceptionpublic abstract List<T> getList(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorExceptionpublic abstract javax.persistence.Query getUpdateQuery(E namedQuery, T wfBean, javax.persistence.EntityManager em) throws JPAExecutorException
JPAExecutorExceptionpublic abstract javax.persistence.Query getSelectQuery(E namedQuery, javax.persistence.EntityManager em, Object... parameters) throws JPAExecutorException
JPAExecutorExceptionpublic abstract Object getSingleValue(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorExceptionpublic abstract T getIfExist(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.