KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > internal > sessions > AggregateObjectChangeSet


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2005, Oracle. All rights reserved.
22
package oracle.toplink.essentials.internal.sessions;
23
24 import oracle.toplink.essentials.internal.identitymaps.CacheKey;
25 import java.util.Vector JavaDoc;
26
27 public class AggregateObjectChangeSet extends ObjectChangeSet {
28
29     /**
30      * The default constructor is used only by SDK XML project for mapping ObjectChangeSet
31      */

32     public AggregateObjectChangeSet() {
33         super();
34     }
35
36     /**
37      * This constructor is used to create an ObjectChangeSet that represents an aggregate object.
38      */

39     public AggregateObjectChangeSet(Object JavaDoc cloneObject, UnitOfWorkChangeSet parent, boolean isNew) {
40         super(cloneObject, parent, isNew);
41     }
42
43     /**
44      * This constructor is used to create an ObjectChangeSet that represents a regular object.
45      */

46     public AggregateObjectChangeSet(Vector JavaDoc primaryKey, Object JavaDoc cloneObject, UnitOfWorkChangeSet parent, boolean isNew) {
47         super(primaryKey, cloneObject, parent, isNew);
48     }
49
50     public CacheKey CacheKey() {
51         return null;
52     }
53
54     public boolean isAggregate() {
55         return true;
56     }
57 }
58
Popular Tags