- All Superinterfaces:
IdGenerator
- All Known Implementing Classes:
BuiltinTableIdGenerator
A generator that uses a database TABLE.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes this generator.voidsetAllocationSize(long allocationSize) Sets the allocation size.voidsetInitialValue(long initialValue) Sets the initial value.voidsetPkColumnName(String pkColumnName) Sets the column name of the primary key.voidsetPkColumnValue(String pkColumnValue) Sets the column value of the primary key.voidsetQualifiedTableName(String qualifiedTableName) Sets the qualified name of the table.voidsetValueColumnName(String valueColumnName) Sets the column name of the identity value.Methods inherited from interface org.seasar.doma.jdbc.id.IdGenerator
generatePostInsert, generatePreInsert, generateValuesPostInsert, generateValuesPreInsert, getGenerationType, includesIdentityColumn, includesIdentityColumn, supportsAutoGeneratedKeys, supportsBatch
-
Method Details
-
setQualifiedTableName
Sets the qualified name of the table.- Parameters:
qualifiedTableName- the qualified name of the table
-
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
-
setPkColumnName
Sets the column name of the primary key.- Parameters:
pkColumnName- the column name of the primary key
-
setPkColumnValue
Sets the column value of the primary key.- Parameters:
pkColumnValue- the column value of the primary key
-
setValueColumnName
Sets the column name of the identity value.- Parameters:
valueColumnName- the column name of the identity value
-
initialize
void initialize()Initializes this generator.- Throws:
JdbcException- if the initialization is failed
-