Class AbstractSetupDatabaseAction

    • Constructor Detail

      • AbstractSetupDatabaseAction

        public AbstractSetupDatabaseAction()
    • Method Detail

      • getHibernateConfig

        public com.atlassian.config.db.HibernateConfig getHibernateConfig()
      • setHibernateConfig

        public void setHibernateConfig​(com.atlassian.config.db.HibernateConfig hibernateConfig)
      • setDatabaseVerifier

        public void setDatabaseVerifier​(DatabaseVerifier databaseVerifier)
      • getDatabase

        public String getDatabase()
      • setDatabase

        public void setDatabase​(String database)
      • checkDriver

        protected boolean checkDriver​(com.atlassian.config.db.DatabaseDetails dbDetails)
        Checks if the given database driver can be resolved in classpath.
        Parameters:
        dbDetails - database detail
        Returns:
        whether the driver can be found
      • checkDatabaseURL

        protected boolean checkDatabaseURL​(com.atlassian.config.db.DatabaseDetails dbDetails)
        Validate prefix of Database URL.
        Parameters:
        dbDetails - database detail
        Returns:
        whether DB URL can be valid
      • findDatasourceNames

        protected List<String> findDatasourceNames()
        Find the configured jndi datasources
        Returns:
        a list of datasource names
      • convertBootstrapException

        protected DatabaseTestResult convertBootstrapException​(String databaseType,
                                                               com.atlassian.config.bootstrap.BootstrapException e)