|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.id.AbstractIdGenerator
org.seasar.doma.jdbc.id.AbstractPreGenerateIdGenerator
public abstract class AbstractPreGenerateIdGenerator
INSERT文の実行前に識別子を生成するジェネレータの骨格実装です。
| 入れ子のクラスの概要 | |
|---|---|
class |
AbstractPreGenerateIdGenerator.IdContext
識別子コンテキストです。 |
| フィールドの概要 | |
|---|---|
protected long |
allocationSize
割り当てサイズ |
protected ConcurrentMap<String,AbstractPreGenerateIdGenerator.IdContext> |
idContextMap
データソース名をキー、識別子コンテキストを値とするマップ |
protected long |
initialValue
初期値 |
| コンストラクタの概要 | |
|---|---|
AbstractPreGenerateIdGenerator()
|
|
| メソッドの概要 | |
|---|---|
Long |
generatePostInsert(IdGenerationConfig config,
Statement statement)
INSERTの実行後に識別子を生成します。 |
Long |
generatePreInsert(IdGenerationConfig config)
INSERTの実行前に識別子を生成します。 |
protected AbstractPreGenerateIdGenerator.IdContext |
getIdContext(IdGenerationConfig config)
識別子コンテキストを返します。 |
protected abstract long |
getNewInitialValue(IdGenerationConfig config)
新しい初期値を返します。 |
boolean |
includesIdentityColumn(IdGenerationConfig config)
INSERT文にIDENTITYカラムを含めるべきかどうかを返します。 |
void |
setAllocationSize(long allocationSize)
割り当てサイズを設定します。 |
void |
setInitialValue(long initialValue)
初期値を設定します。 |
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 |
| インタフェース org.seasar.doma.jdbc.id.IdGenerator から継承されたメソッド |
|---|
getGenerationType |
| フィールドの詳細 |
|---|
protected long initialValue
protected long allocationSize
protected ConcurrentMap<String,AbstractPreGenerateIdGenerator.IdContext> idContextMap
| コンストラクタの詳細 |
|---|
public AbstractPreGenerateIdGenerator()
| メソッドの詳細 |
|---|
public void setInitialValue(long initialValue)
initialValue - 初期値public void setAllocationSize(long allocationSize)
allocationSize - 割り当てサイズpublic boolean supportsBatch(IdGenerationConfig config)
IdGenerator の記述:
config - 識別子生成の設定
truepublic boolean supportsAutoGeneratedKeys(IdGenerationConfig config)
IdGenerator の記述:Statement.getGeneratedKeys() をサポートしているかどうかを返します。
config - 識別子生成の設定
truepublic boolean includesIdentityColumn(IdGenerationConfig config)
IdGenerator の記述:
config - 識別子生成の設定
truepublic Long generatePreInsert(IdGenerationConfig config)
IdGenerator の記述:
config - 識別子生成の設定
null
public Long generatePostInsert(IdGenerationConfig config,
Statement statement)
IdGenerator の記述:
config - 識別子生成の設定statement - INSERT文を実行した文
nullprotected AbstractPreGenerateIdGenerator.IdContext getIdContext(IdGenerationConfig config)
config - 識別子生成の設定
protected abstract long getNewInitialValue(IdGenerationConfig config)
config - 識別子生成の設定
JdbcException - 新しい初期値の取得に失敗した場合
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||