public class MtoNBroker
extends java.lang.Object
Constructor and Description |
---|
MtoNBroker(PersistenceBrokerImpl broker) |
Modifier and Type | Method and Description |
---|---|
void |
deleteMtoNImplementor(CollectionDescriptor cod,
java.lang.Object obj)
delete all rows from m:n table belonging to obj
|
void |
deleteMtoNImplementor(CollectionDescriptor cod,
java.lang.Object obj,
java.util.Iterator collectionIterator,
java.util.Collection mnKeys)
deletes all rows from m:n table that are not used in relatedObjects
|
void |
deleteMtoNImplementor(MtoNImplementor m2n) |
java.util.List |
getMtoNImplementor(CollectionDescriptor cod,
java.lang.Object obj)
get a Collection of Keys of already existing m:n rows
|
void |
reset() |
void |
storeMtoNImplementor(CollectionDescriptor cod,
java.lang.Object realObject,
java.lang.Object otherObj,
java.util.Collection mnKeys)
Stores new values of a M:N association in a indirection table.
|
void |
storeMtoNImplementor(MtoNImplementor m2n) |
public MtoNBroker(PersistenceBrokerImpl broker)
public void reset()
public void storeMtoNImplementor(CollectionDescriptor cod, java.lang.Object realObject, java.lang.Object otherObj, java.util.Collection mnKeys)
cod
- The CollectionDescriptor
for the m:n relationrealObject
- The real objectotherObj
- The referenced objectmnKeys
- The all MtoNBroker.Key
matching the real objectpublic java.util.List getMtoNImplementor(CollectionDescriptor cod, java.lang.Object obj)
cod
- obj
- public void deleteMtoNImplementor(CollectionDescriptor cod, java.lang.Object obj)
cod
- obj
- public void deleteMtoNImplementor(CollectionDescriptor cod, java.lang.Object obj, java.util.Iterator collectionIterator, java.util.Collection mnKeys)
cod
- obj
- collectionIterator
- mnKeys
- public void storeMtoNImplementor(MtoNImplementor m2n)
m2n
- public void deleteMtoNImplementor(MtoNImplementor m2n)
m2n
- (C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30