net.agmodel.dbUtility
Class JDBCPostgres
java.lang.Object
net.agmodel.dbUtility.InternetHost
net.agmodel.dbUtility.JDBC
net.agmodel.dbUtility.JDBCPostgres
- All Implemented Interfaces:
- AccessMechanism, DBAccessMechanism
- Direct Known Subclasses:
- FieldServer, FilePerStationPerYear2, GAEMNHTML, Hitsujigaoka, Kanagawa, Mamedas, PrefMetDB, SASA, SNUWDMS, WakayamaRainDB
- public abstract class JDBCPostgres
- extends JDBC
Handles the common elements of access to PostgreSQL databases via JDBC
- Author:
- Matthew Laurenson
|
Method Summary |
boolean |
connect(String username,
String password)
Overrides the default net.agmodel.dbUtility in order to set the datestyle used
in subsequent operations.
Seems like the Postgres JDBC driver requires datestyle='ISO' for date/time operations. |
JDBCPostgres
public JDBCPostgres(String host,
int port,
String databaseName)
connect
public boolean connect(String username,
String password)
throws ConnectionException
- Overrides the default
net.agmodel.dbUtility in order to set the datestyle used
in subsequent operations.
Seems like the Postgres JDBC driver requires datestyle='ISO' for date/time operations.
- Overrides:
connect in class JDBC
- Throws:
ConnectionException
Copyright (C) NARC 2001 All Rights Reserved.