Package org.apache.juneau.console.datatables
package org.apache.juneau.console.datatables
The DataTables server-side-processing JSON beans implementing the
DataTables server-side processing wire
contract.
This package holds only the DataTables JSON input (DataTablesRequest)
and output (DataTablesResults) beans, plus the
client-helper mixin. It carries no query-engine types: the beans know nothing about
BeanQuery.
The bridge between the two worlds lives in the sibling package
org.apache.juneau.console.datatables.adapter: DataTablesQuery maps a DataTablesRequest
onto a BeanQuery, runs it against a BeanQuerySession, and
populates a DataTablesResults envelope (mapping total→recordsTotal and
matched→recordsFiltered).
See Also:
- Since:
- 10.0.0
-
ClassesClassDescriptionGenerates a DataTables
columnsarray from the bean properties of a row type, so the browser-side column list doesn't have to be hand-duplicated.Mixin that serves Juneau's first-party DataTables glue script at/juneau-datatables.js.The DataTables server-side-processing request envelope — the JSON input bean paired with theDataTablesResultsJSON output bean.A DataTables column descriptor (columns[i]).A DataTables 2.x fixed search term (search.fixed[i]): a named search applied through the DataTables API (search.fixed(name, term)) rather than typed by the user.A DataTables ordering descriptor (order[i]): the index of the ordered column plus its direction.A DataTables search descriptor ({value, regex, fixed}), used for both the global search and a column search.The DataTables server-side-processing response envelope.Builds a DataTables-ready HTMLTableDOM bean from a collection of rows — a server-rendered "plain table" that the browser upgrades in place with$('#id').DataTable().