Enum EntityResolver.ResolvingMode

  • All Implemented Interfaces:
    Serializable, Comparable<EntityResolver.ResolvingMode>
    Enclosing class:

    public static enum EntityResolver.ResolvingMode
    extends Enum<EntityResolver.ResolvingMode>
    The resolving mode determines how the EntityResolver should response if no existing object can be found for a certain entity name and id.

    ALLOW_NOT_EXIST (the default) will allow a not-yet existing object and will create a new one. MUST_EXIST will result in an EntityNotFoundException if the object can not be found in the database.

    • Method Detail

      • values

        public static EntityResolver.ResolvingMode[] 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 (EntityResolver.ResolvingMode c : EntityResolver.ResolvingMode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EntityResolver.ResolvingMode 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.)
        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