org.apache.ojb.broker
Class MtoNImplementor

java.lang.Object
  extended by org.apache.ojb.broker.MtoNImplementor

public class MtoNImplementor
extends Object

Helper class to handle single m:n relation entries (m:n indirection table entries).
The "left / right" notation is only used to differ both sides of the relation.

Version:
$Id: MtoNImplementor.java,v 1.1 2007-08-24 22:17:36 ewestfal Exp $
Author:
Leandro Rodrigo Saad Cruz

Constructor Summary
MtoNImplementor(CollectionDescriptor leftDescriptor, Object left, Object right)
          Deprecated.  
MtoNImplementor(PersistenceBroker pb, CollectionDescriptor leftDescriptor, Object left, Object right)
          Deprecated.  
MtoNImplementor(PersistenceBroker pb, String leftFieldName, Object left, Object right)
          Creates a new instance.
 
Method Summary
 Class getLeftClass()
          Returns the class of the left side of the m:n collection.
 CollectionDescriptor getLeftDescriptor()
          Returns the collection descriptor for the left side of the m:n collection.
 Object getLeftObject()
          Returns the object for the left side of the m:n collection.
 Class getRightClass()
          Returns the class of the right side of the m:n collection.
 Object getRightObject()
          Returns the object for the right side of the m:n collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MtoNImplementor

public MtoNImplementor(PersistenceBroker pb,
                       CollectionDescriptor leftDescriptor,
                       Object left,
                       Object right)
Deprecated. 

Creates a new instance.

Parameters:
pb - The currently used PersistenceBroker instance
leftDescriptor - The collection descriptor for the left side
left - The left side object
right - The right side object

MtoNImplementor

public MtoNImplementor(PersistenceBroker pb,
                       String leftFieldName,
                       Object left,
                       Object right)
Creates a new instance.

Parameters:
pb - The currently used PersistenceBroker instance
leftFieldName - Field name of the left m:n reference
left - The left side object
right - The right side object

MtoNImplementor

public MtoNImplementor(CollectionDescriptor leftDescriptor,
                       Object left,
                       Object right)
Deprecated. 

Creates a new instance.

Parameters:
leftDescriptor - The collection descriptor for the left side
left - The left side object
right - The right side object
Method Detail

getLeftDescriptor

public CollectionDescriptor getLeftDescriptor()
Returns the collection descriptor for the left side of the m:n collection.

Returns:
The collection descriptor

getLeftClass

public Class getLeftClass()
Returns the class of the left side of the m:n collection.

Returns:
The class of the left side

getRightClass

public Class getRightClass()
Returns the class of the right side of the m:n collection.

Returns:
The class of the right side

getLeftObject

public Object getLeftObject()
Returns the object for the left side of the m:n collection.

Returns:
The object for the left side

getRightObject

public Object getRightObject()
Returns the object for the right side of the m:n collection.

Returns:
The object for the right side


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.