All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zhuang.data.pagination.DbPaging Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.zhuang.data.pagination;

import com.zhuang.data.util.SqlUtils;

public abstract class DbPaging {
	
	public abstract String getPageSql(String sql, String orderClause, int startRowIndex, int rowCount);

    public String getCountSql(String strSql)
    {
        String tempSql = SqlUtils.removeOrderByClause(strSql);
        return " select count(1) from (\n" + tempSql + "\n) tt";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy