- total number rows returned as output for the result of the submit Query operation:class DatabaseManagement modified
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@101938 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
167f0c1715
commit
3786920a6c
|
@ -53,6 +53,9 @@ public class DatabaseManagement {
|
|||
// file that will contain result
|
||||
private BufferedWriter out;
|
||||
|
||||
//total rows for a result of a submit query operation
|
||||
private int submitQueryTotalRows;
|
||||
|
||||
// file in which the table result is stored when sample
|
||||
// operations are executed
|
||||
// private File fileSample = null;
|
||||
|
@ -357,6 +360,8 @@ public class DatabaseManagement {
|
|||
if (results != null) {
|
||||
AnalysisLogger.getLogger().debug(
|
||||
"DatabaseManagement-> Query result retrieved");
|
||||
|
||||
submitQueryTotalRows = results.size();
|
||||
}
|
||||
|
||||
// // store table in a file
|
||||
|
@ -431,6 +436,7 @@ public class DatabaseManagement {
|
|||
return results;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the table's names for a database.
|
||||
*
|
||||
|
@ -1844,6 +1850,11 @@ public class DatabaseManagement {
|
|||
return mapResult;
|
||||
}
|
||||
|
||||
//get total rows for a result of a submit query operation
|
||||
public int getSubmitQueryTotalRows(){
|
||||
return submitQueryTotalRows;
|
||||
}
|
||||
|
||||
// method that allows to translate the query in another language
|
||||
public String smartCorrectionOnQuery(String OriginalQuery, int dialect)
|
||||
throws ParseException, ConvertException {
|
||||
|
|
Loading…
Reference in New Issue