Class DatabaseManager

    • Constructor Detail

      • DatabaseManager

        public DatabaseManager()
    • Method Detail

      • doWithCyclosInstanceLock

        public void doWithCyclosInstanceLock​(Runnable action)
        Prevents 2 Cyclos instances (even in a cluster) to execute the given action concurrently
      • initialize

        @PostConstruct
        public void initialize()
      • manageDatabase

        public void manageDatabase​(javax.persistence.EntityManagerFactory emf)
                            throws SQLException
        Apply the database management checks
        Throws:
        SQLException