Package ru.curs.celesta
Class BaseAppSettings
- java.lang.Object
-
- ru.curs.celesta.BaseAppSettings
-
- Direct Known Subclasses:
AppSettings
public abstract class BaseAppSettings extends Object
Base class for application settings.
-
-
Field Summary
Fields Modifier and Type Field Description static String
H2_IN_MEMORY_URL
In memory H2 DB connection url.
-
Constructor Summary
Constructors Constructor Description BaseAppSettings(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatabaseConnection()
Returns parameter value "JDBC connection string".String
getDBLogin()
Returns login for the database.String
getDBPassword()
Returns password for the database.DBType
getDBType()
Returns database type on the basis of JDBC connection string.boolean
getForceDBInitialize()
Returns parameter value "Force non-empty database initialization".int
getH2Port()
Returns port of H2 DB.Logger
getLogger()
Returns logger that can be used to log messages.boolean
getLogLogins()
Returns parameter value "logging of log-ins and log-outs of users".String
getScorePath()
Returns parameter value "score.path".Properties
getSetupProperties()
Returns properties that were used to initialize Celesta.boolean
getSkipDBUpdate()
Returns parameter value "Skip database update phase".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).
-
-
-
Field Detail
-
H2_IN_MEMORY_URL
public static final String H2_IN_MEMORY_URL
In memory H2 DB connection url.- See Also:
- Constant Field Values
-
-
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:
-
-