com.im.df.api 5.9

com.im.df.api.ddl
Enum DFRelationship.Type

java.lang.Object
  extended by java.lang.Enum<DFRelationship.Type>
      extended by 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.


Enum Constant Summary
MANY_TO_MANY
           
MANY_TO_ONE
           
ONE_TO_MANY
          Deprecated. Do not use
ONE_TO_ONE
           
 
Method Summary
 String getDisplayName()
           
 String getNameAbbreviation()
           
 DFRelationship.Type getOppositeWay()
           
 RelationshipInfo.RelationshipType getServerAPIConstant()
           
static DFRelationship.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DFRelationship.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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()

com.im.df.api 5.9