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

com.jpattern.orm.query.find.FindOrderByImpl Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package com.jpattern.orm.query.find;

import java.util.List;

import com.jpattern.orm.exception.OrmException;
import com.jpattern.orm.exception.OrmNotUniqueResultException;
import com.jpattern.orm.query.LockMode;
import com.jpattern.orm.query.OrmRowMapper;
import com.jpattern.orm.query.clause.OrmOrderBy;

/**
 * 
 * @author ufo
 *
 * @param 
 */
public class FindOrderByImpl extends OrmOrderBy> implements FindOrderBy {

	private final FindQuery findQuery;

	@Override
	public String renderSql() {
		return this.findQuery.renderSql();
	}

	@Override
	public void renderSql(final StringBuilder stringBuilder) {
		this.findQuery.renderSql(stringBuilder);
	}

	@Override
	public void appendValues(final List values) {
		this.findQuery.appendValues(values);
	}

	public FindOrderByImpl(final FindQuery findQuery) {
		this.findQuery = findQuery;

	}

	@Override
	public FindQuery query() {
		return this.findQuery;
	}

	@Override
	public FindWhere where() throws OrmException {
		return this.findQuery.where();
	}

	@Override
	protected FindOrderBy orderBy() throws OrmException {
		return this;
	}

	@Override
	public List findList() throws OrmException {
		return this.findQuery.findList();
	}

	@Override
	public long findRowCount() throws OrmException {
		return this.findQuery.findRowCount();
	}

	@Override
	public BEAN findUnique() throws OrmException, OrmNotUniqueResultException {
		return this.findQuery.findUnique();
	}

	@Override
	public void find(final OrmRowMapper srr) throws OrmException {
		this.findQuery.find(srr);
	}

	@Override
	public String getGeneratedRowCountSql() throws OrmException {
		return this.findQuery.getGeneratedRowCountSql();
	}

	@Override
	public FindQuery setDistinct(final boolean distinct) throws OrmException {
		return this.findQuery.setDistinct(distinct);
	}

	@Override
	public boolean isDistinct() throws OrmException {
		return this.findQuery.isDistinct();
	}

	@Override
	public FindQuery setLockMode(final LockMode lockMode) {
		return this.findQuery.setLockMode(lockMode);
	}

	@Override
	public LockMode getLockMode() {
		return this.findQuery.getLockMode();
	}

	@Override
	public int getMaxRows() throws OrmException {
		return this.findQuery.getMaxRows();
	}

	@Override
	public FindQuery setMaxRows(final int maxRows) throws OrmException {
		return this.findQuery.setMaxRows(maxRows);
	}

	@Override
	public FindQuery setQueryTimeout(final int queryTimeout) {
		return this.findQuery.setQueryTimeout(queryTimeout);
	}

	@Override
	public int getQueryTimeout() {
		return this.findQuery.getQueryTimeout();
	}

}