Package oracle.pgx.common.types
Enum IdStrategy
- java.lang.Object
-
- java.lang.Enum<IdStrategy>
-
- oracle.pgx.common.types.IdStrategy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IdStrategy>
public enum IdStrategy extends java.lang.Enum<IdStrategy>
Indicates if there are graph-wide global IDs for a specific entity type (vertices or edges). The strategy also indicates how those IDs are formed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEYS_AS_IDSIndicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs corresponds to the keys of the entities declared when loading or creating the graphNO_IDSIndicates that there are no graph-wide global IDs for the entity type (vertices and / or edges)PARTITIONED_IDSIndicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are composed of the provider/table name and keys of the entities declared when loading or creating the graphUNSTABLE_GENERATED_IDSIndicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are generated by the system, without guarantee of stability: IDs may be different when reloading the graph, or when applying a graph mutation (potentially other cases).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IdStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_IDS
public static final IdStrategy NO_IDS
Indicates that there are no graph-wide global IDs for the entity type (vertices and / or edges)
-
KEYS_AS_IDS
public static final IdStrategy KEYS_AS_IDS
Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs corresponds to the keys of the entities declared when loading or creating the graph
-
UNSTABLE_GENERATED_IDS
public static final IdStrategy UNSTABLE_GENERATED_IDS
Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are generated by the system, without guarantee of stability: IDs may be different when reloading the graph, or when applying a graph mutation (potentially other cases).
-
PARTITIONED_IDS
public static final IdStrategy PARTITIONED_IDS
Indicates there are graph-wide global IDs for the entity type (vertices and / or edges) and that the IDs are composed of the provider/table name and keys of the entities declared when loading or creating the graph
-
-
Method Detail
-
values
public static IdStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IdStrategy c : IdStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdStrategy valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-