org.apache.openjpa.meta
Class UpdateStrategies

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

public class UpdateStrategies
extends Object

Strategies for persistent value updates.

Since:
0.4.0
Author:
Abe White

Field Summary
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.
 
Constructor Summary
UpdateStrategies()
           
 
Method Summary
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 Detail

NONE

public static final int NONE
No update strategy.

See Also:
Constant Field Values

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.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.