List of usage examples for org.hibernate Session interface-usage
From source file org.fabric3.jpa.runtime.proxy.MultiThreadedSessionProxy.java
/**
* An Hibernate Session proxy that delegates to a backing instance. This proxy is injected on composite-scoped components where more than one thread may be
* accessing the proxy at a time.
* <p/>
* If the persistence context is transaction-scoped (as defined by JPA), the proxy will attempt to retrieve the Session instance associated with the current
* transaction context from the EntityManagerService.
From source file org.fabric3.jpa.runtime.proxy.StatefulSessionProxy.java
/**
* An Hibernate Session proxy that delegates to a cached instance. This proxy is injected on stateless-scoped components. This proxy is <strong>not</strong>
* safe to inject on composite-scoped implementations.
* <p/>
* If the persistence context is transaction-scoped (as defined by JPA), the proxy will attempt to retrieve the Session instance associated with the current
* transaction context from the EntityManagerService. The proxy will cache the Session instance until the transaction completes (or aborts).
From source file org.grayleaves.utility.MockHibernateSession.java
public class MockHibernateSession implements Session { private static final long serialVersionUID = 1L; private List<HibernateRetrievable> list; @SuppressWarnings("rawtypes") private Map map;
From source file org.jboss.ejb3.entity.ExtendedHibernateSession.java
/** * Hibernate Session with a managed extended persistence context. * * @author <a href="mailto:bill@jboss.org">Bill Burke</a> */ public class ExtendedHibernateSession implements Session, ExtendedPersistenceContext, Serializable {
From source file org.jboss.ejb3.entity.TransactionScopedHibernateSession.java
/** * @author <a href="mailto:bill@jboss.org">Bill Burke</a> * @version $Revision: 57207 $ */ public class TransactionScopedHibernateSession implements Session, Externalizable { private transient ManagedEntityManagerFactory factory;
From source file org.nanocontainer.hibernate3.SessionDelegator.java
/**
* Abstract base class for session delegators. delegates all calls to session obtained by
* implementing class. error handling is also there. All methods are just delegations to hibernate
* session.
*
* @author Jose Peleteiro <juzepeleteiro@intelli.biz>
From source file org.nanocontainer.persistence.hibernate.annotations.SessionComponent.java
/**
* Session component with failover behaviour in case of hibernate exception. Old session is disposed
* and new one is obtained transparently. Session creation is done lazily.
*
* @author Jose Peleteiro <juzepeleteiro@intelli.biz>
* @version $Id: SessionComponent.java 2510 2005-09-22 10:11:19Z mauro $
From source file org.nanocontainer.persistence.hibernate.annotations.SessionDelegator.java
/**
* Abstract base class for session delegators. delegates all calls to session obtained by implementing class. error
* handling is also there. All methods are just delegations to hibernate session.
*
* @version $Id: SessionDelegator.java 2835 2005-12-23 00:50:13Z juze $
*/
From source file org.nanocontainer.persistence.hibernate.SessionComponent.java
/**
* Session component with failover behaviour in case of hibernate exception. Old session is disposed
* and new one is obtained transparently. Session creation is done lazily.
*
* @author Jose Peleteiro <juzepeleteiro@intelli.biz>
* @version $Id: SessionComponent.java 2510 2005-09-22 10:11:19Z mauro $
From source file org.nanocontainer.persistence.hibernate.SessionDelegator.java
/**
* Abstract base class for session delegators. delegates all calls to session obtained by implementing class. error
* handling is also there. All methods are just delegations to hibernate session.
*
* @version $Id: SessionDelegator.java 2835 2005-12-23 00:50:13Z juze $
*/