Class DBSessionFactoryImpl

java.lang.Object
org.opencastproject.db.DBSessionFactoryImpl
All Implemented Interfaces:
DBSessionFactory

public class DBSessionFactoryImpl extends Object implements DBSessionFactory
  • Field Details

    • MAX_TRANSACTION_RETRIES_PROPERTY

      public static final String 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

      public DBSession createSession(javax.persistence.EntityManagerFactory emf)
      Description copied from interface: DBSessionFactory
      Creates a new DBSession.
      Specified by:
      createSession in interface DBSessionFactory
      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)