Package de.xima.fc.db

Class DatabasePropertiesHelper


  • public class DatabasePropertiesHelper
    extends Object
    • Constructor Detail

      • DatabasePropertiesHelper

        public DatabasePropertiesHelper()
    • Method Detail

      • migrateProperties

        public static void migrateProperties()
      • storeEncryptionData

        public static void storeEncryptionData​(boolean formDataEncActive,
                                               String password,
                                               EDBEncryptionAlgorithm algorithm)
                                        throws org.apache.commons.configuration2.ex.ConfigurationException
        Parameters:
        formDataEncActive - Flag, welches aussagt, ob die Formulardaten Verschluesselung aktiv ist
        password - the encryption password
        algorithm - the encryption algorihm
        Throws:
        org.apache.commons.configuration2.ex.ConfigurationException - if the configuration could not be saved
      • storeConnectionData

        public static void storeConnectionData​(DBConnectionData data)
                                        throws org.apache.commons.configuration2.ex.ConfigurationException
        Throws:
        org.apache.commons.configuration2.ex.ConfigurationException
      • storeConnectionData

        public static void storeConnectionData​(EDatenbankTyp dbms,
                                               String jdbcUrl,
                                               String loginName,
                                               String loginPwd,
                                               int maxConnections,
                                               int connectionTimeout)
                                        throws org.apache.commons.configuration2.ex.ConfigurationException
        Throws:
        org.apache.commons.configuration2.ex.ConfigurationException
      • getConnectionJdbcURL

        public static String getConnectionJdbcURL()
      • getConnectionLoginName

        public static String getConnectionLoginName()
      • getConnectionLoginPassword

        public static String getConnectionLoginPassword()
      • getConnectionMaxCount

        public static int getConnectionMaxCount()
      • getConnectionTimeout

        public static int getConnectionTimeout()
      • getConnectionDBMSType

        public static EDatenbankTyp getConnectionDBMSType()
      • getEncryptionPassword

        public static String getEncryptionPassword()
      • isFormDataEncryptionActive

        public static boolean isFormDataEncryptionActive()
      • isProjectInboxEncryptionActive

        public static boolean isProjectInboxEncryptionActive()