Enum DaoConfig.ClientIdStrategyEnum

    • Enum Constant Detail

      • ALPHANUMERIC

        public static final DaoConfig.ClientIdStrategyEnum ALPHANUMERIC
        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

        public static final DaoConfig.ClientIdStrategyEnum 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 DaoConfig.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 Detail

      • values

        public static DaoConfig.ClientIdStrategyEnum[] 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.ClientIdStrategyEnum c : DaoConfig.ClientIdStrategyEnum.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.ClientIdStrategyEnum 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 name
        NullPointerException - if the argument is null