public class SqliteDialect extends StandardDialect
| Modifier and Type | Class and Description |
|---|---|
static class |
SqliteDialect.SqliteExpressionFunctions |
static class |
SqliteDialect.SqliteJdbcMappingVisitor |
static class |
SqliteDialect.SqliteSqlLogFormattingVisitor |
StandardDialect.StandardCriteriaBuilder, StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitorCLOSE_QUOTE, expressionFunctions, jdbcMappingVisitor, OPEN_QUOTE, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES| Constructor and Description |
|---|
SqliteDialect() |
SqliteDialect(ExpressionFunctions expressionFunctions) |
SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor) |
SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor) |
SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions) |
SqliteDialect(SqlLogFormattingVisitor sqlLogFormattingVisitor) |
| Modifier and Type | Method and Description |
|---|---|
PreparedSql |
getIdentitySelectSql(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName,
boolean isQuoteRequired,
boolean isIdColumnQuoteRequired)
Returns an SQL object to get IDENTITY values that are generated in the database.
|
java.lang.String |
getName()
The dialect name.
|
boolean |
includesIdentityColumn()
Whether this object includes the IDENTITY column in SQL INSERT statements.
|
boolean |
isUniqueConstraintViolated(java.sql.SQLException sqlException)
Whether the
sqlException represents an unique violation. |
boolean |
supportsIdentity()
Whether this object supports the IDENTITY column.
|
protected SqlNode |
toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
java.lang.String... aliases) |
protected SqlNode |
toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit) |
applyQuote, createScriptBlockContext, getAutoGeneratedKeysType, getCauseSQLException, getCriteriaBuilder, getErrorCode, getExpressionFunctions, getIdentityReservationSql, getJdbcMappingVisitor, getResultSetType, getRootCause, getScriptBlockDelimiter, getSequenceNextValSql, getSqlLogFormattingVisitor, getSQLState, getUpsertAssembler, removeQuote, supportsAutoGeneratedKeys, supportsBatchUpdateResults, supportsIdentityReservation, supportsResultSetReturningAsOutParameter, supportsSelectForUpdate, supportsSequence, toCountCalculatingSqlNode, toCountGettingSqlNode, transformSelectSqlNode, transformSelectSqlNodeForGettingCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsAliasInDeleteClause, supportsAliasInUpdateClause, supportsBatchExecutionReturningGeneratedValues, supportsModOperatorpublic SqliteDialect()
public SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor)
public SqliteDialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
public SqliteDialect(ExpressionFunctions expressionFunctions)
public SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor)
public SqliteDialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions)
public java.lang.String getName()
DialectgetName in interface DialectgetName in class StandardDialectpublic boolean includesIdentityColumn()
DialectincludesIdentityColumn in interface DialectincludesIdentityColumn in class StandardDialecttrue, if this object includes itpublic PreparedSql getIdentitySelectSql(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName, boolean isQuoteRequired, boolean isIdColumnQuoteRequired)
DialectThis method is available, only if Dialect.supportsIdentity() returns true.
getIdentitySelectSql in interface DialectgetIdentitySelectSql in class StandardDialectcatalogName - the catalog nameschemaName - the schema nametableName - the table namecolumnName - the IDENTITY column nameisQuoteRequired - whether the quotation marks are requiredisIdColumnQuoteRequired - whether the quotation marks are required for the IDENTITY columnprotected SqlNode toPagingSqlNode(SqlNode sqlNode, long offset, long limit)
toPagingSqlNode in class StandardDialectprotected SqlNode toForUpdateSqlNode(SqlNode sqlNode, SelectForUpdateType forUpdateType, int waitSeconds, java.lang.String... aliases)
toForUpdateSqlNode in class StandardDialectpublic boolean supportsIdentity()
DialectsupportsIdentity in interface DialectsupportsIdentity in class StandardDialecttrue, if this object supports itpublic boolean isUniqueConstraintViolated(java.sql.SQLException sqlException)
DialectsqlException represents an unique violation.isUniqueConstraintViolated in interface DialectisUniqueConstraintViolated in class StandardDialectsqlException - the SQL exceptiontrue, if the sqlException represents an unique violation