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
JPAExecutorException
public void insert(JsonBean bean) throws JPAExecutorException
JPAExecutorException
public abstract T get(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorException
public abstract List<T> getList(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorException
public abstract javax.persistence.Query getUpdateQuery(E namedQuery, T wfBean, javax.persistence.EntityManager em) throws JPAExecutorException
JPAExecutorException
public abstract javax.persistence.Query getSelectQuery(E namedQuery, javax.persistence.EntityManager em, Object... parameters) throws JPAExecutorException
JPAExecutorException
public abstract Object getSingleValue(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorException
public abstract T getIfExist(E namedQuery, Object... parameters) throws JPAExecutorException
JPAExecutorException
Copyright © 2018 Apache Software Foundation. All rights reserved.