getNextId(String name) This is a generic sequence ID generator that is based on a database table
called 'SEQUENCE', which contains two columns (NAME, NEXTID).
Constructor Detail
SequenceSqlMapDao
public SequenceSqlMapDao(DaoManager daoManager)(Code)
Method Detail
getNextId
public synchronized int getNextId(String name)(Code)
This is a generic sequence ID generator that is based on a database table
called 'SEQUENCE', which contains two columns (NAME, NEXTID). This
approach should work with any database.
Parameters: name - The name of the sequence. The Next ID @
Fields inherited from com.ibatis.jpetstore.persistence.sqlmapdao.BaseSqlMapDao