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

org.iartisan.runtime.jdbc.dialects.MySQLDialect Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package org.iartisan.runtime.jdbc.dialects;

import org.iartisan.runtime.jdbc.Dialect;

/**
 * 

* * @author King * @since 2017/6/22 */ @Deprecated public class MySQLDialect implements Dialect { private static MySQLDialect dialect = null; private MySQLDialect() {} @Override public String buildPaginationSQL(String originalSql, int offset, int limit) { StringBuilder sql = new StringBuilder(originalSql); sql.append(" LIMIT ").append(offset).append(",").append(limit); return sql.toString(); } public static MySQLDialect newInstance() { if (null == dialect) { dialect = new MySQLDialect(); } return dialect; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy