Record Class DataSourceController.QueryResponse
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.QueryResponse
- Record Components:
draw- DataTables draw counter (echoed)recordsTotal- Total number of rowsrecordsFiltered- Total number of rows after filtering (same as total)data- Page rows (arrays of strings)cols- Column labels used to render headerserror- Optional error message
- Enclosing class:
DataSourceController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncols()Returns the value of thecolsrecord component.data()Returns the value of thedatarecord component.draw()Returns the value of thedrawrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therecordsFilteredrecord component.intReturns the value of therecordsTotalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryResponse
public QueryResponse(Integer draw, int recordsTotal, int recordsFiltered, List<List<String>> data, List<String> cols, String error) Creates an instance of aQueryResponserecord class.- Parameters:
draw- the value for thedrawrecord componentrecordsTotal- the value for therecordsTotalrecord componentrecordsFiltered- the value for therecordsFilteredrecord componentdata- the value for thedatarecord componentcols- the value for thecolsrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
draw
-
recordsTotal
public int recordsTotal()Returns the value of therecordsTotalrecord component.- Returns:
- the value of the
recordsTotalrecord component
-
recordsFiltered
public int recordsFiltered()Returns the value of therecordsFilteredrecord component.- Returns:
- the value of the
recordsFilteredrecord component
-
data
-
cols
-
error
-