Enum Class RelationshipCardinality

java.lang.Object
java.lang.Enum<RelationshipCardinality>
com.northconcepts.datapipeline.foundations.schema.RelationshipCardinality
All Implemented Interfaces:
Serializable, Comparable<RelationshipCardinality>, Constable

public enum RelationshipCardinality extends Enum<RelationshipCardinality>
Whether one primary entity record relates to one or to many foreign entity records in an EntityRelationshipDef.
  • Enum Constant Details

  • Method Details

    • values

      public static RelationshipCardinality[] 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 RelationshipCardinality 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
    • lookupByCardinality

      public static RelationshipCardinality lookupByCardinality(String cardinality)
      Returns the cardinality with the given name, ignoring case, or null for a null or empty name; unknown names throw a DataException.