Enum DFRelationship.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DFRelationship.Type>
    Enclosing interface:
    DFRelationship

    public static enum DFRelationship.Type
    extends java.lang.Enum<DFRelationship.Type>
    Type of the relationship. Currently there are four types supported.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      MANY_TO_MANY
      One row in the left entity corresponds to potentially more rows in the right entity.
      MANY_TO_ONE
      One row in the right entity corresponds to potentially more rows in the left entity.
      ONE_TO_MANY
      One row in the left entity corresponds to potentially more rows in the right entity.
      ONE_TO_ONE
      One row in the left entity corresponds to max.
    • Enum Constant Detail

      • ONE_TO_ONE

        public static final DFRelationship.Type ONE_TO_ONE
        One row in the left entity corresponds to max. one row in the right entity.
      • ONE_TO_MANY

        public static final DFRelationship.Type ONE_TO_MANY
        One row in the left entity corresponds to potentially more rows in the right entity.
      • MANY_TO_ONE

        public static final DFRelationship.Type MANY_TO_ONE
        One row in the right entity corresponds to potentially more rows in the left entity.
      • MANY_TO_MANY

        public static final DFRelationship.Type MANY_TO_MANY
        One row in the left entity corresponds to potentially more rows in the right entity. Also, one row in the right entity corresponds to potentially more rows in the left entity.
    • 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​(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
        java.lang.NullPointerException - if the argument is null
      • getDisplayName

        public java.lang.String getDisplayName()
      • getOppositeWay

        public DFRelationship.Type getOppositeWay()
        Returns:
        The type of the opposite direction of this direction type.
      • getNameAbbreviation

        public java.lang.String getNameAbbreviation()
        Returns:
        The just short name of the type - one of these String constants "11", "1N", "N1" or "NN".
      • getServerAPIConstant

        public com.im.ijcs.api.ddl.dto.RelationshipInfo.RelationshipType getServerAPIConstant()