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:
parent
85ebff7715
commit
89bea68cc7
|
@ -48,6 +48,7 @@ public class TabularDataXServiceImpl extends RemoteServiceServlet implements Tab
|
||||||
HttpSession httpSession = this.getThreadLocalRequest().getSession();
|
HttpSession httpSession = this.getThreadLocalRequest().getSession();
|
||||||
DataSourceX dataSource = SessionUtil.openDataSource(httpSession, tableId);
|
DataSourceX dataSource = SessionUtil.openDataSource(httpSession, tableId);
|
||||||
SessionUtil.setDataSource(httpSession, tdSessionId, dataSource);
|
SessionUtil.setDataSource(httpSession, tdSessionId, dataSource);
|
||||||
|
logger.debug("Open table get table definition");
|
||||||
return dataSource.getTableDefinition();
|
return dataSource.getTableDefinition();
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
logger.error("An error occurred opening the specified table "+tableId+" in session "+tdSessionId, 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{
|
try{
|
||||||
DataSourceX dataSource = getDataSource(tdSessionId);
|
DataSourceX dataSource = getDataSource(tdSessionId);
|
||||||
|
logger.debug("Service get current table definition");
|
||||||
return dataSource.getTableDefinition();
|
return dataSource.getTableDefinition();
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
logger.error("An error occurred retrieving the table definition", e);
|
logger.error("An error occurred retrieving the table definition", e);
|
||||||
|
@ -79,6 +81,7 @@ public class TabularDataXServiceImpl extends RemoteServiceServlet implements Tab
|
||||||
try{
|
try{
|
||||||
HttpSession httpSession = this.getThreadLocalRequest().getSession();
|
HttpSession httpSession = this.getThreadLocalRequest().getSession();
|
||||||
DataSourceX dataSource = SessionUtil.openDataSource(httpSession,id);
|
DataSourceX dataSource = SessionUtil.openDataSource(httpSession,id);
|
||||||
|
logger.debug("Service get table definition");
|
||||||
return dataSource.getTableDefinition();
|
return dataSource.getTableDefinition();
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
logger.error("An error occurred getting the table definition", e);
|
logger.error("An error occurred getting the table definition", e);
|
||||||
|
|
Loading…
Reference in New Issue