org.gcube.portlets.user.tdw.datasource.jdbc
Class SimpleJDBCDataSourceFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.slf4j.Logger logger
credentials
protected Map<String,JDBCCredential> credentials
SimpleJDBCDataSourceFactory
public SimpleJDBCDataSourceFactory()
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.