testAddCollectionElementWithBackReference() Create an main object Gatherer with a collection of objects CollectiblesC
(CollectiblesC has a reference back to the main object).
public void
testAddCollectionElementWithoutBackReference() Create an main object Gatherer with a collection of objects CollectiblesC.
CollectiblesC hasn't a reference back to the main object, thus we don't have to set
the main object in the collection objects.
testRemoveCollectionElementWithoutBackReference_2() Create an main object Gatherer with a collection of objects CollectiblesC.
CollectiblesC hasn't a reference back to the main object, thus we don't have to set
the main object in the collection objects.
testUpdateWhenExchangeObjectsInCollection() we create two objects with one object in collection:
gat1{collC1} and gat2{collC2}
then we exchange the collections
gat1{collC2} and gat2{collC1}
and commit.
public void testAddCollectionElementCrossAPI() throws Exception(Code)
testAddCollectionElementWithBackReference
public void testAddCollectionElementWithBackReference() throws Exception(Code)
Create an main object Gatherer with a collection of objects CollectiblesC
(CollectiblesC has a reference back to the main object).
Then we ADD a new object to the collection
testAddCollectionElementWithoutBackReference
public void testAddCollectionElementWithoutBackReference() throws Exception(Code)
Create an main object Gatherer with a collection of objects CollectiblesC.
CollectiblesC hasn't a reference back to the main object, thus we don't have to set
the main object in the collection objects. Further we can't set the object id of the
main object, because we don't know it at creation time.
Then we ADD a new object to the collection
testRemoveCollectionElementWithoutBackReference
public void testRemoveCollectionElementWithoutBackReference() throws Exception(Code)
Create an main object Gatherer with a collection of objects CollectiblesC.
CollectiblesC hasn't a reference back to the main object. After creation we
remove an collection element.
testRemoveCollectionElementWithoutBackReference_2
public void testRemoveCollectionElementWithoutBackReference_2() throws Exception(Code)
Create an main object Gatherer with a collection of objects CollectiblesC.
CollectiblesC hasn't a reference back to the main object, thus we don't have to set
the main object in the collection objects. Further we can't set the object id of the
main object, because we don't know it at creation time.
Then we remove one object of the collection
testStoreCollectionElementWithoutBackReference
public void testStoreCollectionElementWithoutBackReference() throws Exception(Code)
testStoreDeleteCascadeDelete
public void testStoreDeleteCascadeDelete() throws Exception(Code)
testStoreFetchDeleteCollectionWithBackReference
public void testStoreFetchDeleteCollectionWithBackReference() throws Exception(Code)
Create object with 3 objects in associated collection.
We change one object of the collection
testUpdateCollectionWithBackReference
public void testUpdateCollectionWithBackReference() throws Exception(Code)
testUpdateWhenExchangeObjectsInCollection
public void testUpdateWhenExchangeObjectsInCollection() throws Exception(Code)
we create two objects with one object in collection:
gat1{collC1} and gat2{collC2}
then we exchange the collections
gat1{collC2} and gat2{collC1}
and commit. So the size of the collection
hold by the main object doesn't change
testWithBackReference_1
public void testWithBackReference_1() throws Exception(Code)
testWithBackReference_2
public void testWithBackReference_2() throws Exception(Code)
This test shows an issue with circular references in conjunction with
lazy loading and a non-global-shared cache.
Fields inherited from org.apache.ojb.junit.ODMGTestCase