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

io.github.wycst.wast.jdbc.dialect.Dialect 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

The newest version!
package io.github.wycst.wast.jdbc.dialect;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * 数据库方言接口
 *
 * @author wangy
 */
public interface Dialect {

    public boolean supportsLimit();

    /**
     * 是否支持反引号
     *
     * @return
     */
    public boolean supportsBackquote();

    public String getLimitString(String sql, boolean hasOffset);

    public String getLimitString(String sql, long offset, int limit);

    public void setParameter(PreparedStatement ps, int index, Object param) throws SQLException;

    PreparedStatement prepareStatement(Connection conn, String sql, int type, int resultSetConcurrency) throws SQLException;

    void setPageDialectAgent(PageDialectAgent pageDialectAgent);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy