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
The newest version!
/*
* SPDX-License-Identifier: LGPL-2.1-or-later
* Copyright Red Hat Inc. and Hibernate Authors
*/
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;
}
}