public class JPAPlaceholderResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy, TransactionAware, org.kie.internal.runtime.Cacheable
| Constructor and Description |
|---|
JPAPlaceholderResolverStrategy(javax.persistence.EntityManagerFactory emf) |
JPAPlaceholderResolverStrategy(org.kie.api.runtime.Environment env) |
JPAPlaceholderResolverStrategy(String persistenceUnit,
ClassLoader cl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object object) |
protected void |
addMapping(Object entityId,
String entityType,
Object entity,
ObjectOutputStream context,
javax.persistence.EntityManager em) |
void |
close() |
org.kie.api.marshalling.ObjectMarshallingStrategy.Context |
createContext() |
static Serializable |
getClassIdValue(Object o) |
protected javax.persistence.EntityManager |
getEntityManager() |
byte[] |
marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectOutputStream os,
Object object) |
void |
onEnd(TransactionManager txm) |
void |
onStart(TransactionManager txm) |
Object |
read(ObjectInputStream is) |
Object |
unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectInputStream ois,
byte[] object,
ClassLoader classloader) |
void |
write(ObjectOutputStream os,
Object object) |
public JPAPlaceholderResolverStrategy(org.kie.api.runtime.Environment env)
public JPAPlaceholderResolverStrategy(javax.persistence.EntityManagerFactory emf)
public JPAPlaceholderResolverStrategy(String persistenceUnit, ClassLoader cl)
public boolean accept(Object object)
accept in interface org.kie.api.marshalling.ObjectMarshallingStrategypublic void write(ObjectOutputStream os, Object object) throws IOException
write in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionpublic Object read(ObjectInputStream is) throws IOException, ClassNotFoundException
read in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionClassNotFoundExceptionpublic byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectOutputStream os,
Object object)
throws IOException
marshal in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionpublic Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream ois, byte[] object, ClassLoader classloader) throws IOException, ClassNotFoundException
unmarshal in interface org.kie.api.marshalling.ObjectMarshallingStrategyIOExceptionClassNotFoundExceptionpublic org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategypublic static Serializable getClassIdValue(Object o)
public void onStart(TransactionManager txm)
onStart in interface TransactionAwarepublic void onEnd(TransactionManager txm)
onEnd in interface TransactionAwareprotected javax.persistence.EntityManager getEntityManager()
public void close()
close in interface org.kie.internal.runtime.Cacheableprotected void addMapping(Object entityId, String entityType, Object entity, ObjectOutputStream context, javax.persistence.EntityManager em)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.