org.objectweb.jorm.mapper.rdb.adapter.api
Interface SequenceAdapter
- RdbAdapter, RdbAdapter
- BasicRdbAdapter, CloudscapeAdapter, Db2Adapter, FirebirdAdapter, HsqlAdapter, MckoiAdapter, MysqlAdapter, Oracle8Adapter, OracleAdapter, PostgresAdapter, ProgressAdapter, SapdbAdapter, SqlserverAdapter, SybaseAdapter
public interface SequenceAdapter
Adapter for sequence management.
- S.Chassande-Barrioz
existSequence
public boolean existSequence(Connection connection,
String seqName)
throws SQLException checks the sequence existence
connection - is the JDBC connection to useseqName - is the sequence of the table
- true if the table exists, otherwise false.
getCreateSequence
public String getCreateSequence(String seqName)
throws UnsupportedOperationExceptionseqName - is the sequence name
- the SQL command to create a sequence
getCreateSequence
public String getCreateSequence(String seqName,
Integer startid,
Integer increment,
Integer cache)
throws UnsupportedOperationExceptionseqName - is the sequence namestartid - is the initial value of the sequenceincrement - is the increment sizecache - is the size of the cache
- the SQL command to create a sequence
getNextValInSequence
public String getNextValInSequence(String seqName)
seqName - is the sequence name
- the SQL command to gett a new value in a SQL
sequence which the name is given in parameter.