net.agmodel.dbUtility
Class JDBCPostgres

java.lang.Object
  extended bynet.agmodel.dbUtility.InternetHost
      extended bynet.agmodel.dbUtility.JDBC
          extended bynet.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

Constructor Summary
JDBCPostgres(String host, int port, String databaseName)
           
 
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.
 
Methods inherited from class net.agmodel.dbUtility.JDBC
checkForDatabaseUpdates, connectForData, connectForMetaData, disconnectFromData, disconnectFromMetaData, getConn
 
Methods inherited from class net.agmodel.dbUtility.InternetHost
getHost, getPort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCPostgres

public JDBCPostgres(String host,
                    int port,
                    String databaseName)
Method Detail

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.