Class BaseAppSettings

  • Direct Known Subclasses:
    AppSettings

    public abstract class BaseAppSettings
    extends Object
    Base class for application settings.
    • Constructor Detail

      • BaseAppSettings

        public BaseAppSettings​(Properties properties)
    • Method Detail

      • getDBType

        public DBType getDBType()
        Returns database type on the basis of JDBC connection string.
        Returns:
      • getLogger

        public Logger getLogger()
        Returns logger that can be used to log messages.
        Returns:
      • getSkipDBUpdate

        public boolean getSkipDBUpdate()
        Returns parameter value "Skip database update phase".
        Returns:
      • getForceDBInitialize

        public boolean getForceDBInitialize()
        Returns parameter value "Force non-empty database initialization".
        Returns:
      • getLogLogins

        public boolean getLogLogins()
        Returns parameter value "logging of log-ins and log-outs of users".
        Returns:
      • getScorePath

        public String getScorePath()
        Returns parameter value "score.path".
        Returns:
      • getDatabaseConnection

        public String getDatabaseConnection()
        Returns parameter value "JDBC connection string".
        Returns:
      • isH2ReferentialIntegrity

        public boolean isH2ReferentialIntegrity()
        Returns flag of support for unique constraint (if it is switched off then it is possible to insert records without referencing mandatory external records).
        Returns:
      • getDBLogin

        public String getDBLogin()
        Returns login for the database.
        Returns:
      • getDBPassword

        public String getDBPassword()
        Returns password for the database.
        Returns:
      • getSetupProperties

        public Properties getSetupProperties()
        Returns properties that were used to initialize Celesta. Attention: it makes sense using this object as read only, dynamic change of these properties doesn't lead to anything.
        Returns:
      • getH2Port

        public int getH2Port()
        Returns port of H2 DB.
        Returns: