| org.mule.module.jpa.command.JPACommand |
Known Indirect Subclasses
| Detach |
Perform a JPA detach operation
|
| Find |
Perform a JPA find operation
|
| Merge |
Perform a JPA merge operation
|
| Persist |
Perform a JPA persist operation
|
| Query |
Perform a JPA query operation
|
|
Class Overview
Abstraction around the EntityManager method's exposed in this module.
Summary
| Public Methods |
|
abstract
Object
|
execute(EntityManager entityManager, Object payload, Map<String, Object> parameters, Boolean flush)
Performs the JPA operations exposed by implementing classes (ie, persist, merge, etc.)
|
Public Methods
public
abstract
Object
execute
(EntityManager entityManager, Object payload, Map<String, Object> parameters, Boolean flush)
Performs the JPA operations exposed by implementing classes (ie, persist, merge, etc.)
Parameters
| entityManager
| The entityManager |
| payload
| The message's payload. Typically an instance of an entity class, but could also be a primary key
or query parameters depending on the operation. |
| parameters
| Additional parameters to pass to the request |
| flush
| If set to true then call flush() on the entityManager |
Returns
- the result of the JPA operation