Class UpdateStrategies


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

      Fields 
      Modifier and Type Field Description
      static int IGNORE
      Ignore updates; field is always considered clean.
      static int NONE
      No update strategy.
      static int RESTRICT
      Throw an exception on attempt to update.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getCode​(java.lang.String val, java.lang.Object context)
      Convert the given strategy name to its constant.
      static java.lang.String getName​(int strategy)
      Convert the given strategy to a name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.String getName​(int strategy)
        Convert the given strategy to a name.
      • getCode

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