com.jaregu.database.queries.ext.AbstractSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of queries Show documentation
Show all versions of queries Show documentation
Java based SQL templating project. Store your queries in *.sql files and build queries for execution. Supports simple expressions and conditional clauses and interface proxying for java-sql bridge.
package com.jaregu.database.queries.ext;
import java.util.List;
public class AbstractSearch> implements OrderableSearch, PageableSearch {
protected final Integer limit;
protected final Integer offset;
protected final List orderByItems;
public AbstractSearch(Integer offset, Integer limit, List orderByItems) {
this.offset = offset;
this.limit = limit;
this.orderByItems = orderByItems;
}
@Override
public Integer getOffset() {
return offset;
}
@Override
public Integer getLimit() {
return limit;
}
@Override
public List getOrderBy() {
return orderByItems;
}
@Override
public T withOffset(Integer offset) {
throw new UnsupportedOperationException();
}
@Override
public T withLimit(Integer limit) {
throw new UnsupportedOperationException();
}
@Override
public T withOrderBy(List orderBy) {
throw new UnsupportedOperationException();
}
}