org.hibernate.community.dialect.pagination.AltibaseLimitHandler 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 .
*/
/*
* 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.LimitLimitHandler;
/**
* Limit handler for {@link org.hibernate.community.dialect.AltibaseDialect}.
*
* @author Geoffrey park
*/
public class AltibaseLimitHandler extends LimitLimitHandler {
public static final AltibaseLimitHandler INSTANCE = new AltibaseLimitHandler();
@Override
protected String limitClause(boolean hasFirstRow) {
return hasFirstRow ? " limit 1+?,?" : " limit ?";
}
@Override
protected String offsetOnlyClause() {
return " limit 1+?," + Integer.MAX_VALUE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy