|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.dialect.StandardDialect
org.seasar.doma.jdbc.dialect.PostgresDialect
public class PostgresDialect
PostgreSQL用の方言です。
| 入れ子のクラスの概要 | |
|---|---|
static class |
PostgresDialect.PostgresExpressionFunctions
PostgreSQL用の ExpressionFunctions です。 |
static class |
PostgresDialect.PostgresJdbcMappingVisitor
PostgreSQL用の JdbcMappingVisitor の実装です。 |
static class |
PostgresDialect.PostgresResultSetType
PostgreSQL用の ResultSet の JdbcType の実装です。 |
static class |
PostgresDialect.PostgresScriptBlockContext
PostgreSQL用の ScriptBlockContext です。 |
static class |
PostgresDialect.PostgresSqlLogFormattingVisitor
PostgreSQL用の SqlLogFormattingVisitor の実装です。 |
| クラス org.seasar.doma.jdbc.dialect.StandardDialect から継承された入れ子のクラス/インタフェース |
|---|
StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitor |
| フィールドの概要 | |
|---|---|
protected static JdbcType<ResultSet> |
RESULT_SET
ResultSet の JDBC型 |
protected static String |
UNIQUE_CONSTRAINT_VIOLATION_STATE_CODE
一意制約違反を表す SQLState |
| クラス org.seasar.doma.jdbc.dialect.StandardDialect から継承されたフィールド |
|---|
CLOSE_QUOTE, expressionFunctions, jdbcMappingVisitor, OPEN_QUOTE, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES |
| コンストラクタの概要 | |
|---|---|
PostgresDialect()
インスタンスを構築します。 |
|
PostgresDialect(ExpressionFunctions expressionFunctions)
ExpressionFunctions を指定してインスタンスを構築します。 |
|
PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor)
JdbcMappingVisitor を指定してインスタンスを構築します。 |
|
PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor)
JdbcMappingVisitor と SqlLogFormattingVisitor
を指定してインスタンスを構築します。 |
|
PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions)
JdbcMappingVisitor と SqlLogFormattingVisitor と
ExpressionFunctions を指定してインスタンスを構築します。 |
|
PostgresDialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
SqlLogFormattingVisitor を指定してインスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
ScriptBlockContext |
createScriptBlockContext()
スクリプト内のSQLブロックのコンテキストを生成します。 |
org.seasar.doma.internal.jdbc.sql.PreparedSql |
getIdentitySelectSql(String qualifiedTableName,
String columnName)
データベースで生成されたIDENTITYを取得するためのSQLを返します。 |
String |
getName()
名前を返します。 |
JdbcType<ResultSet> |
getResultSetType()
ResultSet の JdbcType を返します。 |
org.seasar.doma.internal.jdbc.sql.PreparedSql |
getSequenceNextValSql(String qualifiedSequenceName,
long allocationSize)
シーケンスの次の値を取得するためのSQLを返します。 |
boolean |
isUniqueConstraintViolated(SQLException sqlException)
一意制約違反かどうかを返します。 |
boolean |
supportsIdentity()
IDENTITYをサポートしているかどうかを返します。 |
boolean |
supportsResultSetReturningAsOutParameter()
ストアドプロシージャ-やストアドファンクションで ResultSet
をOUTパラメータとして戻すことをサポートしてるかどうかを返します。 |
boolean |
supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
悲観的排他制御をサポートしているかどうかを返します。 |
boolean |
supportsSequence()
シーケンスをサポートするかどうかを返します。 |
protected SqlNode |
toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
String... aliases)
悲観的排他制御用のSQLノードに変換します。 |
protected SqlNode |
toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit)
ページング用のSQLノードに変換します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final String UNIQUE_CONSTRAINT_VIOLATION_STATE_CODE
protected static final JdbcType<ResultSet> RESULT_SET
ResultSet の JDBC型
| コンストラクタの詳細 |
|---|
public PostgresDialect()
public PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor)
JdbcMappingVisitor を指定してインスタンスを構築します。
jdbcMappingVisitor - Wrapper をJDBCの型とマッピングするビジターpublic PostgresDialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
SqlLogFormattingVisitor を指定してインスタンスを構築します。
sqlLogFormattingVisitor - SQLのバインド変数にマッピングされる Wrapper
をログ用のフォーマットされた文字列へと変換するビジターpublic PostgresDialect(ExpressionFunctions expressionFunctions)
ExpressionFunctions を指定してインスタンスを構築します。
expressionFunctions - SQLのコメント式で利用可能な関数群
public PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor)
JdbcMappingVisitor と SqlLogFormattingVisitor
を指定してインスタンスを構築します。
jdbcMappingVisitor - Wrapper をJDBCの型とマッピングするビジターsqlLogFormattingVisitor - SQLのバインド変数にマッピングされる Wrapper
をログ用のフォーマットされた文字列へと変換するビジター
public PostgresDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions)
JdbcMappingVisitor と SqlLogFormattingVisitor と
ExpressionFunctions を指定してインスタンスを構築します。
jdbcMappingVisitor - Wrapper をJDBCの型とマッピングするビジターsqlLogFormattingVisitor - SQLのバインド変数にマッピングされる Wrapper
をログ用のフォーマットされた文字列へと変換するビジターexpressionFunctions - SQLのコメント式で利用可能な関数群| メソッドの詳細 |
|---|
public String getName()
Dialect の記述:
Dialect 内の getNameStandardDialect 内の getName
protected SqlNode toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
String... aliases)
StandardDialect の記述:
StandardDialect 内の toForUpdateSqlNodesqlNode - SQLノードforUpdateType - 悲観的排他制御の種別waitSeconds - ロック取得の待機時間(秒)aliases - ロック対象のカラムやテーブルのエイリアス
protected SqlNode toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit)
StandardDialect の記述:
StandardDialect 内の toPagingSqlNodesqlNode - SQLノードoffset - オフセットlimit - リミット
public boolean isUniqueConstraintViolated(SQLException sqlException)
Dialect の記述:
Dialect 内の isUniqueConstraintViolatedStandardDialect 内の isUniqueConstraintViolatedsqlException - SQL例外
true
public org.seasar.doma.internal.jdbc.sql.PreparedSql getIdentitySelectSql(String qualifiedTableName,
String columnName)
Dialect の記述:
Dialect.supportsIdentity() が true を返す場合にのみ呼び出し可能です。
Dialect 内の getIdentitySelectSqlStandardDialect 内の getIdentitySelectSqlqualifiedTableName - テーブルの完全修飾名columnName - IDENTITYカラムの名前
public org.seasar.doma.internal.jdbc.sql.PreparedSql getSequenceNextValSql(String qualifiedSequenceName,
long allocationSize)
Dialect の記述:
Dialect.supportsSequence() が true を返す場合にのみ呼び出し可能です。
Dialect 内の getSequenceNextValSqlStandardDialect 内の getSequenceNextValSqlqualifiedSequenceName - シーケンスの完全修飾名allocationSize - 割り当てサイズ
public boolean supportsIdentity()
Dialect の記述:
Dialect 内の supportsIdentityStandardDialect 内の supportsIdentitytruepublic boolean supportsSequence()
Dialect の記述:
Dialect 内の supportsSequenceStandardDialect 内の supportsSequencetrue
public boolean supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
Dialect の記述:
Dialect 内の supportsSelectForUpdateStandardDialect 内の supportsSelectForUpdatetype - 悲観的排他制御の種別withTargets - ロックの対象が指定されている場合 true
truepublic boolean supportsResultSetReturningAsOutParameter()
Dialect の記述:ResultSet
をOUTパラメータとして戻すことをサポートしてるかどうかを返します。
Dialect 内の supportsResultSetReturningAsOutParameterStandardDialect 内の supportsResultSetReturningAsOutParametertruepublic JdbcType<ResultSet> getResultSetType()
Dialect の記述:ResultSet の JdbcType を返します。
Dialect.supportsResultSetReturningAsOutParameter() が true
を返す場合にのみ呼び出し可能です。
Dialect 内の getResultSetTypeStandardDialect 内の getResultSetTypeResultSet の JdbcTypepublic ScriptBlockContext createScriptBlockContext()
Dialect の記述:
Dialect 内の createScriptBlockContextStandardDialect 内の createScriptBlockContext
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||