| java.lang.Object org.geotools.data.postgis.PostgisConnectionFactory
PostgisConnectionFactory | public class PostgisConnectionFactory (Code) | | Shell for JDBC transactions of all types. This creates connections for the
postgis datasource to make its transactions. To create a
PostgisDataSource, create a PostgisConnectionFactory, then call
getConnection(), and pass that connection to the PostgisDataSource
constructor.
author: Rob Hranac, Vision for New York author: Chris Holmes, TOPP version: $Id: PostgisConnectionFactory.java 27862 2007-11-12 19:51:19Z desruisseaux $DataSourceDataSourceUtilDataSourceFinder |
Method Summary | |
public void | free(ConnectionPool connectionPool) | public Connection | getConnection() Creates a database connection method to initialize a given database for
feature extraction using the set username and password. | public Connection | getConnection(String user, String password) Creates a database connection method to initialize a given database for
feature extraction with the user and password params.
Parameters: user - the name of the user connect to connect to the pgsql db. Parameters: password - the password for the user. | public Connection | getConnection(Properties props) Creates a database connection method to initialize a given database for
feature extraction with the given Properties.
Parameters: props - Should contain at a minimum the user and password.Additional properties, such as charSet, can also be added. | public ConnectionPool | getConnectionPool(String user, String pass) | public ConnectionPool | getConnectionPool() | public void | setLogin(String user, String password) Creates a database connection method to initialize a given database for
feature extraction. |
PostgisConnectionFactory | public PostgisConnectionFactory(String host, String port, String dbName)(Code) | | Constructor with all internal database driver classes, driver paths and
database types.
Parameters: host - The name or ip address of the computer where the postgisdatabase is installed. Parameters: port - The port to connect on; 5432 is generally the postgresdefault. Parameters: dbName - The name of the pgsql database that holds the tables ofthe feature types that will be used by PostgisDataSource. |
PostgisConnectionFactory | public PostgisConnectionFactory(String host, int port, String dbName)(Code) | | Constructor with all internal database driver classes, driver paths and
database types.
Parameters: host - The name or ip address of the computer where the postgisdatabase is installed. Parameters: port - The port to connect on; 5432 is generally the postgresdefault. Parameters: dbName - The name of the pgsql database that holds the tables ofthe feature types that will be used by PostgisDataSource. |
getConnection | public Connection getConnection() throws SQLException(Code) | | Creates a database connection method to initialize a given database for
feature extraction using the set username and password.
the sql Connection object to the database. throws: SQLException - if the postgres driver could not be found |
getConnection | public Connection getConnection(String user, String password) throws SQLException(Code) | | Creates a database connection method to initialize a given database for
feature extraction with the user and password params.
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(Properties props) throws SQLException(Code) | | Creates a database connection method to initialize a given database for
feature extraction with the given Properties.
Parameters: props - Should contain at a minimum the user and password.Additional properties, 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 |
setLogin | public void setLogin(String user, String password)(Code) | | Creates a database connection method to initialize a given database for
feature extraction.
Parameters: user - the name of the user connect to connect to the pgsql db. Parameters: password - the password for the user. |
|
|