update in the SubmitQuery Algorithm changing the field from "Query converted" in "Converted Query"
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManagerAlgorithms@98834 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4fcd6447b6
commit
25b6e891ec
|
@ -14,12 +14,12 @@ PRESENCE_CELLS_GENERATION=org.gcube.dataanalysis.ecoengine.transducers.simpleque
|
||||||
FIN_TAXA_MATCH=org.gcube.dataanalysis.fin.taxamatch.TaxaMatchTransducer
|
FIN_TAXA_MATCH=org.gcube.dataanalysis.fin.taxamatch.TaxaMatchTransducer
|
||||||
LISTNAMES_TABLES=org.gcube.dataacces.algorithms.DatabasesResourcesManagerAlgorithms.AbsoluteSpeciesBarChartsAlgorithm
|
LISTNAMES_TABLES=org.gcube.dataacces.algorithms.DatabasesResourcesManagerAlgorithms.AbsoluteSpeciesBarChartsAlgorithm
|
||||||
TEST_ALG=org.gcube.dataacces.algorithms.DatabasesResourcesManagerAlgorithms.SimpleAlg
|
TEST_ALG=org.gcube.dataacces.algorithms.DatabasesResourcesManagerAlgorithms.SimpleAlg
|
||||||
LISTDBINFO=org.gcube.dataacces.algorithms.drmalgorithms.ListDBInfo
|
LISTDBINFO=org.gcube.dataaccess.algorithms.drmalgorithms.ListDBInfo
|
||||||
LISTDBNAMES=org.gcube.dataacces.algorithms.drmalgorithms.ListNames
|
LISTDBNAMES=org.gcube.dataaccess.algorithms.drmalgorithms.ListNames
|
||||||
LISTDBSCHEMA=org.gcube.dataacces.algorithms.drmalgorithms.ListSchemas
|
LISTDBSCHEMA=org.gcube.dataaccess.algorithms.drmalgorithms.ListSchemas
|
||||||
LISTTABLES=org.gcube.dataacces.algorithms.drmalgorithms.ListTables
|
LISTTABLES=org.gcube.dataaccess.algorithms.drmalgorithms.ListTables
|
||||||
GETTABLEDETAILS=org.gcube.dataacces.algorithms.drmalgorithms.GetTableDetails
|
GETTABLEDETAILS=org.gcube.dataaccess.algorithms.drmalgorithms.GetTableDetails
|
||||||
LISTSUBMITQUERY=org.gcube.dataacces.algorithms.drmalgorithms.SubmitQuery
|
LISTSUBMITQUERY=org.gcube.dataaccess.algorithms.drmalgorithms.SubmitQuery
|
||||||
SAMPLEONTABLE=org.gcube.dataacces.algorithms.drmalgorithms.SampleOnTable
|
SAMPLEONTABLE=org.gcube.dataaccess.algorithms.drmalgorithms.SampleOnTable
|
||||||
SMARTSAMPLEONTABLE=org.gcube.dataacces.algorithms.drmalgorithms.SmartSampleOnTable
|
SMARTSAMPLEONTABLE=org.gcube.dataaccess.algorithms.drmalgorithms.SmartSampleOnTable
|
||||||
RANDOMSAMPLEONTABLE=org.gcube.dataacces.algorithms.drmalgorithms.RandomSampleOnTable
|
RANDOMSAMPLEONTABLE=org.gcube.dataaccess.algorithms.drmalgorithms.RandomSampleOnTable
|
|
@ -164,37 +164,56 @@ public class SubmitQuery extends StandardLocalExternalAlgorithm {
|
||||||
|
|
||||||
} catch (HibernateException h) {
|
} catch (HibernateException h) {
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> ERROR " + h.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> ERROR " + h.getMessage());
|
"In SubmitQuery-> " + h.getMessage());
|
||||||
|
|
||||||
throw h;
|
throw h;
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (IllegalStateException e) {
|
catch (IllegalStateException e) {
|
||||||
// e.printStackTrace();
|
// e.printStackTrace();
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> ERROR " + e.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> ERROR " + e.getMessage());
|
"In SubmitQuery-> " + e.getMessage());
|
||||||
|
|
||||||
throw e;
|
throw e;
|
||||||
|
|
||||||
} catch (DiscoveryException e1) {
|
} catch (DiscoveryException e1) {
|
||||||
// e1.printStackTrace();
|
// e1.printStackTrace();
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> ERROR " + e1.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> ERROR " + e1.getMessage());
|
"In SubmitQuery-> " + e1.getMessage());
|
||||||
|
|
||||||
throw e1;
|
throw e1;
|
||||||
|
|
||||||
} catch (InvalidResultException e2) {
|
} catch (InvalidResultException e2) {
|
||||||
// e2.printStackTrace();
|
// e2.printStackTrace();
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> ERROR " + e2.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> ERROR " + e2.getMessage());
|
"In SubmitQuery-> " + e2.getMessage());
|
||||||
|
|
||||||
throw e2;
|
throw e2;
|
||||||
|
|
||||||
} catch (IOException e3) {
|
} catch (IOException e3) {
|
||||||
// e3.printStackTrace();
|
// e3.printStackTrace();
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> ERROR " + e3.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> ERROR " + e3.getMessage());
|
"In SubmitQuery-> " + e3.getMessage());
|
||||||
|
|
||||||
throw e3;
|
throw e3;
|
||||||
}
|
}
|
||||||
|
@ -202,8 +221,11 @@ public class SubmitQuery extends StandardLocalExternalAlgorithm {
|
||||||
catch (Exception e4) {
|
catch (Exception e4) {
|
||||||
// e4.printStackTrace();
|
// e4.printStackTrace();
|
||||||
|
|
||||||
|
// AnalysisLogger.getLogger().debug(
|
||||||
|
// "In SubmitQuery-> Exception " + e4.getMessage());
|
||||||
|
|
||||||
AnalysisLogger.getLogger().debug(
|
AnalysisLogger.getLogger().debug(
|
||||||
"In SubmitQuery-> Exception " + e4.getMessage());
|
"In SubmitQuery-> " + e4.getMessage());
|
||||||
|
|
||||||
throw e4;
|
throw e4;
|
||||||
|
|
||||||
|
@ -607,7 +629,7 @@ public class SubmitQuery extends StandardLocalExternalAlgorithm {
|
||||||
|
|
||||||
PrimitiveType valQuery = new PrimitiveType(
|
PrimitiveType valQuery = new PrimitiveType(
|
||||||
String.class.getName(), smartCorrectedQuery,
|
String.class.getName(), smartCorrectedQuery,
|
||||||
PrimitiveTypes.STRING, "Query Converted",
|
PrimitiveTypes.STRING, "Converted Query",
|
||||||
"Query Converted");
|
"Query Converted");
|
||||||
|
|
||||||
mapResults.put("Query Converted", valQuery);
|
mapResults.put("Query Converted", valQuery);
|
||||||
|
|
Loading…
Reference in New Issue