| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.derby.iapi.store.access.AccessFactory |
store |
private static java.lang.String |
testService |
out, shortModuleToTestName, startParams| Constructor and Description |
|---|
T_AccessFactory() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
alterTable(org.apache.derby.iapi.store.access.TransactionController tc,
boolean temporary)
Test the access level alter table interface for adding columns.
|
private int |
checkAConglom(org.apache.derby.iapi.store.access.TransactionController tc,
org.apache.derby.iapi.types.DataValueDescriptor[] scratch_template,
long conglomId,
int testValue)
Open a scan on the conglomerate for the given conglom id, and verify
that it has rows with the given test value.
|
protected boolean |
commitTest(org.apache.derby.iapi.store.access.TransactionController tc) |
private long |
createAConglom(org.apache.derby.iapi.store.access.TransactionController tc,
int testValue,
boolean temporary) |
private long |
createBtree(org.apache.derby.iapi.store.access.TransactionController tc,
long baseConglomId,
boolean temporary) |
protected boolean |
deletetest(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value1,
int value2) |
protected boolean |
dropTest(org.apache.derby.iapi.store.access.TransactionController tc) |
private void |
flush_cache() |
private org.apache.derby.iapi.types.DataValueDescriptor[] |
getBtreeTemplate(org.apache.derby.iapi.store.access.TransactionController tc,
long baseConglomId) |
java.lang.String |
getModuleToTestProtocolName()
Get the name of the protocol for the module to test.
|
protected boolean |
getTableProperties(org.apache.derby.iapi.store.access.TransactionController tc)
Test the access level getTableProperties() call.
|
protected boolean |
holdCursor(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
insert_bench(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
insertAndFetch(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value) |
protected boolean |
insertAndFetchExample(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
insertAndUpdate(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value1,
int value2) |
protected boolean |
insertAndUpdateExample(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
nestedUserTransaction(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
partialScan(org.apache.derby.iapi.store.access.TransactionController tc)
Test partial scans.
|
protected boolean |
positionAtRowLocation(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
readUncommitted(org.apache.derby.iapi.store.access.TransactionController tc)
Test critical cases for read uncommitted.
|
static java.lang.String |
repeatString(java.lang.String data,
int repeat) |
protected void |
runTests()
Run the test.
|
protected boolean |
scanExample(org.apache.derby.iapi.store.access.TransactionController tc) |
protected boolean |
scanInfo(org.apache.derby.iapi.store.access.TransactionController tc)
Test the access level ScanInfo interface.
|
protected boolean |
sortCost(org.apache.derby.iapi.store.access.TransactionController tc)
Test the access level SortCost interface.
|
protected boolean |
storeCost(org.apache.derby.iapi.store.access.TransactionController tc)
Test the access level StoreCost interface.
|
protected boolean |
tempTest(org.apache.derby.iapi.store.access.TransactionController tc) |
private void |
testOpsBeforeFirstNext(org.apache.derby.iapi.store.access.ScanController scan,
org.apache.derby.iapi.types.DataValueDescriptor[] row) |
protected boolean |
transactionalProperties(org.apache.derby.iapi.store.access.TransactionController tc)
Test transactional properties
|
protected boolean |
updatelocks_0(org.apache.derby.iapi.store.access.TransactionController tc,
int isolation_level) |
protected boolean |
updatelocks(org.apache.derby.iapi.store.access.TransactionController tc) |
boot, Execute, FAIL, PASS, REPORT, stop, UnitTestDuration, UnitTestTypeprivate static final java.lang.String testService
org.apache.derby.iapi.store.access.AccessFactory store
public java.lang.String getModuleToTestProtocolName()
T_GenericgetModuleToTestProtocolName in class T_Genericprotected void runTests()
throws T_Fail
T_Genericprivate void flush_cache()
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprotected boolean insertAndFetchExample(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean insertAndFetch(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean insertAndUpdateExample(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean deletetest(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value1,
int value2)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean insertAndUpdate(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
int value1,
int value2)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean scanExample(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean dropTest(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean getTableProperties(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprivate boolean alterTable(org.apache.derby.iapi.store.access.TransactionController tc,
boolean temporary)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.temporary - flag which tells whether or not the conglomerate
used in the test should be temporaryorg.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprotected boolean scanInfo(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprotected boolean partialScan(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprotected boolean insert_bench(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean sortCost(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprotected boolean storeCost(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
tc - The transaction controller to use in the test.org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Fail - Unexpected behaviour from the APIprotected boolean transactionalProperties(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardException - test failureT_Fail - test failureprotected boolean tempTest(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprivate long createAConglom(org.apache.derby.iapi.store.access.TransactionController tc,
int testValue,
boolean temporary)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprivate org.apache.derby.iapi.types.DataValueDescriptor[] getBtreeTemplate(org.apache.derby.iapi.store.access.TransactionController tc,
long baseConglomId)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprivate long createBtree(org.apache.derby.iapi.store.access.TransactionController tc,
long baseConglomId,
boolean temporary)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprivate int checkAConglom(org.apache.derby.iapi.store.access.TransactionController tc,
org.apache.derby.iapi.types.DataValueDescriptor[] scratch_template,
long conglomId,
int testValue)
throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardExceptionprotected boolean updatelocks(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean updatelocks_0(org.apache.derby.iapi.store.access.TransactionController tc,
int isolation_level)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean nestedUserTransaction(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean commitTest(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprivate void testOpsBeforeFirstNext(org.apache.derby.iapi.store.access.ScanController scan,
org.apache.derby.iapi.types.DataValueDescriptor[] row)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean holdCursor(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean positionAtRowLocation(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardExceptionT_Failprotected boolean readUncommitted(org.apache.derby.iapi.store.access.TransactionController tc)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
test 1 - test heap fetch, delete and replace of row on page which does not exist. test 2 - test heap fetch, delete and replace of row on page where row does not exist.
org.apache.derby.iapi.error.StandardException - Standard exception policy.T_Failpublic static java.lang.String repeatString(java.lang.String data,
int repeat)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.