Enum Class Cardinality

java.lang.Object
java.lang.Enum<Cardinality>
net.sf.jailer.datamodel.Cardinality
All Implemented Interfaces:
Serializable, Comparable<Cardinality>, Constable

public enum Cardinality extends Enum<Cardinality>
Enumeration of association's cardinalities.
Author:
Ralf Wisser
  • Enum Constant Details

    • ONE_TO_ONE

      public static final Cardinality ONE_TO_ONE
    • ONE_TO_MANY

      public static final Cardinality ONE_TO_MANY
    • MANY_TO_ONE

      public static final Cardinality MANY_TO_ONE
    • MANY_TO_MANY

      public static final Cardinality MANY_TO_MANY
  • Method Details

    • values

      public static Cardinality[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Cardinality valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • reverse

      public Cardinality reverse()
      Gets the cardinality of the reversal association.
      Returns:
      the cardinality of the reversal association
    • parse

      public static Cardinality parse(String cardinality)
      Parses a stringified cardinality.
      Parameters:
      cardinality - cardinality name
      Returns:
      cardinality with given name
    • toString

      public String toString()
      Stringifies cardinality.
      Overrides:
      toString in class Enum<Cardinality>
      Returns:
      string representation of the cardinality