public final class HoldCursorJDBC30Test extends BaseJDBCTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
HoldCursorJDBC30Test(java.lang.String name)
Public constructor required for running test as standalone JUnit.
|
Modifier and Type | Method and Description |
---|---|
private static junit.framework.Test |
decorateTest(junit.framework.Test test)
This will allow us to decorate the test for each driver separately
|
protected void |
setUp()
Disabling auto-commit for all tests
|
static junit.framework.Test |
suite() |
void |
testBasicBtreeScanForZeroRowsReadOnlyNoGroupFetch()
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBasicBtreeScanForZeroRowsUpdateNonkeyfield()
basic btree scan tests (zero rows/update nonkey field)
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBasicBtreeScanTestsForMultipleRowsOrReadOnly()
basic btree scan tests (multiple rows/read only/no group fetch)
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBasicBtreeScanTestsForMultipleRowsOrUpdateNonkeyField()
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBasicHeapScanMultiRows()
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBasicHeapScanZeroRows()
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testBeetle4902()
test query plans which use reopenScan() on a btree to
do the inner table processing of a join.
|
void |
testBeetle4902WithBulkFetchDefaultSet()
test query plans which use reopenScan() on a btree to
do the inner table processing of a join.
|
void |
testDistinctScalarAggregateResultSet()
test of hold cursor code in DistinctScalarAggregateResultSet.java
Directed test of hold cursor as applies to sort scans opened by
DistinctScalarAggregateResultSet.java.
|
void |
testDistinctScalarAggregateResultSetGrouped()
test of hold cursor code in GroupedAggregateResultSet.java
Directed test of hold cursor as applies to sort scans opened by
GroupedAggregateResultSet.java.
|
void |
testOrder()
basic tests for cursors with order by
The following tests that no matter where commit comes in the state of
the scan that the scan will continue after the commit.
|
void |
testPositionPurgedPage()
test scan positioned on a page which has been purged (should really
not be any different than a row being purged).
|
void |
testPositionPurgedRow()
test scan positioned on a row which has been purged.
|
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, toString
public HoldCursorJDBC30Test(java.lang.String name)
private static junit.framework.Test decorateTest(junit.framework.Test test)
public static junit.framework.Test suite()
protected void setUp() throws java.sql.SQLException
setUp
in class junit.framework.TestCase
java.sql.SQLException
public void testBasicHeapScanZeroRows() throws java.sql.SQLException
java.sql.SQLException
public void testBasicHeapScanMultiRows() throws java.sql.SQLException
java.sql.SQLException
public void testBasicBtreeScanForZeroRowsUpdateNonkeyfield() throws java.sql.SQLException
java.sql.SQLException
public void testBasicBtreeScanTestsForMultipleRowsOrUpdateNonkeyField() throws java.sql.SQLException
java.sql.SQLException
public void testBasicBtreeScanForZeroRowsReadOnlyNoGroupFetch() throws java.sql.SQLException
java.sql.SQLException
public void testBasicBtreeScanTestsForMultipleRowsOrReadOnly() throws java.sql.SQLException
java.sql.SQLException
public void testOrder() throws java.sql.SQLException
java.sql.SQLException
public void testDistinctScalarAggregateResultSet() throws java.sql.SQLException
java.sql.SQLException
public void testDistinctScalarAggregateResultSetGrouped() throws java.sql.SQLException
java.sql.SQLException
public void testPositionPurgedRow() throws java.sql.SQLException
java.sql.SQLException
public void testPositionPurgedPage() throws java.sql.SQLException
java.sql.SQLException
public void testBeetle4902() throws java.sql.SQLException
java.sql.SQLException
public void testBeetle4902WithBulkFetchDefaultSet() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.