databases-manager-portlet/src/main/java/org/gcube/portlets/user/databasesmanager/client/GWTdbManagerService.java

53 lines
1.7 KiB
Java

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<FileModel> getResource() throws Exception;
LinkedHashMap<String, FileModel> getDBInfo(String resourceName)
throws Exception;
List<FileModel> getDBSchema(LinkedHashMap<String, String> dataInput)
throws Exception;
List<Result> submitQuery(LinkedHashMap<String, String> dataDB,
String query, boolean valueReadOnlyQuery,
boolean smartCorrectionQuery, String language) throws Exception;
List<Result> sample(LinkedHashMap<String, String> dataInput)
throws Exception;
List<Result> smartSample(LinkedHashMap<String, String> dataInput)
throws Exception;
List<Result> randomSample(LinkedHashMap<String, String> dataInput)
throws Exception;
List<Row> parseCVSString(List<Result> result, List<String> attrNames)
throws Exception;
LinkedHashMap<String, FileModel> getTableDetails(
LinkedHashMap<String, String> dataInput) throws Exception;
PagingLoadResult<Result> LoadTables(PagingLoadConfig config,
LinkedHashMap<String, String> dataInput, boolean SearchTable,
String keyword) throws Exception;
}