io.github.wycst.wast.jdbc.dialect.Dialect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wast Show documentation
Show all versions of wast Show documentation
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);
}