public class EntityManagerInvocationHandler extends Watcher<javax.persistence.EntityManager> implements EntityManagerSupport
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityManagerInvocationHandler.QueryInvocationHandler |
static class |
EntityManagerInvocationHandler.TransactionInvocationHandler |
| Constructor and Description |
|---|
EntityManagerInvocationHandler(net.e6tech.elements.common.resources.Resources resources,
javax.persistence.EntityManager em,
java.lang.String alias,
EntityManagerProvider provider,
EntityManagerConfig config,
InvocationListener<javax.persistence.EntityManager> entityManagerListener,
InvocationListener<javax.persistence.Query> queryListener) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
doInvoke(java.lang.Class callingClass,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
java.lang.Object |
get(java.lang.String key) |
java.lang.String |
getAlias() |
EntityManagerConfig |
getConfig() |
java.util.Map<java.lang.String,java.lang.Object> |
getContext() |
EntityManagerProvider |
getProvider() |
net.e6tech.elements.common.resources.Resources |
getResources() |
long |
lockTimeout() |
EntityManagerExtension |
lockTimeout(long millis) |
void |
onAbort() |
void |
onClose() |
void |
onCommit() |
EntityManagerExtension |
put(java.lang.String key,
java.lang.Object value) |
EntityManagerExtension |
remove(java.lang.String key) |
java.lang.Object |
runExtension(java.lang.String extension,
java.lang.Object... args) |
addGracePeriod, clearGracePeriod, getGracePeriod, getIgnoreInitialLongTransactions, getLongTransaction, getTarget, initGracePeriod, invoke, isMonitorTransaction, log, setIgnoreInitialLongTransactions, setLongTransaction, setMonitorTransaction, setTargetpublic EntityManagerInvocationHandler(net.e6tech.elements.common.resources.Resources resources,
javax.persistence.EntityManager em,
java.lang.String alias,
EntityManagerProvider provider,
EntityManagerConfig config,
InvocationListener<javax.persistence.EntityManager> entityManagerListener,
InvocationListener<javax.persistence.Query> queryListener)
public java.lang.Object doInvoke(java.lang.Class callingClass,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
public net.e6tech.elements.common.resources.Resources getResources()
getResources in interface EntityManagerSupportpublic java.lang.String getAlias()
getAlias in interface EntityManagerSupportpublic EntityManagerProvider getProvider()
getProvider in interface EntityManagerSupportpublic EntityManagerConfig getConfig()
getConfig in interface EntityManagerSupportpublic EntityManagerExtension lockTimeout(long millis)
lockTimeout in interface EntityManagerSupportpublic long lockTimeout()
lockTimeout in interface EntityManagerSupportpublic java.util.Map<java.lang.String,java.lang.Object> getContext()
getContext in interface EntityManagerSupportpublic java.lang.Object get(java.lang.String key)
get in interface EntityManagerSupportpublic EntityManagerExtension put(java.lang.String key, java.lang.Object value)
put in interface EntityManagerSupportpublic EntityManagerExtension remove(java.lang.String key)
remove in interface EntityManagerSupportpublic java.lang.Object runExtension(java.lang.String extension,
java.lang.Object... args)
runExtension in interface EntityManagerSupportpublic void onCommit()
public void onAbort()
public void onClose()