Module org.seasar.doma.core
Package org.seasar.doma.jdbc.id
Class AbstractPreGenerateIdGenerator.IdContext
java.lang.Object
org.seasar.doma.jdbc.id.AbstractPreGenerateIdGenerator.IdContext
- Enclosing class:
- AbstractPreGenerateIdGenerator
A context for identity values.
This object increments identity value and holds it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetNextValue(IdGenerationConfig config) Returns the next identity value.
-
Field Details
-
initValue
protected long initValue -
allocated
protected long allocated
-
-
Constructor Details
-
IdContext
public IdContext()
-
-
Method Details
-
getNextValue
Returns the next identity value.- Parameters:
config- the configuration- Returns:
- the next identity value
- Throws:
JdbcException- if the identity generation is failed
-