Identifier generator for databases (requires a JDBC3 driver) that provide
auto-increment columns.
This generator works by inserting a new row on the emulated sequence
(i.e. a table with just one column: an auto-increment column) and retrieving
the generated value.
It uses
es.udc.mypersonalizer.kernel.model.repository.sql.config.DatabaseTemplatesConfig.getInsertId(String) to obtain the query to insert the row and JDBC3's
java.sql.Statement.getGeneratedKeys to retrieve the generated
identifier.
author: Abel Muinho author: Fernando Bellas since: 1.0 |