@@ -1400,20 +1400,20 @@ public Map<String, Object> getUsageMetrics(User user, Container c, boolean inclu
14001400 // get the count of analysis folders
14011401 public int getAnalysisFolderCount (FlowSchema schema )
14021402 {
1403- return QueryService .get ().selector (schema , "SELECT COUNT(*) FROM " + FlowSchema .SCHEMANAME + "." + FlowTableType .Analyses .name ()).getObject (Long .class ).intValue ();
1403+ return QueryService .get ().getSelectBuilder (schema , "SELECT COUNT(*) FROM " + FlowSchema .SCHEMANAME + "." + FlowTableType .Analyses .name ()). buildSqlSelector ( ).getObject (Long .class ).intValue ();
14041404 }
14051405
14061406 // get the count of analysis scripts
14071407 public int getAnalysisScriptCount (FlowSchema schema )
14081408 {
1409- return QueryService .get ().selector (schema , "SELECT COUNT(*) FROM " + FlowSchema .SCHEMANAME + "." + FlowTableType .AnalysisScripts .name ()).getObject (Long .class ).intValue ();
1409+ return QueryService .get ().getSelectBuilder (schema , "SELECT COUNT(*) FROM " + FlowSchema .SCHEMANAME + "." + FlowTableType .AnalysisScripts .name ()). buildSqlSelector ( ).getObject (Long .class ).intValue ();
14101410 }
14111411
14121412 // get the count of samples in the sample set
14131413 public int getSampleCount (Container c , User user , ExpSampleType st )
14141414 {
14151415 UserSchema schema = QueryService .get ().getUserSchema (user , c , SamplesSchema .SCHEMA_SAMPLES );
1416- return QueryService .get ().selector (schema , "SELECT COUNT(*) FROM samples." + st .getName ()).getObject (Long .class ).intValue ();
1416+ return QueryService .get ().getSelectBuilder (schema , "SELECT COUNT(*) FROM samples." + st .getName ()). buildSqlSelector ( ).getObject (Long .class ).intValue ();
14171417 }
14181418
14191419 public int getTempTableCount ()
@@ -1494,56 +1494,56 @@ public Map<String, Object> removeRowNum(Map<String, Object> row)
14941494 // count of runs created from an Analysis Script
14951495 public Map <String , Object > getAnalysisScriptRunCount (FlowSchema schema )
14961496 {
1497- return removeRowNum (QueryService .get ().selector (schema , """
1497+ return removeRowNum (QueryService .get ().getSelectBuilder (schema , """
14981498 SELECT
14991499 COUNT(*) AS RunCount,
15001500 MAX(Created) AS CreatedMax,
15011501 SUM(FCSAnalysisCount) AS FCSAnalysisCount,
15021502 SUM(CompensationControlCount) AS CompControlCount,
15031503 SUM(FCSFileCount) AS FCSFileCount
15041504 FROM flow.Runs
1505- WHERE AnalysisScript IS NOT NULL""" ).getMap ());
1505+ WHERE AnalysisScript IS NOT NULL""" ).buildSqlSelector (). getMap ());
15061506 }
15071507
15081508 // count of runs created from a FlowJo Workspace
15091509 public Map <String , Object > getWorkspaceRunCount (FlowSchema schema )
15101510 {
1511- return removeRowNum (QueryService .get ().selector (schema , """
1511+ return removeRowNum (QueryService .get ().getSelectBuilder (schema , """
15121512 SELECT
15131513 COUNT(*) AS RunCount,
15141514 MAX(Created) AS CreatedMax,
15151515 SUM(FCSAnalysisCount) AS FCSAnalysisCount,
15161516 SUM(CompensationControlCount) AS CompControlCount,
15171517 SUM(FCSFileCount) AS FCSFileCount
15181518 FROM flow.Runs
1519- WHERE Workspace IS NOT NULL""" ).getMap ());
1519+ WHERE Workspace IS NOT NULL""" ).buildSqlSelector (). getMap ());
15201520 }
15211521
15221522 // count of runs created from an analysis archive import
15231523 public Map <String , Object > getExternalAnalysisRunCount (FlowSchema schema )
15241524 {
1525- return removeRowNum (QueryService .get ().selector (schema ,
1525+ return removeRowNum (QueryService .get ().getSelectBuilder (schema ,
15261526 "SELECT\n " +
15271527 " COUNT(*) AS RunCount,\n " +
15281528 " MAX(Created) AS CreatedMax,\n " +
15291529 " SUM(FCSAnalysisCount) AS FCSAnalysisCount,\n " +
15301530 " SUM(CompensationControlCount) AS CompControlCount,\n " +
15311531 " SUM(FCSFileCount) AS FCSFileCount\n " +
15321532 "FROM flow.Runs\n " +
1533- "WHERE AnalysisEngine = '" + AnalysisEngine .Archive .name () + "'" ).getMap ());
1533+ "WHERE AnalysisEngine = '" + AnalysisEngine .Archive .name () + "'" ).buildSqlSelector (). getMap ());
15341534 }
15351535
15361536 public Map <String , Object > getFCSFileOnlyRunCount (FlowSchema schema )
15371537 {
1538- return removeRowNum (QueryService .get ().selector (schema , """
1538+ return removeRowNum (QueryService .get ().getSelectBuilder (schema , """
15391539 SELECT
15401540 COUNT(*) AS RunCount,
15411541 MAX(Created) AS CreatedMax,
15421542 SUM(FCSAnalysisCount) AS FCSAnalysisCount,
15431543 SUM(CompensationControlCount) AS CompControlCount,
15441544 SUM(FCSFileCount) AS FCSFileCount
15451545 FROM flow.Runs
1546- WHERE ProtocolStep = 'Keywords'""" ).getMap ());
1546+ WHERE ProtocolStep = 'Keywords'""" ).buildSqlSelector (). getMap ());
15471547 }
15481548
15491549 public int getRunCount (Container container , ObjectType type )
0 commit comments