| java.lang.Object net.sourceforge.squirrel_sql.client.gui.db.DataCache
DataCache | public class DataCache (Code) | | XML cache of JDBC drivers and aliases.
author: Colin Bell |
DataCache | public DataCache(SQLDriverManager driverMgr, File driversFile, File aliasesFile, URL dftDriversURL, IApplication app)(Code) | | Ctor. Loads drivers and aliases from the XML document.
Parameters: driverMgr - Manages JDBC drivers. Parameters: driversFile - File to load drivers from. Parameters: aliasesFile - File to load aliases from. Parameters: dftDriversURL - URL that the default rivers can be loaded from. Parameters: msgHandler - Message handler to report on errors in this object. throws: IllegalArgumentException - Thrown if null SQLDriverManager, driversFile,aliasesFile or dftDriversURL passed. |
containsDriver | public boolean containsDriver(ISQLDriver driver)(Code) | | Returns a boolean value indicating whether or not the specified driver
is contained in the cache.
Parameters: driver - the ISQLDriver to search for. true if the specified driver was found; false otherwise. |
findMissingDefaultDrivers | public ISQLDriver[] findMissingDefaultDrivers(URL url) throws IOException, XMLException(Code) | | Tests the currently cached driver definitions to see if any default
drivers are missing and returns an array of ISQLDrivers that represent
default drivers that were not found.
Parameters: url - the url of the file containing the default driver definitions. a list of default ISQLDriver instances if any or found; null isreturned otherwise. throws: IOException - throws: XMLException - |
getDriver | public ISQLDriver getDriver(IIdentifier id)(Code) | | Retrieve the ISQLDriver for the passed identifier.
Parameters: id - Identifier to retrieve driver for. the ISQLDriver for the passed identifier. throws: IllegalArgumentException - Thrown if null ISQLDriver passed. |
|
|