
Package ca.uhn.fhir.jpa.api.config
Enum DaoConfig.IdStrategyEnum
- java.lang.Object
-
- java.lang.Enum<DaoConfig.IdStrategyEnum>
-
- ca.uhn.fhir.jpa.api.config.DaoConfig.IdStrategyEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<DaoConfig.IdStrategyEnum>
- Enclosing class:
- DaoConfig
public static enum DaoConfig.IdStrategyEnum extends Enum<DaoConfig.IdStrategyEnum>
This enum provides allowable options forDaoConfig.setResourceServerIdStrategy(IdStrategyEnum)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SEQUENTIAL_NUMERIC
This strategy is the default strategy, and it simply uses a sequential numeric ID for each newly created resource.UUID
Each resource will receive a randomly generated UUID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DaoConfig.IdStrategyEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static DaoConfig.IdStrategyEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEQUENTIAL_NUMERIC
public static final DaoConfig.IdStrategyEnum SEQUENTIAL_NUMERIC
This strategy is the default strategy, and it simply uses a sequential numeric ID for each newly created resource.
-
UUID
public static final DaoConfig.IdStrategyEnum UUID
Each resource will receive a randomly generated UUID
-
-
Method Detail
-
values
public static DaoConfig.IdStrategyEnum[] 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 (DaoConfig.IdStrategyEnum c : DaoConfig.IdStrategyEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DaoConfig.IdStrategyEnum valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-