Enum JpaStorageSettings.ClientIdStrategyEnum

All Implemented Interfaces:
Serializable, Comparable<JpaStorageSettings.ClientIdStrategyEnum>
Enclosing class:

  • Enum Constant Details


      Clients are not allowed to supply IDs for resources that do not already exist

      Clients may supply IDs but these IDs are not permitted to be purely numeric. In other words, values such as "A", "A1" and "000A" would be considered valid but "123" would not.

      This is the default setting.

    • ANY

      Clients may supply any ID including purely numeric IDs. Note that this setting should only be set on an empty database, or on a database that has always had this setting set as it causes a "forced ID" to be used for all resources.

      Note that if you use this setting, it is highly recommended that you also set the ResourceServerIdStrategy to JpaStorageSettings.IdStrategyEnum.UUID in order to avoid any potential for conflicts. Otherwise a database sequence will be used to generate IDs and these IDs can conflict with client-assigned numeric IDs.

  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null