TestBase.ChildBASE_TEST_DIR, config, start, uniqueId| Constructor and Description |
|---|
TestRunscript() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called when the database is closed.
|
void |
fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
This method is called for each triggered action.
|
void |
init(java.sql.Connection conn,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
This method is called by the database engine once when initializing the
trigger.
|
static void |
main(java.lang.String... a)
Run just this test.
|
void |
remove()
This method is called when the trigger is dropped.
|
void |
test()
This method will be called by the test framework.
|
static int |
test(int a)
This method is called via reflection from the database.
|
assertContains, assertEqualDatabases, assertEqualReaders, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualStreams, assertFalse, assertFalse, assertKnownException, assertKnownException, assertNull, assertResult, assertResultRowCount, assertResultSetMeta, assertResultSetOrdered, assertSingleValue, assertSmaller, assertStartsWith, assertThrows, assertThrows, assertThrows, assertThrows, assertTrue, assertTrue, buildChild, crash, createCaller, createClassProxy, createFailingStream, deleteDb, deleteDb, eatMemory, execute, execute, fail, fail, freeMemory, getBaseDir, getClassPath, getConnection, getConnection, getFilePassword, getMemoryUsed, getMemoryUsedBytes, getPassword, getPassword, getSize, getTestDir, getTestName, getURL, getUser, init, init, logError, logErrorMessage, println, printTime, printTimeMemory, readString, runTest, startServerIfRequired, throwException, trace, trace, traceMemorypublic static void main(java.lang.String... a)
throws java.lang.Exception
a - ignoredjava.lang.Exceptionpublic void test()
throws java.lang.Exception
TestBasepublic static int test(int a)
a - the valuepublic void init(java.sql.Connection conn,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
Triggerinit in interface Triggerconn - a connection to the database (a system connection)schemaName - the name of the schematriggerName - the name of the trigger used in the CREATE TRIGGER
statementtableName - the name of the tablebefore - whether the fire method is called before or after the
operation is performedtype - the operation type: INSERT, UPDATE, DELETE, SELECT, or a
combination (this parameter is a bit field)public void fire(java.sql.Connection conn,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
TriggerThe row arrays contain all columns of the table, in the same order as defined in the table.
The trigger itself may change the data in the newRow array.
public void close()
Trigger