Package org.datanucleus.metadata
Enum RelationType
- All Implemented Interfaces:
Serializable
,Comparable<RelationType>
Utility class providing enums for the different relation types.
TODO Consider adding the other subtypes of relations ... join table, foreign key etc
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isBidirectional
(RelationType type) static boolean
static boolean
static RelationType
Returns the enum constant of this type with the specified name.static RelationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
ONE_TO_ONE_UNI
-
ONE_TO_ONE_BI
-
ONE_TO_MANY_UNI
-
ONE_TO_MANY_BI
-
MANY_TO_MANY_BI
-
MANY_TO_ONE_BI
-
MANY_TO_ONE_UNI
-
-
Constructor Details
-
RelationType
private RelationType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
isRelationSingleValued
-
isRelationMultiValued
-
isBidirectional
-