Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.nurkiewicz.jdbcrepository.sql;
 

Author(s):
Tomasz Nurkiewicz
Since:
1/15/13, 11:03 PM
 
 public class PostgreSqlGenerator extends SqlGenerator {
	protected String limitClause(Pageable page) {
		final int offset = page.getPageNumber() * page.getPageSize();
		return " LIMIT " + page.getPageSize() + " OFFSET " + offset;
	}
New to GrepCode? Check out our FAQ X