public class DefaultSequenceUpdater extends BaseDatabaseAccessor implements SequenceUpdater
SequenceUpdater. All sequences and identity columns that have a value lower than the value
defined by PROPKEY_LOWEST_ACCEPTABLE_SEQUENCE_VALUE are set to this value.| Modifier and Type | Field and Description |
|---|---|
protected long |
lowestAcceptableSequenceValue |
static String |
PROPKEY_LOWEST_ACCEPTABLE_SEQUENCE_VALUE |
configuration, dbSupports, defaultDbSupport, dialect, sqlHandler| Constructor and Description |
|---|
DefaultSequenceUpdater() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit(Properties configuration)
Initializes the lowest acceptable sequence value using the given configuration object
|
void |
updateSequences()
Updates all database sequences and identity columns to a sufficiently high value, so that test data be inserted
easily.
|
getDbSupport, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static final String PROPKEY_LOWEST_ACCEPTABLE_SEQUENCE_VALUE
protected long lowestAcceptableSequenceValue
protected void doInit(Properties configuration)
doInit in class BaseDatabaseAccessorconfiguration - The config, not nullpublic void updateSequences()
updateSequences in interface SequenceUpdaterCopyright © 2016. All Rights Reserved.