| java.lang.Object org.geotools.data.hsql.HsqlConnectionFactory
HsqlConnectionFactory | public class HsqlConnectionFactory (Code) | | This creates connections for the HSQL datasource to make
its transactions. To create a HsqlDataStore, create a
HsqlConnectionFactory, and pass that connection factory
to the HsqlDataStore constructor.
author: Amr Alam, Refractions Research |
HsqlConnectionFactory | public HsqlConnectionFactory(String dbFileName, String user, String password)(Code) | | Creates a new HsqlConnectionFactory object from a DB filename, a username
and a password.
Parameters: dbFileName - the HSQL database filename Parameters: user - the HSQL database username Parameters: password - the HSQL database password for user |
getConnection | public Connection getConnection(String username, String password) throws SQLException(Code) | | Creates and returns a HSQL Connection based upon the username
and password parameters passed to this
method. This is shorthand for the following two calls:
connPool.setLogin(username, password);
connPool.setDBFileName(filename);
connPool.getConnection();
Parameters: username - the HSQL username Parameters: password - the password corresponding to username an HSQL Connection object throws: SQLException - if an error occurs connecting to the HSQL database |
getConnection | public Connection getConnection(String dbFileName, String user, String password) throws SQLException(Code) | | Creates and returns a HSQL Connection based upon the username
and password parameters passed to this
method. This is shorthand for the following two calls:
connPool.setLogin(username, password);
connPool.setDBFileName(filename);
connPool.getConnection();
Parameters: dbFileName - the filename to use for the new database connection. Parameters: user - the name of the user connect to connect to the pgsql db. Parameters: password - the password for the user. the sql Connection object to the database. throws: SQLException - if the postgis sql driver could not be found |
getConnection | public Connection getConnection(String dbFileName, Properties props) throws SQLException(Code) | | Creates a database connection method to initialize a given database for
feature extraction with the given Properties.
Parameters: dbFileName - the filename to use for the new database connection. Parameters: props - Should contain at a minimum the user and password. Additionalproperties, such as charSet, can also be added. the sql Connection object to the database. throws: SQLException - if the postgis sql driver could not be found |
setCharSet | public void setCharSet(String charSet)(Code) | | Sets a different character set for the hsql driver to use.
Parameters: charSet - the string of a valid charset name. |
setDBFileName | public void setDBFileName(String dbFileName)(Code) | | Sets the HSQL database filename.
Parameters: dbFileName - the filename to use for this database |
setLogin | public void setLogin(String username, String password)(Code) | | Sets the HSQL database login credentials.
Parameters: username - the username Parameters: password - the password |
|
|