org.gcube.portlets.user.tdw.server.datasource
Interface DataSourceFactory

All Known Implementing Classes:
SimpleJDBCDataSourceFactory

public interface DataSourceFactory

Generator of DataSource

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Method Summary
 void closeDataSource(org.gcube.application.framework.core.session.ASLSession session, DataSource dataSource)
          Close the specified DataSource releasing allocated resources.
 String getId()
          The DataSourceFactory unique id.
 DataSource openDataSource(org.gcube.application.framework.core.session.ASLSession session, TableId id)
          Open the specified datasource DataSource.
 

Method Detail

getId

String getId()
The DataSourceFactory unique id.

Returns:

openDataSource

DataSource openDataSource(org.gcube.application.framework.core.session.ASLSession session,
                          TableId id)
                          throws DataSourceException
Open the specified datasource DataSource.

Parameters:
id - the datasource id.
Returns:
the retrieved datasource.
Throws:
DataSourceException - if an error occurs retrieving the datasource.

closeDataSource

void closeDataSource(org.gcube.application.framework.core.session.ASLSession session,
                     DataSource dataSource)
                     throws DataSourceException
Close the specified DataSource releasing allocated resources.

Parameters:
session -
dataSource -
Throws:
DataSourceException


Copyright © 2013. All Rights Reserved.