|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.MtoNImplementor
public class MtoNImplementor
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.
| Field Summary | |
|---|---|
private Class |
leftClass
|
private CollectionDescriptor |
leftDescriptor
|
private Object |
leftObject
|
private Class |
rightClass
|
private Object |
rightObject
|
| 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. |
private void |
init(CollectionDescriptor leftDescriptor,
Object left,
Object right)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Object leftObject
private Object rightObject
private Class leftClass
private Class rightClass
private CollectionDescriptor leftDescriptor
| Constructor Detail |
|---|
public MtoNImplementor(PersistenceBroker pb,
CollectionDescriptor leftDescriptor,
Object left,
Object right)
pb - The currently used PersistenceBroker instanceleftDescriptor - The collection descriptor for the left sideleft - The left side objectright - The right side object
public MtoNImplementor(PersistenceBroker pb,
String leftFieldName,
Object left,
Object right)
pb - The currently used PersistenceBroker instanceleftFieldName - Field name of the left m:n referenceleft - The left side objectright - The right side object
public MtoNImplementor(CollectionDescriptor leftDescriptor,
Object left,
Object right)
leftDescriptor - The collection descriptor for the left sideleft - The left side objectright - The right side object| Method Detail |
|---|
private void init(CollectionDescriptor leftDescriptor,
Object left,
Object right)
public CollectionDescriptor getLeftDescriptor()
public Class getLeftClass()
public Class getRightClass()
public Object getLeftObject()
public Object getRightObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||