com.web.spring.datatable.DataSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-jquery-datatable Show documentation
Show all versions of spring-jquery-datatable Show documentation
Spring extension to work with the great jQuery plugin DataTables
The newest version!
package com.web.spring.datatable;
import java.util.List;
/**
* Wrapping bean that must be sent back to Datatables when server-side
* processing is enabled.
*
* @param the type parameter
*/
public final class DataSet {
private final List rows;
private final Long totalDisplayRecords;
private final Long totalRecords;
/**
* Instantiates a new Data set.
*
* @param rows the rows
* @param totalRecords the total records
* @param totalDisplayRecords the total display records
*/
public DataSet(List rows, Long totalRecords, Long totalDisplayRecords) {
this.rows = rows;
this.totalRecords = totalRecords;
this.totalDisplayRecords = totalDisplayRecords;
}
/**
* Gets rows.
*
* @return the rows
*/
public List getRows() {
return rows;
}
/**
* Gets total display records.
*
* @return the total display records
*/
public Long getTotalDisplayRecords() {
return totalDisplayRecords;
}
/**
* Gets total records.
*
* @return the total records
*/
public Long getTotalRecords() {
return totalRecords;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy