- 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
|
@ -52,6 +52,9 @@ public class DatabaseManagement {
|
||||||
|
|
||||||
// file that will contain result
|
// file that will contain result
|
||||||
private BufferedWriter out;
|
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
|
// file in which the table result is stored when sample
|
||||||
// operations are executed
|
// operations are executed
|
||||||
|
@ -357,6 +360,8 @@ public class DatabaseManagement {
|
||||||
if (results != null) {
|
if (results != null) {
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"DatabaseManagement-> Query result retrieved");
|
"DatabaseManagement-> Query result retrieved");
|
||||||
|
|
||||||
|
submitQueryTotalRows = results.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
// // store table in a file
|
// // store table in a file
|
||||||
|
@ -430,6 +435,7 @@ public class DatabaseManagement {
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the table's names for a database.
|
* Get the table's names for a database.
|
||||||
|
@ -1843,6 +1849,11 @@ public class DatabaseManagement {
|
||||||
|
|
||||||
return mapResult;
|
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
|
// method that allows to translate the query in another language
|
||||||
public String smartCorrectionOnQuery(String OriginalQuery, int dialect)
|
public String smartCorrectionOnQuery(String OriginalQuery, int dialect)
|
||||||
|
|
Loading…
Reference in New Issue