Customizing Jquery DataTables using java class

in #java7 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.21
TRX 0.25
JST 0.038
BTC 97111.20
ETH 3382.29
USDT 1.00
SBD 3.20