public interface Dialect extends LikeEscaper
| 限定符和类型 | 方法和说明 |
|---|---|
int |
bindLimitParametersAtEndOfQuery(RowSelection paramRowSelection,
PreparedStatement paramPreparedStatement,
int paramInt) |
int |
bindLimitParametersAtStartOfQuery(RowSelection paramRowSelection,
PreparedStatement paramPreparedStatement,
int paramInt) |
String |
generateTableDDL(DatabaseDescription database,
String catalog,
String schema,
String tableName) |
char |
getAfterQuote()
Get quote for symbol (e.g. table name, field name)
|
char |
getBeforeQuote()
Get quote for symbol (e.g. table name, field name)
|
String |
getDatabaseId() |
String |
getLimitSql(String query,
RowSelection rowSelection)
Given a limit and an offset, apply the limit clause to the query.
|
String |
getQuotedIdentifier(String identifier)
Database identifier: tableName, columnName, schema, keyword.
|
UrlParser |
getUrlParser() |
boolean |
isBindLimitParametersFirst()
limit parameter will be bind in the first or not,
if first ,the
bindLimitParametersAtStartOfQuery(RowSelection, PreparedStatement, int) will be execute
else the bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) will be execute |
boolean |
isBindLimitParametersInReverseOrder()
Whether bind parameter in reverse or not.
|
boolean |
isForceLimitUsage()
Generally if there is no, limit applied to a query we do not apply any limits
to the sql query.
|
boolean |
isSupportsBatchSql() |
boolean |
isSupportsBatchUpdates() |
boolean |
isSupportsDistinct()
Whether supports distinct keyword
|
boolean |
isSupportsLimit()
Does this dialect support some form of limiting query results
via a sql clause?
|
boolean |
isSupportsLimitOffset()
Does this dialect's LIMIT support (if any) additionally
support specifying an offset?
|
boolean |
isSupportsVariableLimit()
Does this dialect support bind variables (i.e., prepared statement
parameters) for its limit/offset?
|
boolean |
isUseLimitInVariableMode()
Whether set limit or offset with placeholder '?'
|
boolean |
isUseMaxForLimit() |
int |
registerResultSetOutParameter(CallableStatement paramCallableStatement,
int paramInt) |
void |
setMaxRows(RowSelection paramRowSelection,
PreparedStatement paramPreparedStatement) |
void |
setUseLimitInVariableMode(boolean variableMode)
Whether set limit or offset with placeholder '?'
|
appendmentAfterLikeClause, getLikeKeyCharsString getDatabaseId()
boolean isSupportsLimit()
boolean isForceLimitUsage()
boolean isSupportsLimitOffset()
boolean isSupportsVariableLimit()
boolean isUseLimitInVariableMode()
void setUseLimitInVariableMode(boolean variableMode)
String getLimitSql(String query, RowSelection rowSelection)
query - The query to which to apply the limit.boolean isBindLimitParametersInReverseOrder()
Here assume the normal order is: $offset, $limit so the reverse order is: $limit, $offset
Based on the assume, case 1: limit $offset, $limit ==> reverse = false case 2: limit $limit offset $offset ==> reverse = true
boolean isBindLimitParametersFirst()
bindLimitParametersAtStartOfQuery(RowSelection, PreparedStatement, int) will be execute
else the bindLimitParametersAtEndOfQuery(RowSelection, PreparedStatement, int) will be executeint bindLimitParametersAtStartOfQuery(RowSelection paramRowSelection, PreparedStatement paramPreparedStatement, int paramInt) throws SQLException
SQLExceptionint bindLimitParametersAtEndOfQuery(RowSelection paramRowSelection, PreparedStatement paramPreparedStatement, int paramInt) throws SQLException
SQLExceptionboolean isUseMaxForLimit()
int registerResultSetOutParameter(CallableStatement paramCallableStatement, int paramInt) throws SQLException
SQLExceptionvoid setMaxRows(RowSelection paramRowSelection, PreparedStatement paramPreparedStatement) throws SQLException
SQLExceptionString getQuotedIdentifier(String identifier)
identifier - the name can be one of them: tableName, columnName, schemaName etc..char getBeforeQuote()
char getAfterQuote()
boolean isSupportsDistinct()
boolean isSupportsBatchUpdates()
boolean isSupportsBatchSql()
String generateTableDDL(@NonNull DatabaseDescription database, String catalog, String schema, @NonNull String tableName) throws SQLException
SQLExceptionUrlParser getUrlParser()
Copyright © 2020. All rights reserved.