public class SQLStatementInstrumentor extends Object
| 构造器和说明 |
|---|
SQLStatementInstrumentor() |
public void init()
public boolean beginIfSupportsLimit(Statement statement)
public boolean beginIfSupportsLimit(String databaseId)
public boolean beginIfSupportsLimit(DatabaseMetaData databaseMetaData)
public Dialect getCurrentDialect()
public String instrumentLimitSql(String sql, RowSelection selection)
public String instrumentLimitSql(Dialect dialect, String sql, RowSelection selection)
public String instrumentOrderByLimitSql(String sql, OrderBy orderBy, RowSelection selection)
public String instrumentOrderByLimitSql(String sql, OrderBy orderBy, Dialect dialect, RowSelection selection)
public void finish()
public PreparedStatement bindParameters(PreparedStatement statement, PagedPreparedParameterSetter parameterSetter, QueryParameters queryParameters, boolean setOriginalParameters) throws SQLException, SQLDialectException
statement - the sql statementqueryParameters - all the original parametersSQLException - throw it if errorSQLDialectExceptionpublic PreparedStatement bindParameters(Dialect dialect, PreparedStatement statement, PagedPreparedParameterSetter parameterSetter, QueryParameters queryParameters, boolean setOriginalParameters) throws SQLException, SQLDialectException
statement - the sql statementqueryParameters - all the original parametersSQLException - throw it if errorSQLDialectExceptionpublic SQLInstrumentConfig getConfig()
@NonNull public void setConfig(SQLInstrumentConfig config)
public void setDialectRegistry(DialectRegistry dialectRegistry)
Copyright © 2019. All rights reserved.