Class DataTablesResponse


  • public class DataTablesResponse
    extends java.lang.Object
    This is returned to client in an HttpServletResponse in the format the can be consumed by jQuery DataTables.
    See Also:
    DataTables
    • Method Detail

      • getDraw

        public int getDraw()
        Get the draw counter. This is used by DataTables to ensure that the Ajax returns from server-side processing requests are drawn in sequence by DataTables. Extracted directly from the initial org.apache.http.HttpRequest
        Returns:
        Integer
      • getRecordsTotal

        public long getRecordsTotal()
        Total records, before filtering (i.e. the total number of records in the database)
        Returns:
        Long
      • getRecordsFiltered

        public long getRecordsFiltered()
        Total records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned for this page of data).
        Returns:
        Long
      • getData

        public java.util.List<DataTablesResponseModel> getData()
        The data to be displayed in the table. This is an array of data source objects, one for each row, which will be used by DataTables.
        Returns:
        List