JADE Java Persistence API
1.0

com.jadeworld.jade.persistence
Enum ReferenceRelationshipType

java.lang.Object
  extended by java.lang.Enum<ReferenceRelationshipType>
      extended by com.jadeworld.jade.persistence.ReferenceRelationshipType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ReferenceRelationshipType>

public enum ReferenceRelationshipType
extends java.lang.Enum<ReferenceRelationshipType>

Relationship type values. /** Holds the values of the @OneToOne, @OneToMany, @ManyToMany, and @ManyToOne relationshipType attributes. This attribute is the type of relationship for the property.
A peer-to-peer (PEER) relationship is an equivalent relationship between two objects.
A parent-child relationship is a relationship in which the child object belongs to or is subsidiary to the parent object. When a parent object is deleted, any child objects are automatically deleted.
The relationship is between instances of two classe.

Author:
JADE Development Centre, Jade Software Corporation Ltd.

Enum Constant Summary
CHILD
          A value of CHILD sets this property as the child and the inverse property as the parent.
PARENT
          A value of PARENT sets this property as the parent and the inverse property as the child.
PEER
          A peer-to-peer (PEER) relationship is an equivalent relationship between two objects.
 
Method Summary
static ReferenceRelationshipType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ReferenceRelationshipType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PEER

public static final ReferenceRelationshipType PEER
A peer-to-peer (PEER) relationship is an equivalent relationship between two objects.


PARENT

public static final ReferenceRelationshipType PARENT
A value of PARENT sets this property as the parent and the inverse property as the child.


CHILD

public static final ReferenceRelationshipType CHILD
A value of CHILD sets this property as the child and the inverse property as the parent.

Method Detail

values

public static final ReferenceRelationshipType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ReferenceRelationshipType c : ReferenceRelationshipType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ReferenceRelationshipType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

JADE Java Persistence API
1.0

Copyright © 2007 Jade Software Corporation