
sf.database.mapper.handle.RowLimit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sorm Show documentation
Show all versions of sorm Show documentation
java jpa tool for spring
The newest version!
package sf.database.mapper.handle;
/**
* @author Clinton Begin
*/
public class RowLimit {
public static final int NO_ROW_OFFSET = 0;
public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;
public static final RowLimit DEFAULT = new RowLimit();
private final long offset;
private final int limit;
public RowLimit() {
this.offset = NO_ROW_OFFSET;
this.limit = NO_ROW_LIMIT;
}
public RowLimit(long offset, int limit) {
this.offset = offset;
this.limit = limit;
}
public long getOffset() {
return offset;
}
public int getLimit() {
return limit;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy