org.hibernate.community.dialect.pagination.TimesTenLimitHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-community-dialects Show documentation
Show all versions of hibernate-community-dialects Show documentation
Hibernate's community supported dialects
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.community.dialect.pagination;
import org.hibernate.dialect.pagination.LimitHandler;
/**
* A {@link LimitHandler} for TimesTen, which uses {@code ROWS n},
* but at the start of the query instead of at the end.
*/
public class TimesTenLimitHandler extends RowsLimitHandler {
public static final TimesTenLimitHandler INSTANCE = new TimesTenLimitHandler();
@Override
protected String insert(String rows, String sql) {
return insertAfterSelect( rows, sql );
}
@Override
public boolean bindLimitParametersFirst() {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy