diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/utils/GeneralProcessUtils.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/utils/GeneralProcessUtils.java index 75860912..a76fe9b0 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/utils/GeneralProcessUtils.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/utils/GeneralProcessUtils.java @@ -292,9 +292,26 @@ public class GeneralProcessUtils ** too many rows... Caveat emptor. *******************************************************************************/ public static List loadTable(String tableName, Class entityClass) throws QException + { + return (loadTable(tableName, entityClass, null)); + } + + + + /******************************************************************************* + ** Load all rows from a table as a RecordEntity, takes in a filter as well + ** + ** Note, this is inherently unsafe, if you were to call it on a table with + ** too many rows... Caveat emptor. + *******************************************************************************/ + public static List loadTable(String tableName, Class entityClass, QQueryFilter filter) throws QException { QueryInput queryInput = new QueryInput(); queryInput.setTableName(tableName); + if(filter != null) + { + queryInput.setFilter(filter); + } QueryOutput queryOutput = new QueryAction().execute(queryInput); List rs = new ArrayList<>();