getProfiles() Returns a Map with the current profiles.
The key to the map is the profile name, the value is the actual profile
(i.e.
public boolean
isActive(WbConnection aConn) Check if there is another connection active with the same URL.
This is used when the connection to an embedded database that
needs a
workbench.db.shutdown.DbShutdownHook is called.
true if there is another active connection.
This is called from the ProfileListModel when a new profile is added.
The caller needs to make sure that the status is set to new if that
profile was just created.
Remove all defined connection profiles.
This does not make sure that all connections are closed!
This method is used in Unit tests to setup a new set of profiles.
Create a new connection. The profile to be used
is searched by the given profile key
Parameters: def - the profile to be used Parameters: anId - the id to be assigned to the connection a new Connection throws: java.lang.ClassNotFoundException - throws: java.sql.SQLException - throws: java.lang.Exception -
Find a connection profile identified by the given key.
Parameters: key - the key of the profile a connection profile with that name or null if none was found.
Check if there is another connection active with the same URL.
This is used when the connection to an embedded database that
needs a
workbench.db.shutdown.DbShutdownHook is called.
true if there is another active connection.
Save the connectioin profiles to an external file.
This will also reset the changed flag for any modified or new
profiles. The name of the file defaults to WbProfiles.xml, but
can be defined in the configuration properties.
See Also:workbench.resource.Settings.getProfileStorage See Also:WbPersistence.writeObject(Object)