org.apache.ojb.broker
Class MtoNImplementor

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

public class MtoNImplementor
extends java.lang.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 365231 2005-12-21 22:22:08Z tomdz $
Author:
Leandro Rodrigo Saad Cruz

Constructor Summary
MtoNImplementor(CollectionDescriptor leftDescriptor, java.lang.Object left, java.lang.Object right)
          Deprecated.  
MtoNImplementor(PersistenceBroker pb, CollectionDescriptor leftDescriptor, java.lang.Object left, java.lang.Object right)
          Deprecated.  
MtoNImplementor(PersistenceBroker pb, java.lang.String leftFieldName, java.lang.Object left, java.lang.Object right)
          Creates a new instance.
 
Method Summary
 java.lang.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.
 java.lang.Object getLeftObject()
          Returns the object for the left side of the m:n collection.
 java.lang.Class getRightClass()
          Returns the class of the right side of the m:n collection.
 java.lang.Object getRightObject()
          Returns the object for the right side of the m:n collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MtoNImplementor

public MtoNImplementor(PersistenceBroker pb,
                       CollectionDescriptor leftDescriptor,
                       java.lang.Object left,
                       java.lang.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,
                       java.lang.String leftFieldName,
                       java.lang.Object left,
                       java.lang.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,
                       java.lang.Object left,
                       java.lang.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 java.lang.Class getLeftClass()
Returns the class of the left side of the m:n collection.

Returns:
The class of the left side

getRightClass

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

Returns:
The class of the right side

getLeftObject

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

Returns:
The object for the left side

getRightObject

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

Returns:
The object for the right side


(C) 2002 - 2006 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