Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * See the file LICENSE for redistribution information.
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
 package com.sleepycat.persist.model;

Specifies the action to take when a related entity is deleted having a primary key value that exists as a secondary key value for this entity. This can be specified using a SecondaryKey.onRelatedEntityDelete() annotation.

Mark Hayes
public enum DeleteAction {

The default action, ABORT, means that an exception is thrown in order to abort the current transaction. On BDB JE, a is thrown.

If CASCADE is specified, then this entity will be deleted also, which could in turn trigger further deletions, causing a cascading effect.

If NULLIFY is specified, then the secondary key in this entity is set to null and this entity is updated. For a secondary key field that has an array or collection type, the array or collection element will be removed by this action. The secondary key field must have a reference (not a primitive) type in order to specify this action.
New to GrepCode? Check out our FAQ X