クラス TableIdIncrementer


  • public class TableIdIncrementer
    extends AllocatableIdGenerator
    テーブルを用いてIDの採番を行います。
    作成者:
    T.TSUCHIE
    • コンストラクタの詳細

      • 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 - 割り当てる値
        戻り値:
        割り当て後のカウンターの値