Class PersistenceService

java.lang.Object
org.jenkinsci.plugins.database.jpa.PersistenceService

@Extension public class PersistenceService extends Object
Creates EntityManagerFactory.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • PersistenceService

      public PersistenceService()
  • Method Details

    • createEntityManagerFactory

      public javax.persistence.EntityManagerFactory createEntityManagerFactory(DataSource dataSource, List<Class> classes)
    • getGlobalEntityManagerFactory

      @CheckForNull public javax.persistence.EntityManagerFactory getGlobalEntityManagerFactory() throws SQLException, IOException
      Obtains a fully configured EntityManagerFactory for connecting to global database.
      Returns:
      null if there's no global database configured yet.
      Throws:
      SQLException
      IOException