クラス PostgresDialect
- java.lang.Object
-
- com.github.mygreen.sqlmapper.core.dialect.DialectBase
-
- com.github.mygreen.sqlmapper.core.dialect.PostgresDialect
-
- すべての実装されたインタフェース:
Dialect
public class PostgresDialect extends DialectBase
PostgreSQL用の方言の定義- 作成者:
- T.TSUCHIE
-
-
フィールドの概要
-
クラスから継承されたフィールド com.github.mygreen.sqlmapper.core.dialect.DialectBase
operationHandlerMap
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 PostgresDialect()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 StringgetName()方言の名称を取得します。org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementergetSequenceIncrementer(DataSource dataSource, String sequenceName)シーケンスをインクリメントする処理を取得します。booleanneedsParameterForResultSet()プロシージャの呼び出しでResultSetに対してパラメータが必要かどうかを判定します。booleansupportsGenerationType(GeneratedValue.GenerationType generationType)サポートする主キーの生成戦略を判定します。-
クラスから継承されたメソッド com.github.mygreen.sqlmapper.core.dialect.DialectBase
convertGetCountSql, convertLimitSql, getCountSql, getDefaultGenerationType, getForUpdateSql, getHintComment, getOperationHandlerMap, getValueType, register, supportsSelectForUpdate
-
-
-
-
メソッドの詳細
-
getName
public String getName()
方言の名称を取得します。この値は、
SqlTemplateEngine.setSuffixName(String)にも使用されます。- 戻り値:
- "pgsql" を返します。
-
supportsGenerationType
public boolean supportsGenerationType(GeneratedValue.GenerationType generationType)
サポートする主キーの生成戦略を判定します。- パラメータ:
generationType- 主キーの生成戦略。- 戻り値:
- trueのときサポートします。
-
getSequenceIncrementer
public org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer getSequenceIncrementer(DataSource dataSource, String sequenceName)
シーケンスをインクリメントする処理を取得します。- パラメータ:
dataSource- データソースsequenceName- シーケンス名- 戻り値:
PostgresSequenceMaxValueIncrementerのインスタンスを返します。
-
needsParameterForResultSet
public boolean needsParameterForResultSet()
プロシージャの呼び出しでResultSetに対してパラメータが必要かどうかを判定します。- 定義:
needsParameterForResultSetインタフェース内Dialect- オーバーライド:
needsParameterForResultSetクラス内DialectBase- 戻り値:
- true を返します。
-
-