Class QueryOutput

java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionOutput
com.kingsrook.qqq.backend.core.model.actions.tables.query.QueryOutput
All Implemented Interfaces:
Serializable

public class QueryOutput extends AbstractActionOutput implements Serializable
Output for a query action
See Also:
  • Constructor Details

    • QueryOutput

      public QueryOutput(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 Details

    • addRecord

      public void addRecord(QRecord record) throws QException
      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

      public void addRecords(List<QRecord> records) throws QException
      add a list of records to this output
      Throws:
      QException
    • getRecords

      public List<QRecord> getRecords()
    • getRecordEntities

      public <T extends QRecordEntity> List<T> getRecordEntities(Class<T> entityClass) throws QException
      Throws:
      QException