org.apache.ojb.broker.core
Class MtoNBroker

java.lang.Object
  extended byorg.apache.ojb.broker.core.MtoNBroker

public class MtoNBroker
extends java.lang.Object

Manage all stuff related to non-decomposed M:N association.

Version:
$Id: MtoNBroker.java,v 1.6 2004/02/17 20:52:30 baserose Exp $
Author:
Thomas Mahler, Leandro Rodrigo Saad Cruz, Matthew Baird, Jakob Braeuchi, Armin Waibel

Constructor Summary
MtoNBroker(PersistenceBroker broker)
           
 
Method Summary
 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.Collection relatedObjects, java.util.Collection mnKeys)
          deletes all rows from m:n table that are not used in relatedObjects
 void deleteMtoNImplementor(MtoNImplementor m2n)
           
 java.util.Collection getMtoNImplementor(CollectionDescriptor cod, java.lang.Object obj)
          get a Collection of Keys of already existing m:n rows
 void storeMtoNImplementor(CollectionDescriptor cod, java.lang.Object obj, java.lang.Object otherObj, java.util.Collection mnKeys)
          Stores new values of a M:N association in a indirection table.
 void storeMtoNImplementor(MtoNImplementor m2n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MtoNBroker

public MtoNBroker(PersistenceBroker broker)
Method Detail

storeMtoNImplementor

public void storeMtoNImplementor(CollectionDescriptor cod,
                                 java.lang.Object obj,
                                 java.lang.Object otherObj,
                                 java.util.Collection mnKeys)
Stores new values of a M:N association in a indirection table.


getMtoNImplementor

public java.util.Collection getMtoNImplementor(CollectionDescriptor cod,
                                               java.lang.Object obj)
get a Collection of Keys of already existing m:n rows

Parameters:
cod -
obj -
Returns:
Collection of Key

deleteMtoNImplementor

public void deleteMtoNImplementor(CollectionDescriptor cod,
                                  java.lang.Object obj)
delete all rows from m:n table belonging to obj

Parameters:
cod -
obj -

deleteMtoNImplementor

public void deleteMtoNImplementor(CollectionDescriptor cod,
                                  java.lang.Object obj,
                                  java.util.Collection relatedObjects,
                                  java.util.Collection mnKeys)
deletes all rows from m:n table that are not used in relatedObjects

Parameters:
cod -
obj -
relatedObjects -
mnKeys -

storeMtoNImplementor

public void storeMtoNImplementor(MtoNImplementor m2n)
Parameters:
m2n -

deleteMtoNImplementor

public void deleteMtoNImplementor(MtoNImplementor m2n)
Parameters:
m2n -


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14