Class DatabaseUtils


  • public class DatabaseUtils
    extends Object
    • Constructor Detail

      • DatabaseUtils

        public DatabaseUtils()
    • Method Detail

      • getSavedConnectionsSize

        public static int getSavedConnectionsSize()
      • getSavedConnection

        public static DatabaseConfiguration getSavedConnection​(String connectionName)
        GET one saved connection
        Parameters:
        connectionName -
        Returns:
      • encrypt

        public static String encrypt​(String plainPassword)
      • decrypt

        public static String decrypt​(String encodedPassword)
      • addToSavedConnections

        public static void addToSavedConnections​(DatabaseConfiguration dbConfig)
        ADD to saved connections
        Parameters:
        dbConfig -
      • deleteAllSavedConnections

        public static void deleteAllSavedConnections()
      • deleteSavedConnections

        public static void deleteSavedConnections​(String connectionName)
        DELETE saved connections
        Parameters:
        connectionName -
      • editSavedConnections

        public static void editSavedConnections​(DatabaseConfiguration jdbcConfig)
        EDIT saved connections
        Parameters:
        jdbcConfig -
      • getExtensionFilePath

        public static String getExtensionFilePath()
      • getExtensionFolder

        public static String getExtensionFolder()
      • getDbColumnType

        public static DatabaseColumnType getDbColumnType​(int dbColumnType)