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

org.ssssssss.magicapi.dialect.SQLServerDialect Maven / Gradle / Ivy

package org.ssssssss.magicapi.dialect;


import org.ssssssss.magicapi.modules.BoundSql;

public class SQLServerDialect implements Dialect {
	@Override
	public boolean match(String jdbcUrl) {
		return jdbcUrl.contains(":sqlserver2012:");
	}

	@Override
	public String getPageSql(String sql, BoundSql boundSql, long offset, long limit) {
		boundSql.addParameter(offset);
		boundSql.addParameter(limit);
		return sql + " OFFSET ? ROWS FETCH NEXT ? ROWS ONLY";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy