org.jboss.envers
Class VersionsReaderFactory
java.lang.Object
org.jboss.envers.VersionsReaderFactory
Deprecated.
public class VersionsReaderFactory
- extends Object
- Author:
- Adam Warski (adam at warski dot org)
- See Also:
AuditReaderFactory
Method Summary |
static VersionsReader |
get(EntityManager entityManager)
Deprecated. Create a versions reader associated with an open entity manager. |
static VersionsReader |
get(org.hibernate.Session session)
Deprecated. Create a versions reader associated with an open session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static VersionsReader get(org.hibernate.Session session)
throws VersionsException
- Deprecated.
- Create a versions reader associated with an open session.
WARNING: Using Envers with Hibernate (not with Hibernate Entity Manager/JPA) is experimental,
if possible, use
get(javax.persistence.EntityManager)
.
- Parameters:
session
- An open session.
- Returns:
- A versions reader associated with the given sesison. It shouldn't be used
after the session is closed.
- Throws:
AuditException
- When the given required listeners aren't installed.
VersionsException
get
public static VersionsReader get(EntityManager entityManager)
throws VersionsException
- Deprecated.
- Create a versions reader associated with an open entity manager.
- Parameters:
entityManager
- An open entity manager.
- Returns:
- A versions reader associated with the given entity manager. It shouldn't be used
after the entity manager is closed.
- Throws:
AuditException
- When the given entity manager is not based on Hibernate, or if the required
listeners aren't installed.
VersionsException
Copyright © 2008 Hibernate.org. All Rights Reserved.