クラス TableIdIncrementer
- java.lang.Object
-
- com.github.mygreen.sqlmapper.core.id.AllocatableIdGenerator
-
- com.github.mygreen.sqlmapper.core.id.TableIdIncrementer
-
public class TableIdIncrementer extends AllocatableIdGenerator
テーブルを用いてIDの採番を行います。- 作成者:
- T.TSUCHIE
-
-
ネストされたクラスの概要
-
クラスから継承されたネストされたクラス/インタフェース com.github.mygreen.sqlmapper.core.id.AllocatableIdGenerator
AllocatableIdGenerator.IdContext
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 TableIdIncrementer(@NonNull org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, @NonNull TableIdContext context)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected longallocateValue(String sequenceName, long allocationSize)新たに値を割り当てる。protected longgetCurrentValue(String sequenceName)現在のカウンターの値を取得する。-
クラスから継承されたメソッド com.github.mygreen.sqlmapper.core.id.AllocatableIdGenerator
getAllocationSize, nextValue
-
-
-
-
コンストラクタの詳細
-
TableIdIncrementer
public TableIdIncrementer(@NonNull @NonNull org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, @NonNull @NonNull TableIdContext context)
-
-
メソッドの詳細
-
getCurrentValue
protected long getCurrentValue(String sequenceName)
クラスからコピーされた説明:AllocatableIdGenerator現在のカウンターの値を取得する。- 定義:
getCurrentValueクラス内AllocatableIdGenerator- パラメータ:
sequenceName- 取得するシーケンス名- 戻り値:
- 現在のカウンターの値
-
allocateValue
protected long allocateValue(String sequenceName, long allocationSize)
クラスからコピーされた説明:AllocatableIdGenerator新たに値を割り当てる。- 定義:
allocateValueクラス内AllocatableIdGenerator- パラメータ:
sequenceName- 割り当てるキーの名称allocationSize- 割り当てる値- 戻り値:
- 割り当て後のカウンターの値
-
-