FileDocCategorySizeDatePackage
OracleSequenceDao.javaAPI DocExample626Sat Dec 27 17:31:52 GMT 2003org.springframework.samples.jpetstore.dao.ibatis

OracleSequenceDao

public class OracleSequenceDao extends SqlMapSequenceDao

Fields Summary
Constructors Summary
Methods Summary
public intgetNextId(java.lang.String name)
Get the next sequence using an Oracle thread-safe sequence

param
name Name is the name of the oracle sequence.
return
the next sequence

    Sequence sequence = new Sequence();
    sequence.setName(name);
    sequence = (Sequence) getSqlMapTemplate().executeQueryForObject("oracleSequence", sequence);
    return sequence.getNextId();