Methods Summary |
---|
public void | clear()
getPersistenceContext().clear();
|
public void | close()
throw new IllegalStateException("It is illegal to close an injected EntityManager");
|
public boolean | contains(java.lang.Object entity)
return getPersistenceContext().contains(entity);
|
public javax.persistence.Query | createNamedQuery(java.lang.String name)
return getPersistenceContext().createNamedQuery(name);
|
public javax.persistence.Query | createNativeQuery(java.lang.String sqlString)
return getPersistenceContext().createNativeQuery(sqlString);
|
public javax.persistence.Query | createNativeQuery(java.lang.String sqlString, java.lang.Class resultClass)
return getPersistenceContext().createNativeQuery(sqlString, resultClass);
|
public javax.persistence.Query | createNativeQuery(java.lang.String sqlString, java.lang.String resultSetMapping)
return getPersistenceContext().createNativeQuery(sqlString, resultSetMapping);
|
public javax.persistence.Query | createQuery(java.lang.String ejbqlString)
return getPersistenceContext().createQuery(ejbqlString);
|
public T | find(java.lang.Class entityClass, java.lang.Object primaryKey)
return getPersistenceContext().find(entityClass, primaryKey);
|
public void | flush()
getPersistenceContext().flush();
|
public java.lang.Object | getDelegate()
return getPersistenceContext().getDelegate();
|
public javax.persistence.FlushModeType | getFlushMode()
return getPersistenceContext().getFlushMode();
|
public org.hibernate.Session | getHibernateSession()
if (getPersistenceContext() instanceof HibernateEntityManager)
{
return ((HibernateEntityManager) getPersistenceContext()).getSession();
}
throw new RuntimeException("ILLEGAL ACTION: Not a Hibernate persistence provider");
|
public javax.persistence.EntityManager | getPersistenceContext()
StatefulBeanContext beanContext = StatefulBeanContext.currentBean.get();
EntityManager persistenceContext = beanContext.getExtendedPersistenceContext(identity);
if (persistenceContext == null)
throw new RuntimeException("Unable to determine persistenceContext: " + identity
+ " in injected SFSB: " + beanContext.getContainer().getObjectName());
return persistenceContext;
|
public T | getReference(java.lang.Class entityClass, java.lang.Object primaryKey)
return getPersistenceContext().getReference(entityClass, primaryKey);
|
public javax.persistence.EntityTransaction | getTransaction()
return getPersistenceContext().getTransaction();
|
public boolean | isOpen()
return getPersistenceContext().isOpen();
|
public void | joinTransaction()
getPersistenceContext().joinTransaction();
|
public void | lock(java.lang.Object entity, javax.persistence.LockModeType lockMode)
getPersistenceContext().lock(entity, lockMode);
|
public T | merge(T entity)
return getPersistenceContext().merge(entity);
|
public void | persist(java.lang.Object entity)
getPersistenceContext().persist(entity);
|
public void | refresh(java.lang.Object entity)
getPersistenceContext().refresh(entity);
|
public void | remove(java.lang.Object entity)
getPersistenceContext().remove(entity);
|
public void | setFlushMode(javax.persistence.FlushModeType flushMode)
getPersistenceContext().setFlushMode(flushMode);
|