public class StatementJdbc30Test extends BaseJDBCTestCase
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CLIENT_SUITE_NAME |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
StatementJdbc30Test(java.lang.String name)
Create a test with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
assertFailedExecuteUpdateForColumnIndex(java.sql.SQLException ex)
Assert executeUpdateForColumnIndex failed.
|
private void |
assertFailedExecuteUpdateForColumnName(java.sql.SQLException ex)
Assert executeUpdateForColumnName failed.
|
private static junit.framework.Test |
baseSuite(java.lang.String name) |
static junit.framework.Test |
suite()
Create suite containing client and embedded tests and to run all tests in
this class
|
void |
testExecuteNoAutoGenColumnIndex()
After doing an insert into a table that doesn't have a generated column,
the test should fail.
|
void |
testExecuteNoAutoGenColumnName()
After doing an insert into a table that doesn't have a generated column,
the test should fail.
|
void |
testExecuteUpdateNoAutoGenColumnIndex()
Tests stmt.executeUpdate(String, int[]) After doing an insert into a
table that doesn't have a generated column, the test should fail.
|
void |
testExecuteUpdateNoAutoGenColumnName()
Tests stmt.executeUpdate(String, String[]) After doing an insert into a
table that doesn't have a generated column, the test should fail.
|
void |
testGetGenerateKeys()
Testing stmt.getGeneratedKeys()
|
void |
testGetMoreResults()
Tests stmt.getMoreResults(int)
|
void |
testGetResultSetHoldability()
Testing stmt.getResultSetHoldability()
|
void |
testInsertNoGenKeys()
Tests stmt.executeUpdate(String, int) with NO_GENERATED_KEYS.
|
void |
testReadingData()
Tests reading data from database
|
void |
testSelectNoGenKeys()
Tests stmt.execute(String, int) with NO_GENERATED_KEYS.
|
void |
xtestMaxOpenStatementsWithQueryTimeout()
DERBY-3198: Verify that we can have at least 16383 open Statements with
query timeout.
|
void |
xtestMultiExecWithQueryTimeout()
DERBY-3198: Verify that a statement can be executed
more than 32000 times, even when query timeout is enabled.
|
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, 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, 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, toStringprivate static final java.lang.String CLIENT_SUITE_NAME
public StatementJdbc30Test(java.lang.String name)
name - name of the test.public static junit.framework.Test suite()
private static junit.framework.Test baseSuite(java.lang.String name)
public void testReadingData()
throws java.sql.SQLException
java.sql.SQLException - if error occurspublic void testGetMoreResults()
throws java.sql.SQLException
java.sql.SQLException - if error occurspublic void testInsertNoGenKeys()
throws java.sql.SQLException
java.sql.SQLException - if error occurspublic void testExecuteUpdateNoAutoGenColumnIndex()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testExecuteUpdateNoAutoGenColumnName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testSelectNoGenKeys()
throws java.sql.SQLException
java.sql.SQLException - if error occurspublic void testExecuteNoAutoGenColumnIndex()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void assertFailedExecuteUpdateForColumnIndex(java.sql.SQLException ex)
ex - private void assertFailedExecuteUpdateForColumnName(java.sql.SQLException ex)
ex - public void testExecuteNoAutoGenColumnName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestMultiExecWithQueryTimeout()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void xtestMaxOpenStatementsWithQueryTimeout()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testGetResultSetHoldability()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testGetGenerateKeys()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.