Minor Updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@92581 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-03 18:55:52 +00:00 committed by Giancarlo Panichi
parent 85ebff7715
commit 89bea68cc7
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ public class TabularDataXServiceImpl extends RemoteServiceServlet implements Tab
HttpSession httpSession = this.getThreadLocalRequest().getSession();
DataSourceX dataSource = SessionUtil.openDataSource(httpSession, tableId);
SessionUtil.setDataSource(httpSession, tdSessionId, dataSource);
logger.debug("Open table get table definition");
return dataSource.getTableDefinition();
}catch (Exception e) {
logger.error("An error occurred opening the specified table "+tableId+" in session "+tdSessionId, e);
@ -63,6 +64,7 @@ public class TabularDataXServiceImpl extends RemoteServiceServlet implements Tab
try{
DataSourceX dataSource = getDataSource(tdSessionId);
logger.debug("Service get current table definition");
return dataSource.getTableDefinition();
}catch (Exception e) {
logger.error("An error occurred retrieving the table definition", e);
@ -79,6 +81,7 @@ public class TabularDataXServiceImpl extends RemoteServiceServlet implements Tab
try{
HttpSession httpSession = this.getThreadLocalRequest().getSession();
DataSourceX dataSource = SessionUtil.openDataSource(httpSession,id);
logger.debug("Service get table definition");
return dataSource.getTableDefinition();
}catch (Exception e) {
logger.error("An error occurred getting the table definition", e);