public abstract class SURBaseTest extends BaseJDBCTestCase
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
CURSOR_NOT_POSITIONED_ON_INSERT_ROW |
(package private) static java.lang.String |
CURSOR_NOT_UPDATABLE_SQL_STATE |
(package private) static java.lang.String |
CURSOR_OPERATION_CONFLICT |
(package private) static java.lang.String |
FOR_UPDATE_NOT_PERMITTED_SQL_STATE
Error codes and SQL state
|
(package private) static java.lang.String |
INVALID_CURSOR_STATE_NO_CURRENT_ROW |
(package private) static java.lang.String |
LOCK_TIMEOUT_EXPRESSION_SQL_STATE |
(package private) static java.lang.String |
LOCK_TIMEOUT_SQL_STATE |
(package private) static java.lang.String |
QUERY_NOT_QUALIFIED_FOR_UPDATABLE_RESULTSET |
(package private) int |
recordCount |
(package private) static java.lang.String |
RESULTSET_NOT_UPDATABLE_SQL_STATE |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
SURBaseTest(java.lang.String name)
Creates a new instance of SURBaseTest
|
SURBaseTest(java.lang.String name,
int records)
Creates a new instance of SURBaseTest
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertFailOnUpdate(java.sql.ResultSet rs)
Assert that update of ResultSet fails with a SQLException
due to read-only ResultSet.
|
protected void |
assertWarning(java.sql.SQLWarning warn,
java.lang.String sqlState)
Assert that a warning was received
|
protected void |
initializeConnection(java.sql.Connection conn)
Override a connection's default state to ensure it
is always in autocommit false and repeatable
read as a starting point.
|
protected void |
scrollBackward(java.sql.ResultSet rs)
Scroll backward to the beginning of the ResultSet, and verify tuples
while scrolling.
|
protected void |
scrollBackwardAndUpdate(java.sql.ResultSet rs)
Scroll backward and update the records using updateXXX() and updateRow()
|
protected void |
scrollBackwardAndUpdatePositioned(java.sql.ResultSet rs)
Scroll backward and update the records using positioned updates.
|
protected void |
scrollForward(java.sql.ResultSet rs)
Scroll forward to the end of the ResultSet, and verify tuples while
scrolling.
|
protected void |
scrollForwardAndUpdate(java.sql.ResultSet rs)
Scroll forward and update the tuples using updateXXX() and updateRow()
|
protected void |
scrollForwardAndUpdatePositioned(java.sql.ResultSet rs)
Scroll forward and do positioned updates.
|
protected void |
updateTuple(java.sql.ResultSet rs)
Update the current tuple in the ResultSet using updateXXX() and
updateRow()
|
protected void |
updateTuplePositioned(java.sql.ResultSet rs)
Update the current tuple in the ResultSet using positioned update
|
protected void |
verifyTuple(java.sql.ResultSet rs)
Verify the data of a tuple in the ResultSet, based on the data
that were inserted.
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, 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, toStringfinal int recordCount
static final java.lang.String FOR_UPDATE_NOT_PERMITTED_SQL_STATE
static final java.lang.String CURSOR_NOT_UPDATABLE_SQL_STATE
static final java.lang.String RESULTSET_NOT_UPDATABLE_SQL_STATE
static final java.lang.String LOCK_TIMEOUT_SQL_STATE
static final java.lang.String LOCK_TIMEOUT_EXPRESSION_SQL_STATE
static final java.lang.String INVALID_CURSOR_STATE_NO_CURRENT_ROW
static final java.lang.String CURSOR_OPERATION_CONFLICT
static final java.lang.String QUERY_NOT_QUALIFIED_FOR_UPDATABLE_RESULTSET
static final java.lang.String CURSOR_NOT_POSITIONED_ON_INSERT_ROW
public SURBaseTest(java.lang.String name)
public SURBaseTest(java.lang.String name,
int records)
protected void initializeConnection(java.sql.Connection conn)
throws java.sql.SQLException
initializeConnection in class BaseJDBCTestCaseconn - Connection to be intializedjava.sql.SQLException - Error setting the initial state.protected void verifyTuple(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void updateTuple(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void updateTuplePositioned(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollForward(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollBackward(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollForwardAndUpdate(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollForwardAndUpdatePositioned(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollBackwardAndUpdate(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void scrollBackwardAndUpdatePositioned(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void assertFailOnUpdate(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void assertWarning(java.sql.SQLWarning warn,
java.lang.String sqlState)
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.