com.im.df.api.ddl
Enum DFRelationship.Type
java.lang.Object
java.lang.Enum<DFRelationship.Type>
com.im.df.api.ddl.DFRelationship.Type
- All Implemented Interfaces:
- Serializable, Comparable<DFRelationship.Type>
- Enclosing interface:
- DFRelationship
public static enum DFRelationship.Type
- extends Enum<DFRelationship.Type>
Type of the relationship. Currently there are four types supported.
ONE_TO_ONE
public static final DFRelationship.Type ONE_TO_ONE
ONE_TO_MANY
public static final DFRelationship.Type ONE_TO_MANY
- Deprecated. Do not use
MANY_TO_ONE
public static final DFRelationship.Type MANY_TO_ONE
MANY_TO_MANY
public static final DFRelationship.Type MANY_TO_MANY
values
public static DFRelationship.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DFRelationship.Type c : DFRelationship.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DFRelationship.Type valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getDisplayName
public String getDisplayName()
getOppositeWay
public DFRelationship.Type getOppositeWay()
- Returns:
- The type of the opposite direction of this direction type.
getNameAbbreviation
public String getNameAbbreviation()
- Returns:
- The just short name of the type - one of these String constants "11", "1N", "N1" or "NN".
getServerAPIConstant
public RelationshipInfo.RelationshipType getServerAPIConstant()