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

com.jaregu.database.queries.ext.AbstractSearch Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.4.1
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy