All Downloads are FREE. Search and download functionalities are using the official Maven repository.

decodes.tsdb.PgDbmsSpecificFunctions Maven / Gradle / Ivy

Go to download

A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.

The newest version!
/**
 * $Id$
 * 
 * $Log$
 * Revision 1.1  2011/02/07 23:37:19  mmaloney
 * Implement DbmsSpecificFunctions class and concrete subclass for PG and Oracle.
 *
 */
package decodes.tsdb;

import opendcs.dai.DaiBase;
import opendcs.dao.DaoBase;

/**
 * Implements DBMS-specific functions for Postgres
 * @author mmaloney
 */
public class PgDbmsSpecificFunctions extends DbmsSpecificFunctions
{

	public PgDbmsSpecificFunctions(TimeSeriesDb theDb)
	{
		super(theDb);
	}

	@Override
	public void setSessionTimeZone(String tzName) 
		throws DbIoException
	{
		String q = "SET time zone " + theDb.sqlString(tzName);
		DaiBase dao = new DaoBase(theDb, "PgDbmsSpecificFunctions");
		try { dao.doModify(q); }
		finally { dao.close(); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy