|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.id.AbstractIdGenerator
org.seasar.doma.jdbc.id.BuiltinIdentityIdGenerator
public class BuiltinIdentityIdGenerator
IdentityIdGenerator のデフォルトの実装です。
| コンストラクタの概要 | |
|---|---|
BuiltinIdentityIdGenerator()
|
|
| メソッドの概要 | |
|---|---|
Long |
generatePostInsert(IdGenerationConfig config,
Statement statement)
INSERTの実行後に識別子を生成します。 |
Long |
generatePreInsert(IdGenerationConfig config)
INSERTの実行前に識別子を生成します。 |
protected long |
getGeneratedValue(IdGenerationConfig config)
専用のSQLを使用してデータベースで生成された値を取得します。 |
protected long |
getGeneratedValue(IdGenerationConfig config,
Statement statement)
Statement.getGeneratedKeys() を使用してデータベースで生成された値を取得します。 |
GenerationType |
getGenerationType()
識別子を生成する方法を返します。 |
boolean |
includesIdentityColumn(IdGenerationConfig config)
INSERT文にIDENTITYカラムを含めるべきかどうかを返します。 |
boolean |
supportsAutoGeneratedKeys(IdGenerationConfig config)
Statement.getGeneratedKeys() をサポートしているかどうかを返します。 |
boolean |
supportsBatch(IdGenerationConfig config)
バッチ処理をサポートしているかどうかを返します。 |
| クラス org.seasar.doma.jdbc.id.AbstractIdGenerator から継承されたメソッド |
|---|
getGeneratedValue, getGeneratedValue, setupOptions |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BuiltinIdentityIdGenerator()
| メソッドの詳細 |
|---|
public boolean supportsBatch(IdGenerationConfig config)
IdGenerator の記述:
IdGenerator 内の supportsBatchconfig - 識別子生成の設定
truepublic boolean includesIdentityColumn(IdGenerationConfig config)
IdGenerator の記述:
IdGenerator 内の includesIdentityColumnconfig - 識別子生成の設定
truepublic boolean supportsAutoGeneratedKeys(IdGenerationConfig config)
IdGenerator の記述:Statement.getGeneratedKeys() をサポートしているかどうかを返します。
IdGenerator 内の supportsAutoGeneratedKeysconfig - 識別子生成の設定
truepublic Long generatePreInsert(IdGenerationConfig config)
IdGenerator の記述:
IdGenerator 内の generatePreInsertconfig - 識別子生成の設定
null
public Long generatePostInsert(IdGenerationConfig config,
Statement statement)
IdGenerator の記述:
IdGenerator 内の generatePostInsertconfig - 識別子生成の設定statement - INSERT文を実行した文
null
protected long getGeneratedValue(IdGenerationConfig config,
Statement statement)
Statement.getGeneratedKeys() を使用してデータベースで生成された値を取得します。
config - 識別子生成の設定statement - INSERT文を実行した Statement
JdbcException - 識別子の取得に失敗した場合protected long getGeneratedValue(IdGenerationConfig config)
config - 識別子生成の設定
JdbcException - 識別子の取得に失敗した場合public GenerationType getGenerationType()
IdGenerator の記述:
IdGenerator 内の getGenerationType
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||