public interface SequenceSupport
Modifier and Type | Method and Description |
---|---|
SequencePropertiesFactory |
createSequencePropertiesFactory(QualifiedNameFactory factory) |
String |
getAlterSequenceSQL(SequenceProperties sequence,
long value)
Returns a SQL statement used reset the current value of a sequence.
|
String |
getNextSequenceValueSQL(SequenceProperties sequence)
Returns a SQL statement for obtaining the next value the specified sequence
|
Collection<SequenceProperties> |
getSequences(DatabaseMetaData metaData,
SequencePropertiesFactory factory)
Returns a collection of sequences using dialect specific logic.
|
String |
parseSequence(String sql)
Parses a sequence name from the specified SQL statement.
|
String parseSequence(String sql) throws SQLException
sql
- a SQL statementSQLException
Collection<SequenceProperties> getSequences(DatabaseMetaData metaData, SequencePropertiesFactory factory) throws SQLException
metaData
- database meta dataSQLException
String getNextSequenceValueSQL(SequenceProperties sequence) throws SQLException
sequence
- a sequence nameSQLException
String getAlterSequenceSQL(SequenceProperties sequence, long value) throws SQLException
sequence
- a sequence namevalue
- a sequence valueSQLException
SequencePropertiesFactory createSequencePropertiesFactory(QualifiedNameFactory factory)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.