Customizing Jquery DataTables using java class

in #java6 years ago

This Program can customized the jquery data tables using java class.

Jquery data tables used to display data on web pages using json data format

kkmk.jpg

Benifits:

  • maximize performance
  • POJO Mapping
  • Custom Search
  • Customizing parameter

Program: DataTablesTO.java

package beans;

import java.util.List;

public class DataTablesTO<T> {
    
    private List<T> aaData;
    private String aoColumns;
    private int sEcho;
    private Integer iTotalRecords;
    private Integer iTotalDisplayRecords;
    
    public List<T> getAaData() {
        return aaData;
    }
    public void setAaData(List<T> aaData) {
        this.aaData = aaData;
    }
    public String getAoColumns() {
        return aoColumns;
    }
    public void setAoColumns(String aoColumns) {
        this.aoColumns = aoColumns;
    }
    public int getsEcho() {
        return sEcho;
    }
    public void setsEcho(int sEcho) {
        this.sEcho = sEcho;
    }
    public Integer getiTotalRecords() {
        return iTotalRecords;
    }
    public void setiTotalRecords(Integer iTotalRecords) {
        this.iTotalRecords = iTotalRecords;
    }
    public Integer getiTotalDisplayRecords() {
        return iTotalDisplayRecords;
    }
    public void setiTotalDisplayRecords(Integer iTotalDisplayRecords) {
        this.iTotalDisplayRecords = iTotalDisplayRecords;
    }

}

Hope you Like my post !

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.029
BTC 57659.57
ETH 3030.07
USDT 1.00
SBD 2.26