abstract class UpgradeChange extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.ThreadLocal<int[]> |
oldVersion
Thread local for the old version of the engine.
|
(package private) static int |
PH_CREATE
Create a database with old version
|
(package private) static int |
PH_HARD_UPGRADE
Perform hard upgrade with new version
|
(package private) static int |
PH_POST_HARD_UPGRADE
Boot the database with old release after hard upgrade.
|
(package private) static int |
PH_POST_SOFT_UPGRADE
Boot the database with old release after soft upgrade
|
(package private) static int |
PH_SOFT_UPGRADE
Perform soft upgrade with new version
|
(package private) static java.lang.ThreadLocal<java.lang.Integer> |
phase
Thread local for the phase of the test set.
|
(package private) static java.lang.String[] |
PHASES
Phases in upgrade test
|
(package private) static java.lang.String |
SQLSTATE_NEED_UPGRADE
SWL state thrown when a feature requires upgrade
to a newer version and thus cannot be run in soft
upgrade mode.
|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
UpgradeChange(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getOldFixPack()
Get the fixpack number of the old version being upgraded
from.
|
(package private) int |
getOldMajor()
Get the major number of the old version being upgraded
from.
|
(package private) int |
getOldMinor()
Get the minor number of the old version being upgraded
from.
|
(package private) int |
getOldPoint()
Get the point number of the old version being upgraded
from.
|
(package private) DerbyVersion |
getOldVersion()
Returns a
DerbyVersion object describing the old version. |
(package private) java.lang.String |
getOldVersionString()
Pretty-print the original version number.
|
(package private) int |
getPhase()
Get the phase of the upgrade sequence we are running.
|
(package private) java.lang.String |
getPhaseString()
Pretty-print the phase.
|
(package private) boolean |
oldAtLeast(int requiredMajor,
int requiredMinor)
Return true if the old version is equal to or more
recent that the passed in major and minor version.
|
(package private) boolean |
oldIs(int requiredMajor,
int requiredMinor)
Return true if the old version is equal
the passed in major and minor version.
|
(package private) boolean |
oldIs(int requiredMajor,
int requiredMinor,
int requiredFixpack,
int requiredPoint)
Return true if and only if the old version is equal to the
passed major, minor, fixpack and point version
specified version.
|
(package private) boolean |
oldLessThan(int major,
int minor,
int fixpack,
int point)
Return true if and only if the old version is less than the
specified version.
|
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toString
static final java.lang.ThreadLocal<java.lang.Integer> phase
static final java.lang.ThreadLocal<int[]> oldVersion
static final java.lang.String SQLSTATE_NEED_UPGRADE
static final java.lang.String[] PHASES
static final int PH_CREATE
static final int PH_SOFT_UPGRADE
static final int PH_POST_SOFT_UPGRADE
static final int PH_HARD_UPGRADE
static final int PH_POST_HARD_UPGRADE
final int getPhase()
final DerbyVersion getOldVersion()
DerbyVersion
object describing the old version.final int getOldMajor()
final int getOldMinor()
final int getOldFixPack()
final int getOldPoint()
boolean oldAtLeast(int requiredMajor, int requiredMinor)
boolean oldLessThan(int major, int minor, int fixpack, int point)
boolean oldIs(int requiredMajor, int requiredMinor, int requiredFixpack, int requiredPoint)
boolean oldIs(int requiredMajor, int requiredMinor)
java.lang.String getPhaseString()
java.lang.String getOldVersionString()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.