Class QueryOutput
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionOutput
com.kingsrook.qqq.backend.core.model.actions.tables.query.QueryOutput
-
Constructor Summary
ConstructorsConstructorDescriptionQueryOutput
(QueryInput queryInput) Construct a new query output, based on a query input (which will drive some of how our output is structured... e.g., if we pipe the output) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a record to this output.void
addRecords
(List<QRecord> records) add a list of records to this output<T extends QRecordEntity>
List<T> getRecordEntities
(Class<T> entityClass)
-
Constructor Details
-
QueryOutput
Construct a new query output, based on a query input (which will drive some of how our output is structured... e.g., if we pipe the output)
-
-
Method Details
-
addRecord
Add a record to this output. Note - we often don't care, in such a method, whether the record is "completed" or not (e.g., all of its values have been populated) - but - note in here - that this records MAY be going into a pipe that could be read asynchronously, at any time, by another thread - SO - only completely populated records should be passed into this method.- Throws:
QException
-
addRecords
add a list of records to this output- Throws:
QException
-
getRecords
-
getRecordEntities
- Throws:
QException
-