Package org.opencastproject.db
Class DBSessionFactoryImpl
java.lang.Object
org.opencastproject.db.DBSessionFactoryImpl
- All Implemented Interfaces:
DBSessionFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) createSession(javax.persistence.EntityManagerFactory emf) Creates a new DBSession.createSession(javax.persistence.EntityManagerFactory emf, int maxTransactionRetries) intvoidmodified(org.osgi.service.component.ComponentContext cc) voidsetMaxTransactionRetries(int maxTransactionRetries)
-
Field Details
-
MAX_TRANSACTION_RETRIES_PROPERTY
- See Also:
-
DEFAULT_MAX_TRANSACTION_RETRIES
public static final int DEFAULT_MAX_TRANSACTION_RETRIES- See Also:
-
-
Constructor Details
-
DBSessionFactoryImpl
public DBSessionFactoryImpl()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) throws org.osgi.service.component.ComponentException - Throws:
org.osgi.service.component.ComponentException
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) -
createSession
Description copied from interface:DBSessionFactoryCreates a new DBSession.- Specified by:
createSessionin interfaceDBSessionFactory- Parameters:
emf- EntityManagerFactory that the new DBSession should use.- Returns:
- A new DBSession.
-
createSession
public DBSession createSession(javax.persistence.EntityManagerFactory emf, int maxTransactionRetries) -
getMaxTransactionRetries
public int getMaxTransactionRetries() -
setMaxTransactionRetries
public void setMaxTransactionRetries(int maxTransactionRetries)
-