public class SLACalculationInsertUpdateJPAExecutor extends Object implements JPAExecutor<String>
Constructor and Description |
---|
SLACalculationInsertUpdateJPAExecutor() |
SLACalculationInsertUpdateJPAExecutor(Collection<JsonBean> insertList,
Collection<JsonBean> updateList) |
Modifier and Type | Method and Description |
---|---|
String |
execute(javax.persistence.EntityManager em)
Method that encapsulates JPA access operations.
|
String |
getName()
Return the name of the JPA executor.
|
void |
setInsertList(Collection<JsonBean> insertList)
Sets the list of beans to insert
|
void |
setUpdateList(Collection<JsonBean> updateList)
Sets the list of beans to update
|
public SLACalculationInsertUpdateJPAExecutor(Collection<JsonBean> insertList, Collection<JsonBean> updateList)
public SLACalculationInsertUpdateJPAExecutor()
public void setInsertList(Collection<JsonBean> insertList)
insert
- public void setUpdateList(Collection<JsonBean> updateList)
update
- public String getName()
JPAExecutor
getName
in interface JPAExecutor<String>
public String execute(javax.persistence.EntityManager em) throws JPAExecutorException
JPAExecutor
EntityManager
.
Implementations should commit any transaction before ending, else the transaction will be rolled back.execute
in interface JPAExecutor<String>
em
- an active EntityManager
JPAExecutorException
- thrown if a jpa executor failedCopyright © 2015 Apache Software Foundation. All Rights Reserved.