org.gcube.portlets.user.tdw.datasource.jdbc
Class SimpleJDBCDataSourceFactory

java.lang.Object
  extended by org.gcube.portlets.user.tdw.datasource.jdbc.SimpleJDBCDataSourceFactory
All Implemented Interfaces:
org.gcube.portlets.user.tdw.server.datasource.DataSourceFactory

public class SimpleJDBCDataSourceFactory
extends Object
implements org.gcube.portlets.user.tdw.server.datasource.DataSourceFactory

Author:
"Giancarlo Panichi" g.panichi@isti.cnr.it

Field Summary
protected  Map<String,JDBCCredential> credentials
           
protected  org.slf4j.Logger logger
           
 
Constructor Summary
SimpleJDBCDataSourceFactory()
           
 
Method Summary
 void closeDataSource(org.gcube.application.framework.core.session.ASLSession session, org.gcube.portlets.user.tdw.server.datasource.DataSource dataSource)
          
 Collection<JDBCCredential> getCredentials()
           
 String getId()
          
 org.gcube.portlets.user.tdw.server.datasource.DataSource openDataSource(org.gcube.application.framework.core.session.ASLSession session, org.gcube.portlets.user.tdw.shared.model.TableId tableId)
          
 String registerTable(String jdbcdUrl, String tableName)
           
 String registerTable(String id, String jdbcdUrl, String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.slf4j.Logger logger

credentials

protected Map<String,JDBCCredential> credentials
Constructor Detail

SimpleJDBCDataSourceFactory

public SimpleJDBCDataSourceFactory()
Method Detail

registerTable

public String registerTable(String id,
                            String jdbcdUrl,
                            String tableName)

registerTable

public String registerTable(String jdbcdUrl,
                            String tableName)

getCredentials

public Collection<JDBCCredential> getCredentials()

getId

public String getId()

Specified by:
getId in interface org.gcube.portlets.user.tdw.server.datasource.DataSourceFactory

openDataSource

public org.gcube.portlets.user.tdw.server.datasource.DataSource openDataSource(org.gcube.application.framework.core.session.ASLSession session,
                                                                               org.gcube.portlets.user.tdw.shared.model.TableId tableId)
                                                                        throws org.gcube.portlets.user.tdw.server.datasource.DataSourceException

Specified by:
openDataSource in interface org.gcube.portlets.user.tdw.server.datasource.DataSourceFactory
Throws:
org.gcube.portlets.user.tdw.server.datasource.DataSourceException

closeDataSource

public void closeDataSource(org.gcube.application.framework.core.session.ASLSession session,
                            org.gcube.portlets.user.tdw.server.datasource.DataSource dataSource)
                     throws org.gcube.portlets.user.tdw.server.datasource.DataSourceException

Specified by:
closeDataSource in interface org.gcube.portlets.user.tdw.server.datasource.DataSourceFactory
Throws:
org.gcube.portlets.user.tdw.server.datasource.DataSourceException


Copyright © 2013. All Rights Reserved.