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) |
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.ObjectMarshallingStrategy
public void write(ObjectOutputStream os, Object object) throws IOException
write
in interface org.kie.api.marshalling.ObjectMarshallingStrategy
IOException
public Object read(ObjectInputStream is) throws IOException, ClassNotFoundException
read
in interface org.kie.api.marshalling.ObjectMarshallingStrategy
IOException
ClassNotFoundException
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object) throws IOException
marshal
in interface org.kie.api.marshalling.ObjectMarshallingStrategy
IOException
public 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.ObjectMarshallingStrategy
IOException
ClassNotFoundException
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
createContext
in interface org.kie.api.marshalling.ObjectMarshallingStrategy
public static Serializable getClassIdValue(Object o)
public void onStart(TransactionManager txm)
onStart
in interface TransactionAware
public void onEnd(TransactionManager txm)
onEnd
in interface TransactionAware
protected javax.persistence.EntityManager getEntityManager()
public void close()
close
in interface org.kie.internal.runtime.Cacheable
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.