public class BundleJobInfoGetJPAExecutor extends Object implements JPAExecutor<BundleJobInfo>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ORDER_BY |
Constructor and Description |
---|
BundleJobInfoGetJPAExecutor(Map<String,List<String>> filter,
int start,
int len)
The constructor for BundleJobInfoGetJPAExecutor
|
Modifier and Type | Method and Description |
---|---|
BundleJobInfo |
execute(javax.persistence.EntityManager em)
Method that encapsulates JPA access operations.
|
String |
getName()
Return the name of the JPA executor.
|
public static final String DEFAULT_ORDER_BY
public BundleJobInfoGetJPAExecutor(Map<String,List<String>> filter, int start, int len)
filter
- the filter stringstart
- start location for paginglen
- total length to getpublic String getName()
JPAExecutor
getName
in interface JPAExecutor<BundleJobInfo>
public BundleJobInfo execute(javax.persistence.EntityManager em) throws JPAExecutorException
JPAExecutor
Implementations should not close the received EntityManager
.
Implementations should commit any transaction before ending, else the transaction will be rolled back.
execute
in interface JPAExecutor<BundleJobInfo>
em
- an active EntityManager
JPAExecutorException
- thrown if a jpa executor failedCopyright © 2018 Apache Software Foundation. All rights reserved.