|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ReferenceRelationshipType>
com.jadeworld.jade.persistence.ReferenceRelationshipType
public 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.
| 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 |
|---|
public static final ReferenceRelationshipType PEER
public static final ReferenceRelationshipType PARENT
public static final ReferenceRelationshipType CHILD
| Method Detail |
|---|
public static final ReferenceRelationshipType[] values()
for(ReferenceRelationshipType c : ReferenceRelationshipType.values())
System.out.println(c);
public static ReferenceRelationshipType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||