Class AbstractPreGenerateIdGenerator.IdContext

java.lang.Object
org.seasar.doma.jdbc.id.AbstractPreGenerateIdGenerator.IdContext
Enclosing class:
AbstractPreGenerateIdGenerator

public class AbstractPreGenerateIdGenerator.IdContext extends Object
A context for identity values.

This object increments identity value and holds it.

  • Field Details

    • initValue

      protected long initValue
    • allocated

      protected long allocated
  • Constructor Details

    • IdContext

      public IdContext()
  • Method Details

    • getNextValue

      public long getNextValue(IdGenerationConfig config)
      Returns the next identity value.
      Parameters:
      config - the configuration
      Returns:
      the next identity value
      Throws:
      JdbcException - if the identity generation is failed