package org.gcube.portlets.user.databasesmanager.client; import java.util.LinkedHashMap; import java.util.List; import java.util.UUID; import org.gcube.portlets.user.databasesmanager.client.datamodel.FileModel; import org.gcube.portlets.user.databasesmanager.client.datamodel.Result; import org.gcube.portlets.user.databasesmanager.client.datamodel.Row; 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; List submitQuery(LinkedHashMap dataDB, String query, boolean valueReadOnlyQuery, boolean smartCorrectionQuery, String language) throws Exception; List sample(LinkedHashMap dataInput) throws Exception; List smartSample(LinkedHashMap dataInput) throws Exception; List randomSample(LinkedHashMap dataInput) throws Exception; List parseCVSString(List result, List attrNames) throws Exception; LinkedHashMap getTableDetails( LinkedHashMap dataInput) throws Exception; PagingLoadResult LoadTables(PagingLoadConfig config, LinkedHashMap dataInput, boolean SearchTable, String keyword) throws Exception; }