public static enum RelationshipBase.Direction extends java.lang.Enum<RelationshipBase.Direction>
relatedFrom
(invers) and
relatedTo
(direct, everted) bean properties. Intended to be used in the
persistence layer only.( But also used in the service layer now - a.kohlbecker )
See also RelationshipBase
for an explanation on relationships in general.Enum Constant and Description |
---|
relatedFrom |
relatedTo |
Modifier and Type | Method and Description |
---|---|
RelationshipBase.Direction |
invers() |
boolean |
isDirect()
Is this the relatedTo direction?
|
boolean |
isInvers()
Is this the relatedFrom direction?
|
static RelationshipBase.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelationshipBase.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationshipBase.Direction relatedFrom
public static final RelationshipBase.Direction relatedTo
public static RelationshipBase.Direction[] values()
for (RelationshipBase.Direction c : RelationshipBase.Direction.values()) System.out.println(c);
public static RelationshipBase.Direction 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 namejava.lang.NullPointerException
- if the argument is nullpublic RelationshipBase.Direction invers()
public boolean isDirect()
true
if this is relatedTo
public boolean isInvers()
true
if this is relatedFrom
Copyright © 2007-2020 EDIT. All Rights Reserved.