
com.jk.data.dynamic.paging.DataPager Maven / Gradle / Ivy
/*
* Copyright 2002-2022 Dr. Jalal Kiswani.
* Email: [email protected]
* Check out https://smart-api.com for more details
*
* All the opensource projects of Dr. Jalal Kiswani are free for personal and academic use only,
* for commercial usage and support, please contact the author.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jk.data.dynamic.paging;
// TODO: Auto-generated Javadoc
/**
* The Interface DataPager.
*/
public interface DataPager {
/**
* Gets the all rows count.
*
* @return the all rows count
* @throws PagingException the paging exception
*/
public int getAllRowsCount() throws PagingException;
/**
* Gets the current page.
*
* @return the current page
* @throws PagingException the paging exception
*/
public int getCurrentPage() throws PagingException;
/**
* Gets the page rows count.
*
* @return the page rows count
* @throws PagingException the paging exception
*/
public int getPageRowsCount() throws PagingException;
/**
* Gets the pages count.
*
* @return the pages count
* @throws PagingException the paging exception
*/
public int getPagesCount() throws PagingException;
/**
* Move to first page.
*
* @throws PagingException the paging exception
*/
public void moveToFirstPage() throws PagingException;
/**
* Move to last page.
*
* @throws PagingException the paging exception
*/
public void moveToLastPage() throws PagingException;
/**
* Move to next page.
*
* @throws PagingException the paging exception
*/
public void moveToNextPage() throws PagingException;
/**
* Move to page.
*
* @param page the page
* @throws PagingException the paging exception
*/
public void moveToPage(int page) throws PagingException;
/**
* Move to previouse page.
*
* @throws PagingException the paging exception
*/
public void moveToPreviousePage() throws PagingException;
/**
* Sets the page rows count.
*
* @param pageRowsCount the new page rows count
* @throws PagingException the paging exception
*/
public void setPageRowsCount(int pageRowsCount) throws PagingException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy