- All Superinterfaces:
IdGenerator
- All Known Implementing Classes:
BuiltinSequenceIdGenerator
A generator that uses a database SEQUENCE.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes this generator.voidsetAllocationSize(long allocationSize) Sets the allocation size.voidsetInitialValue(long initialValue) Sets the initial value.voidsetQualifiedSequenceName(String qualifiedSequenceName) Sets the qualified name of the sequence.Methods inherited from interface org.seasar.doma.jdbc.id.IdGenerator
generatePostInsert, generatePreInsert, generateValuesPostInsert, generateValuesPreInsert, getGenerationType, includesIdentityColumn, includesIdentityColumn, supportsAutoGeneratedKeys, supportsBatch
-
Method Details
-
setQualifiedSequenceName
Sets the qualified name of the sequence.- Parameters:
qualifiedSequenceName- the qualified name of the sequence
-
setInitialValue
void setInitialValue(long initialValue) Sets the initial value.- Parameters:
initialValue- the initial value
-
setAllocationSize
void setAllocationSize(long allocationSize) Sets the allocation size.- Parameters:
allocationSize- the allocation size
-
initialize
void initialize()Initializes this generator.- Throws:
JdbcException- if the initialization is failed
-