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

io.github.wycst.wast.jdbc.dialect.DefaultDialect Maven / Gradle / Ivy

Go to download

Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines

There is a newer version: 0.0.16
Show newest version
package io.github.wycst.wast.jdbc.dialect;

/**
 * 缺省方言
 *
 * @Author: wangy
 * @Date: 2023/2/27 20:14
 * @Description:
 */
public class DefaultDialect extends DialectImpl implements Dialect {

    public DefaultDialect() {
    }

    public DefaultDialect(PageDialectAgent pageDialectAgent) {
        this.setPageDialectAgent(pageDialectAgent);
    }

    @Override
    public String getLimitString(String sql, boolean hasOffset) {
        return getPageDialectAgent().getLimitSql(sql, hasOffset);
    }

    @Override
    public String getLimitString(String sql, long offset, int limit) {
        return getPageDialectAgent().getLimitSql(sql, offset, limit);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy