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) |
private static java.lang.Object |
createPersistentService(java.lang.String factoryInterface,
java.lang.String serviceName,
java.util.Properties properties)
Privileged startup.
|
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 static java.lang.Object |
findServiceModule(java.lang.Object serviceModule,
java.lang.String factoryInterface)
Privileged startup.
|
private void |
flush_cache() |
private org.apache.derby.iapi.types.DataValueDescriptor[] |
getBtreeTemplate(org.apache.derby.iapi.store.access.TransactionController tc,
long baseConglomId) |
private static org.apache.derby.iapi.services.context.ContextService |
getContextService()
Privileged lookup of the ContextService.
|
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, UnitTestType
private static final java.lang.String testService
org.apache.derby.iapi.store.access.AccessFactory store
public java.lang.String getModuleToTestProtocolName()
T_Generic
getModuleToTestProtocolName
in class T_Generic
protected void runTests() throws T_Fail
T_Generic
private void flush_cache() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
protected boolean insertAndFetchExample(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected 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.StandardException
T_Fail
protected boolean insertAndUpdateExample(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected 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.StandardException
T_Fail
protected 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.StandardException
T_Fail
protected boolean scanExample(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected boolean dropTest(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected 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.StandardException
T_Fail
protected 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.StandardException
T_Fail
private 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.StandardException
private 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.StandardException
private 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.StandardException
private 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.StandardException
protected boolean updatelocks(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected 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.StandardException
T_Fail
protected boolean nestedUserTransaction(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected boolean commitTest(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
private 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.StandardException
T_Fail
protected boolean holdCursor(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected boolean positionAtRowLocation(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
protected 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_Fail
public static java.lang.String repeatString(java.lang.String data, int repeat)
private static org.apache.derby.iapi.services.context.ContextService getContextService()
private static java.lang.Object findServiceModule(java.lang.Object serviceModule, java.lang.String factoryInterface) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private static java.lang.Object createPersistentService(java.lang.String factoryInterface, java.lang.String serviceName, java.util.Properties properties) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.