Top Description Fields Constructors Methods
org.hsqldb.util

pack-priv final Class ConnectionDialogCommon

extends Object
Class Inheritance
Imports
java.io.EOFException, .File, .FileInputStream, .FileOutputStream, .IOException, .ObjectInputStream, .ObjectOutputStream, java.util.Enumeration, .Hashtable

Common code in the Swing and AWT versions of ConnectionDialog New class based on Hypersonic original
Author
Thomas Mueller (Hypersonic SQL Group)
Since
1.7.0
Version
2.7.0

Field Summary

Modifier and TypeField and Description
private static String[][]
pack-priv static String
private static final String
private static String
private static File
private static final String[][]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
addToRecentConnectionSettings(Hashtable<K, V> settings, ConnectionSetting newSetting)

Adds the new settings name if it does not nexist, or overwrites the old one.

pack-priv static void
deleteRecentConnectionSettings()

Removes the recent connection settings file store.

pack-priv static String[][]
pack-priv static synchronized Hashtable<K, V>
public static void
private static void
storeRecentConnectionSettings(Hashtable<K, V>
ConnectionSetting[]
settings
)

Here's a non-secure method of storing recent connection settings.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connTypesback to summary
private static String[][] connTypes
emptySettingNameback to summary
pack-priv static String emptySettingName
fileNameback to summary
private static final String fileName
homedirback to summary
private static String homedir
recentSettingsback to summary
private static File recentSettings
sJDBCTypesback to summary
private static final String[][] sJDBCTypes

Constructor Detail

ConnectionDialogCommonback to summary
pack-priv ConnectionDialogCommon()

Method Detail

addToRecentConnectionSettingsback to summary
pack-priv static void addToRecentConnectionSettings(Hashtable<K, V> settings, ConnectionSetting newSetting)

Adds the new settings name if it does not nexist, or overwrites the old one.

deleteRecentConnectionSettingsback to summary
pack-priv static void deleteRecentConnectionSettings()

Removes the recent connection settings file store.

getTypesback to summary
pack-priv static String[][] getTypes()
loadRecentConnectionSettingsback to summary
pack-priv static synchronized Hashtable<K, V> loadRecentConnectionSettings() throws IOException
setHomeDirback to summary
public static void setHomeDir()
storeRecentConnectionSettingsback to summary
private static void storeRecentConnectionSettings(Hashtable<K, V> settings)

Here's a non-secure method of storing recent connection settings.

Parameters
settings:Hashtable<K, V>

ConnectionSetting[]