Package org.eclipse.persistence.queries
Enum ReadAllQuery.Direction
- All Implemented Interfaces:
Serializable
,Comparable<ReadAllQuery.Direction>
- Enclosing class:
- ReadAllQuery
Specifies the direction in which the hierarchy is traversed in a
hierarchical query.
-
Enum Constant Summary
Enum ConstantDescriptionHierarchy will be traversed from child to parent - PRIOR keyword is generated on the right side of the equationHierarchy will be traversed from parent to child - PRIOR keyword is generated on the left side of the equation -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadAllQuery.Direction
getDefault
(DatabaseMapping mapping) PUBLIC: Returns the default hierarchy traversal direction for the specified mapping.
For OneToOne mappings, source in parent object goes to target in child object, collections are the opposite way.static ReadAllQuery.Direction
Returns the enum constant of this type with the specified name.static ReadAllQuery.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PARENT_TO_CHILD
Hierarchy will be traversed from parent to child - PRIOR keyword is generated on the left side of the equation -
CHILD_TO_PARENT
Hierarchy will be traversed from child to parent - PRIOR keyword is generated on the right side of the equation
-
-
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
-
getDefault
PUBLIC: Returns the default hierarchy traversal direction for the specified mapping.
For OneToOne mappings, source in parent object goes to target in child object, collections are the opposite way.- Parameters:
mapping
- The mapping for which to return default hierarchy traversal direction- Returns:
- The default hierarchy traversal direction for the mapping passed
-