public class H212126Dialect extends StandardDialect
修飾子とタイプ | クラスと説明 |
---|---|
static class |
H212126Dialect.H212126ExpressionFunctions
H2のバージョン1.2.126用の
ExpressionFunctions です。 |
static class |
H212126Dialect.H212126JdbcMappingVisitor
H2のバージョン1.2.126用の
JdbcMappingVisitor の実装です。 |
static class |
H212126Dialect.H212126SqlLogFormattingVisitor
H2のバージョン1.2.126用の
SqlLogFormattingVisitor の実装です。 |
StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitor
修飾子とタイプ | フィールドと説明 |
---|---|
protected static int |
UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
一意制約違反を表すエラーコード
|
CLOSE_QUOTE, expressionFunctions, jdbcMappingVisitor, OPEN_QUOTE, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES
コンストラクタと説明 |
---|
H212126Dialect()
インスタンスを構築します。
|
H212126Dialect(ExpressionFunctions expressionFunctions)
ExpressionFunctions を指定してインスタンスを構築します。 |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor)
JdbcMappingVisitor を指定してインスタンスを構築します。 |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor)
JdbcMappingVisitor と SqlLogFormattingVisitor
を指定してインスタンスを構築します。 |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions)
|
H212126Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
SqlLogFormattingVisitor を指定してインスタンスを構築します。 |
修飾子とタイプ | メソッドと説明 |
---|---|
org.seasar.doma.internal.jdbc.sql.PreparedSql |
getIdentitySelectSql(java.lang.String qualifiedTableName,
java.lang.String columnName)
データベースで生成されたIDENTITYを取得するためのSQLを返します。
|
java.lang.String |
getName()
名前を返します。
|
org.seasar.doma.internal.jdbc.sql.PreparedSql |
getSequenceNextValSql(java.lang.String qualifiedSequenceName,
long allocationSize)
シーケンスの次の値を取得するためのSQLを返します。
|
boolean |
includesIdentityColumn()
INSERT文にIDENTITYカラムを含むかどうかを返します。
|
boolean |
isUniqueConstraintViolated(java.sql.SQLException sqlException)
一意制約違反かどうかを返します。
|
boolean |
supportsAutoGeneratedKeys()
Statement.getGeneratedKeys() をサポートしているかどうかを返します。 |
boolean |
supportsIdentity()
IDENTITYをサポートしているかどうかを返します。
|
boolean |
supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
悲観的排他制御をサポートしているかどうかを返します。
|
boolean |
supportsSequence()
シーケンスをサポートするかどうかを返します。
|
protected SqlNode |
toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
java.lang.String... aliases)
悲観的排他制御用のSQLノードに変換します。
|
protected SqlNode |
toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit)
ページング用のSQLノードに変換します。
|
applyQuote, createScriptBlockContext, getCauseSQLException, getErrorCode, getExpressionFunctions, getJdbcMappingVisitor, getResultSetType, getRootCause, getScriptBlockDelimiter, getSqlLogFormattingVisitor, getSQLState, removeQuote, supportsBatchUpdateResults, supportsResultSetReturningAsOutParameter, toCountCalculatingSqlNode, toCountGettingSqlNode, transformSelectSqlNode, transformSelectSqlNodeForGettingCount
protected static final int UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
public H212126Dialect()
public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor)
JdbcMappingVisitor
を指定してインスタンスを構築します。jdbcMappingVisitor
- Wrapper
をJDBCの型とマッピングするビジターpublic H212126Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
SqlLogFormattingVisitor
を指定してインスタンスを構築します。sqlLogFormattingVisitor
- SQLのバインド変数にマッピングされる Wrapper
をログ用のフォーマットされた文字列へと変換するビジターpublic H212126Dialect(ExpressionFunctions expressionFunctions)
ExpressionFunctions
を指定してインスタンスを構築します。expressionFunctions
- SQLのコメント式で利用可能な関数群public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor)
JdbcMappingVisitor
と SqlLogFormattingVisitor
を指定してインスタンスを構築します。public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions)
public java.lang.String getName()
Dialect
getName
インタフェース内 Dialect
getName
クラス内 StandardDialect
public boolean includesIdentityColumn()
Dialect
includesIdentityColumn
インタフェース内 Dialect
includesIdentityColumn
クラス内 StandardDialect
true
public org.seasar.doma.internal.jdbc.sql.PreparedSql getIdentitySelectSql(java.lang.String qualifiedTableName, java.lang.String columnName)
Dialect
Dialect.supportsIdentity()
が true
を返す場合にのみ呼び出し可能です。
getIdentitySelectSql
インタフェース内 Dialect
getIdentitySelectSql
クラス内 StandardDialect
qualifiedTableName
- テーブルの完全修飾名columnName
- IDENTITYカラムの名前public org.seasar.doma.internal.jdbc.sql.PreparedSql getSequenceNextValSql(java.lang.String qualifiedSequenceName, long allocationSize)
Dialect
Dialect.supportsSequence()
が true
を返す場合にのみ呼び出し可能です。
getSequenceNextValSql
インタフェース内 Dialect
getSequenceNextValSql
クラス内 StandardDialect
qualifiedSequenceName
- シーケンスの完全修飾名allocationSize
- 割り当てサイズpublic boolean isUniqueConstraintViolated(java.sql.SQLException sqlException)
Dialect
isUniqueConstraintViolated
インタフェース内 Dialect
isUniqueConstraintViolated
クラス内 StandardDialect
sqlException
- SQL例外true
protected SqlNode toPagingSqlNode(SqlNode sqlNode, long offset, long limit)
StandardDialect
toPagingSqlNode
クラス内 StandardDialect
sqlNode
- SQLノードoffset
- オフセットlimit
- リミットprotected SqlNode toForUpdateSqlNode(SqlNode sqlNode, SelectForUpdateType forUpdateType, int waitSeconds, java.lang.String... aliases)
StandardDialect
toForUpdateSqlNode
クラス内 StandardDialect
sqlNode
- SQLノードforUpdateType
- 悲観的排他制御の種別waitSeconds
- ロック取得の待機時間(秒)aliases
- ロック対象のカラムやテーブルのエイリアスpublic boolean supportsIdentity()
Dialect
supportsIdentity
インタフェース内 Dialect
supportsIdentity
クラス内 StandardDialect
true
public boolean supportsSequence()
Dialect
supportsSequence
インタフェース内 Dialect
supportsSequence
クラス内 StandardDialect
true
public boolean supportsAutoGeneratedKeys()
Dialect
Statement.getGeneratedKeys()
をサポートしているかどうかを返します。supportsAutoGeneratedKeys
インタフェース内 Dialect
supportsAutoGeneratedKeys
クラス内 StandardDialect
true
public boolean supportsSelectForUpdate(SelectForUpdateType type, boolean withTargets)
Dialect
supportsSelectForUpdate
インタフェース内 Dialect
supportsSelectForUpdate
クラス内 StandardDialect
type
- 悲観的排他制御の種別withTargets
- ロックの対象が指定されている場合 true
true