Enum Class RelationshipCardinality
java.lang.Object
java.lang.Enum<RelationshipCardinality>
com.northconcepts.datapipeline.foundations.schema.RelationshipCardinality
- All Implemented Interfaces:
Serializable,Comparable<RelationshipCardinality>,Constable
Whether one primary entity record relates to one or to many foreign entity records in an
EntityRelationshipDef.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RelationshipCardinalitylookupByCardinality(String cardinality) Returns the cardinality with the given name, ignoring case, or null for a null or empty name; unknown names throw aDataException.static RelationshipCardinalityReturns the enum constant of this class with the specified name.static RelationshipCardinality[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE_TO_ONE
-
ONE_TO_MANY
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
lookupByCardinality
Returns the cardinality with the given name, ignoring case, or null for a null or empty name; unknown names throw aDataException.
-