org.gcube.data.analysis.tabulardata.cube.data.connection
Class Tomcat7DatabaseConnectionProvider

java.lang.Object
  extended by org.gcube.data.analysis.tabulardata.cube.data.connection.Tomcat7DatabaseConnectionProvider
All Implemented Interfaces:
org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider

public class Tomcat7DatabaseConnectionProvider
extends Object
implements org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider


Constructor Summary
Tomcat7DatabaseConnectionProvider(org.gcube.common.database.DatabaseProvider databaseProvider, org.gcube.common.database.DatabaseEndpointIdentifier endpointIdentifier)
           
 
Method Summary
 Connection getConnection()
           
 org.gcube.common.database.endpoint.DatabaseEndpoint getDatabaseEndpoint()
           
 org.postgresql.PGConnection getPostgreSQLConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tomcat7DatabaseConnectionProvider

public Tomcat7DatabaseConnectionProvider(org.gcube.common.database.DatabaseProvider databaseProvider,
                                         org.gcube.common.database.DatabaseEndpointIdentifier endpointIdentifier)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider
Throws:
SQLException

getPostgreSQLConnection

public org.postgresql.PGConnection getPostgreSQLConnection()
                                                    throws SQLException
Specified by:
getPostgreSQLConnection in interface org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider
Throws:
SQLException

getDatabaseEndpoint

public org.gcube.common.database.endpoint.DatabaseEndpoint getDatabaseEndpoint()
Specified by:
getDatabaseEndpoint in interface org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider


Copyright © 2013. All Rights Reserved.