package org.gcube.portlets.user.databasesmanager.client; import java.util.LinkedHashMap; import java.util.List; import org.gcube.portlets.user.databasesmanager.client.datamodel.FileModel; import org.gcube.portlets.user.databasesmanager.client.datamodel.GeneralOutputFromServlet; import org.gcube.portlets.user.databasesmanager.client.datamodel.Result; import org.gcube.portlets.user.databasesmanager.client.datamodel.Row; import org.gcube.portlets.user.databasesmanager.client.datamodel.SamplingResultWithFileFromServlet; import org.gcube.portlets.user.databasesmanager.client.datamodel.SubmitQueryResultWithFileFromServlet; import com.extjs.gxt.ui.client.data.PagingLoadConfig; import com.extjs.gxt.ui.client.data.PagingLoadResult; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; //interface that defines RPC methods @RemoteServiceRelativePath("dbManagerService") public interface GWTdbManagerService extends RemoteService { List getResource() throws Exception; LinkedHashMap getDBInfo(String resourceName) throws Exception; List getDBSchema(LinkedHashMap dataInput) throws Exception; SubmitQueryResultWithFileFromServlet submitQuery(LinkedHashMap dataDB, String query, boolean valueReadOnlyQuery, boolean smartCorrectionQuery, String language, String UID) throws Exception; SamplingResultWithFileFromServlet sample(LinkedHashMap dataInput, String elementType) throws Exception; SamplingResultWithFileFromServlet smartSample(LinkedHashMap dataInput, String elementType) throws Exception; SamplingResultWithFileFromServlet randomSample(LinkedHashMap dataInput, String elementType) throws Exception; List parseCVSString(List result, List attrNames) throws Exception; LinkedHashMap getTableDetails( LinkedHashMap dataInput) throws Exception; PagingLoadResult LoadTables(PagingLoadConfig config, LinkedHashMap dataInput, String elementType, boolean SearchTable, String keyword) throws Exception; PagingLoadResult loadSubmitResult(PagingLoadConfig config, List listAttributes, String UID) throws Exception; Boolean removeComputation(String submitQueryUID) throws Exception; void refreshDataOnServer(String submitQueryUID) throws Exception; GeneralOutputFromServlet refreshDataTree(String ElementType, LinkedHashMap inputData, FileModel element) throws Exception; }