2014-07-02 12:57:14 +02:00
|
|
|
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.Result;
|
|
|
|
import org.gcube.portlets.user.databasesmanager.client.datamodel.Row;
|
2014-07-11 12:35:26 +02:00
|
|
|
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
|
2014-07-02 12:57:14 +02:00
|
|
|
|
|
|
|
//import org.gcube.portlets.user.dbmanager.client.datamodel.FileModel;
|
|
|
|
//import org.gcube.portlets.user.dbmanager.client.datamodel.Result;
|
|
|
|
//import org.gcube.portlets.user.dbmanager.client.datamodel.Row;
|
|
|
|
|
2014-07-11 12:35:26 +02:00
|
|
|
import com.extjs.gxt.ui.client.data.PagingLoadResult;
|
2014-07-02 12:57:14 +02:00
|
|
|
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;
|
|
|
|
|
2014-07-11 12:35:26 +02:00
|
|
|
|
2014-07-02 12:57:14 +02:00
|
|
|
|
|
|
|
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;
|
2014-07-03 14:44:03 +02:00
|
|
|
|
|
|
|
List<Result> sample(LinkedHashMap<String, String> dataInput) throws Exception;
|
2014-07-04 12:09:47 +02:00
|
|
|
|
|
|
|
List<Result> smartSample(LinkedHashMap<String, String> dataInput) throws Exception;
|
|
|
|
|
2014-07-04 12:36:43 +02:00
|
|
|
List<Result> randomSample(LinkedHashMap<String, String> dataInput) throws Exception;
|
|
|
|
|
2014-07-02 12:57:14 +02:00
|
|
|
|
|
|
|
List<Row> parseCVSString(List<Result> result, List<String> attrNames)
|
|
|
|
throws Exception;
|
2014-07-04 11:07:19 +02:00
|
|
|
|
|
|
|
LinkedHashMap<String, FileModel> getTableDetails(LinkedHashMap<String, String> dataInput) throws Exception;
|
2014-07-11 12:35:26 +02:00
|
|
|
|
2014-07-16 16:18:09 +02:00
|
|
|
PagingLoadResult<Result> LoadTables(PagingLoadConfig config, LinkedHashMap<String, String> dataInput, boolean SearchTable, String keyword) throws Exception;
|
2014-07-04 11:07:19 +02:00
|
|
|
|
2014-07-16 16:18:09 +02:00
|
|
|
// PagingLoadResult<Result> SearchTable(PagingLoadConfig config, LinkedHashMap<String, String> dataInput, String keyword) throws Exception;
|
2014-07-02 12:57:14 +02:00
|
|
|
|
|
|
|
}
|