Class UpdateStrategies


  • public class UpdateStrategies
    extends Object
    Strategies for persistent value updates.
    Since:
    0.4.0
    Author:
    Abe White
    • Field Detail

      • IGNORE

        public static final int IGNORE
        Ignore updates; field is always considered clean.
        See Also:
        Constant Field Values
      • RESTRICT

        public static final int RESTRICT
        Throw an exception on attempt to update.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UpdateStrategies

        public UpdateStrategies()
    • Method Detail

      • getName

        public static String getName​(int strategy)
        Convert the given strategy to a name.
      • getCode

        public static int getCode​(String val,
                                  Object context)
        Convert the given strategy name to its constant.