@Slf4j @CompileStatic class JdbcIdGenerator extends Object
A Jdbc implementation of the IdGenerator. Will query a central table for new ids. defaults to the following but can be set accordingly: table - "NEWOBJECTID" keyColumn - "KeyName" idColumn - "NextId" seedValue - "1000" this is the starting ID fi the row does not exist and is created by this object. setCreateIdRow = false to not create the row automatically if it does not exist
Type | Name and description |
---|---|
String |
idColumn |
JdbcTemplate |
jdbcTemplate |
String |
keyColumn |
long |
seedValue |
String |
table |