| org.apache.ojb.broker.MultipleDBTest
MultipleDBTest | public class MultipleDBTest extends TestCase (Code) | | Test to check support for multiple DB.
author: Armin Waibel |
Inner Class :public static class MultipleObject | |
Inner Class :public static class MultipleObjectRef | |
testInsertDeleteAutoSequence | public void testInsertDeleteAutoSequence() throws Exception(Code) | | Insert/delete objects in two different DB, use auto-generated keys
|
testInsertDeleteAutoSequenceClearCache | public void testInsertDeleteAutoSequenceClearCache() throws Exception(Code) | | Insert/delete objects in two different DB, use auto-generated keys
|
testInsertDeleteNoAutoSequence | public void testInsertDeleteNoAutoSequence() throws Exception(Code) | | Insert/delete the same object with given id in two different DB
|
testLookupByPBKey | public void testLookupByPBKey()(Code) | | test PB instance lookup using different
PBKey constructors + databases
|
testMaterializeFromDifferentDB | public void testMaterializeFromDifferentDB()(Code) | | This test show how it is possible to materialize an object
with a collection of objects retrieved from a different DB
NOTE: This is not a recommended design, but it works.
|
testPBLookupConnection | public void testPBLookupConnection() throws Exception(Code) | | |
testWithReference | public void testWithReference() throws Exception(Code) | | tests if references work on second database
|
|
|