org.datanucleus.metadata
Class Relation

java.lang.Object
  extended by org.datanucleus.metadata.Relation
All Implemented Interfaces:
java.io.Serializable

public class Relation
extends java.lang.Object
implements java.io.Serializable

Utility class providing enums for the different relation types. TODO Consider adding the other subtypes of relations ... join table, foreign key etc

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
static int MANY_TO_MANY_BI
          Many to Many bidirectional (collection/map at both sides).
static int MANY_TO_ONE_BI
          Many to One bidirectional (reference back to a collection of the object).
static int NONE
          No relation.
static int ONE_TO_MANY_BI
          One to Many bidirectional (collection/map of object with reference back).
static int ONE_TO_MANY_UNI
          One to Many unidirectional (collection/map of object with no reference back).
static int ONE_TO_ONE_BI
          One to One bidirectional (object reference at both sides).
static int ONE_TO_ONE_UNI
          One to One bidirectional (object reference at one side only).
 
Constructor Summary
Relation()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
No relation.

See Also:
Constant Field Values

ONE_TO_ONE_UNI

public static final int ONE_TO_ONE_UNI
One to One bidirectional (object reference at one side only).

See Also:
Constant Field Values

ONE_TO_ONE_BI

public static final int ONE_TO_ONE_BI
One to One bidirectional (object reference at both sides).

See Also:
Constant Field Values

ONE_TO_MANY_UNI

public static final int ONE_TO_MANY_UNI
One to Many unidirectional (collection/map of object with no reference back).

See Also:
Constant Field Values

ONE_TO_MANY_BI

public static final int ONE_TO_MANY_BI
One to Many bidirectional (collection/map of object with reference back).

See Also:
Constant Field Values

MANY_TO_MANY_BI

public static final int MANY_TO_MANY_BI
Many to Many bidirectional (collection/map at both sides).

See Also:
Constant Field Values

MANY_TO_ONE_BI

public static final int MANY_TO_ONE_BI
Many to One bidirectional (reference back to a collection of the object).

See Also:
Constant Field Values
Constructor Detail

Relation

public Relation()


Copyright © 2009. All Rights Reserved.