Class UpdateStrategies

java.lang.Object
org.apache.openjpa.meta.UpdateStrategies

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getCode(String val, Object context)
    Convert the given strategy name to its constant.
    static 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 Details

    • NONE

      public static final int NONE
      No update strategy.
      See Also:
    • IGNORE

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

      public static final int RESTRICT
      Throw an exception on attempt to update.
      See Also:
  • Constructor Details

    • UpdateStrategies

      public UpdateStrategies()
  • Method Details

    • 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.