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.26
TRX 0.20
JST 0.037
BTC 93924.35
ETH 3401.00
USDT 1.00
SBD 3.82