1 /*
2  * Copyright (c) 2008, 2019 Oracle and/or its affiliates. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v. 2.0 which is available at
6  * http://www.eclipse.org/legal/epl-2.0,
7  * or the Eclipse Distribution License v. 1.0 which is available at
8  * http://www.eclipse.org/org/documents/edl-v10.php.
9  *
10  * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11  */

12
13 // Contributors:
14 //     Linda DeMichiel - 2.1
15 //     Linda DeMichiel - 2.0
16
17 package javax.persistence;
18
19 /**
20  * Defines the set of cascadable operations that are propagated 
21  * to the associated entity.
22  * The value <code>cascade=ALL</code> is equivalent to 
23  * <code>cascade={PERSIST, MERGE, REMOVE, REFRESH, DETACH}</code>.
24  *
25  * @since 1.0
26  */

27 public enum CascadeType { 
28
29     /** Cascade all operations */
30     ALL, 
31
32     /** Cascade persist operation */
33     PERSIST, 
34
35     /** Cascade merge operation */
36     MERGE, 
37
38     /** Cascade remove operation */
39     REMOVE,
40
41     /** Cascade refresh operation */
42     REFRESH,
43
44     /**
45      * Cascade detach operation
46      *
47      * @since 2.0
48      * 
49      */
   
50     DETACH
51 }
52