public class JPAPersistTransformer extends EntityManagerLookupAware implements org.apache.commons.collections.Transformer, Serializable
EntityManager.persist(Object) and EntityManager.merge(Object) operations.| Constructor and Description |
|---|
JPAPersistTransformer() |
JPAPersistTransformer(javax.persistence.EntityManager em) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDontPropagateExceptions()
Sometimes persist is a fail safe and we dont care about subsequent failures.
|
boolean |
isInsert()
If true, will insert
|
void |
setDontPropagateExceptions(boolean dontPropagateExceptions)
Sometimes persist is a fail safe and we dont care about subsequent failures.
|
void |
setInsert(boolean insert)
If true, will insert
|
Object |
transform(Object input) |
getEntityManager, getEntityManagerProvider, setEntityManager, setEntityManagerProvider, updateContextpublic JPAPersistTransformer()
public JPAPersistTransformer(javax.persistence.EntityManager em)
public Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic boolean isInsert()
public void setInsert(boolean insert)
public boolean isDontPropagateExceptions()
public void setDontPropagateExceptions(boolean dontPropagateExceptions)
Copyright © 2018. All rights reserved.