|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface Dialect
RDBMS の方言です。RDBMS の差異を吸収します。
このインタフェースの実装はスレッドセーフでなければいけません。
| メソッドの概要 | |
|---|---|
String |
applyQuote(String name)
引用符で囲みます。 |
ScriptBlockContext |
createScriptBlockContext()
スクリプト内のSQLブロックのコンテキストを生成します。 |
ExpressionFunctions |
getExpressionFunctions()
SQLのコメント式で使用可能な関数群を返します。 |
Sql<?> |
getIdentitySelectSql(String qualifiedTableName,
String columnName)
データベースで生成されたIDENTITYを取得するためのSQLを返します。 |
JdbcMappingVisitor |
getJdbcMappingVisitor()
Wrapper をJDBCの型とマッピングするビジターを返します。 |
String |
getName()
名前を返します。 |
JdbcType<ResultSet> |
getResultSetType()
ResultSet の JdbcType を返します。 |
Throwable |
getRootCause(SQLException sqlException)
SQL例外の根本原因を返します。 |
String |
getScriptBlockDelimiter()
スクリプト内のSQLブロックの区切り文字を返します。 |
Sql<?> |
getSequenceNextValSql(String qualifiedSequenceName,
long allocationSize)
シーケンスの次の値を取得するためのSQLを返します。 |
SqlLogFormattingVisitor |
getSqlLogFormattingVisitor()
SQLのバインド変数にマッピングされる Wrapper をログ用のフォーマットされた文字列へと変換するビジターを返します。 |
boolean |
includesIdentityColumn()
INSERT文にIDENTITYカラムを含むかどうかを返します。 |
boolean |
isUniqueConstraintViolated(SQLException sqlException)
一意制約違反かどうかを返します。 |
String |
removeQuote(String name)
引用符を取り除きます。 |
boolean |
supportsAutoGeneratedKeys()
Statement.getGeneratedKeys() をサポートしているかどうかを返します。 |
boolean |
supportsBatchUpdateResults()
Statement.executeBatch() が更新件数を返すことをサポートしているかどうかを返します。 |
boolean |
supportsIdentity()
IDENTITYをサポートしているかどうかを返します。 |
boolean |
supportsResultSetReturningAsOutParameter()
ストアドプロシージャ-やストアドファンクションで ResultSet
をOUTパラメータとして戻すことをサポートしてるかどうかを返します。 |
boolean |
supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
悲観的排他制御をサポートしているかどうかを返します。 |
boolean |
supportsSequence()
シーケンスをサポートするかどうかを返します。 |
SqlNode |
transformSelectSqlNode(SqlNode sqlNode,
SelectOptions options)
SQLノードを変換します。 |
SqlNode |
transformSelectSqlNodeForGettingCount(SqlNode sqlNode)
件数取得のためにSQLノードを変換します。 |
| メソッドの詳細 |
|---|
String getName()
SqlNode transformSelectSqlNode(SqlNode sqlNode,
SelectOptions options)
sqlNode - SQLノードoptions - オプション
DomaNullPointerException - 引数のいずれかが null の場合
JdbcException - オプションの指定に対応するSQLの変換がサポートされていない場合SqlNode transformSelectSqlNodeForGettingCount(SqlNode sqlNode)
sqlNode - SQLノード
DomaNullPointerException - 引数のいずれかが null の場合boolean isUniqueConstraintViolated(SQLException sqlException)
sqlException - SQL例外
true
DomaNullPointerException - sqlException が null の場合boolean includesIdentityColumn()
trueboolean supportsIdentity()
trueboolean supportsSequence()
trueboolean supportsAutoGeneratedKeys()
Statement.getGeneratedKeys() をサポートしているかどうかを返します。
trueboolean supportsBatchUpdateResults()
Statement.executeBatch() が更新件数を返すことをサポートしているかどうかを返します。
true
boolean supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
type - 悲観的排他制御の種別withTargets - ロックの対象が指定されている場合 true
trueboolean supportsResultSetReturningAsOutParameter()
ResultSet
をOUTパラメータとして戻すことをサポートしてるかどうかを返します。
true
Sql<?> getIdentitySelectSql(String qualifiedTableName,
String columnName)
supportsIdentity() が true を返す場合にのみ呼び出し可能です。
qualifiedTableName - テーブルの完全修飾名columnName - IDENTITYカラムの名前
DomaNullPointerException - 引数のいずれかが null の場合
Sql<?> getSequenceNextValSql(String qualifiedSequenceName,
long allocationSize)
supportsSequence() が true を返す場合にのみ呼び出し可能です。
qualifiedSequenceName - シーケンスの完全修飾名allocationSize - 割り当てサイズ
DomaNullPointerException - qualifiedSequenceName が null の場合JdbcType<ResultSet> getResultSetType()
ResultSet の JdbcType を返します。
supportsResultSetReturningAsOutParameter() が true
を返す場合にのみ呼び出し可能です。
ResultSet の JdbcTypeString applyQuote(String name)
name - テーブルやカラムの名前
name を引用符で囲んだ値String removeQuote(String name)
name - テーブルやカラムの名前
name から引用符を除去した値Throwable getRootCause(SQLException sqlException)
sqlException - SQL例外
DomaNullPointerException - sqlException が null の場合JdbcMappingVisitor getJdbcMappingVisitor()
Wrapper をJDBCの型とマッピングするビジターを返します。
Wrapper をJDBCの型とマッピングするビジターSqlLogFormattingVisitor getSqlLogFormattingVisitor()
Wrapper をログ用のフォーマットされた文字列へと変換するビジターを返します。
Wrapper をログ用のフォーマットされた文字列へと変換するビジターExpressionFunctions getExpressionFunctions()
ScriptBlockContext createScriptBlockContext()
String getScriptBlockDelimiter()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||