KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > sco > VersantSimpleSCO


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo.sco;
13
14 /**
15  * A Simple SCO. Mutable Second Class Objects are required to mark the field
16  * on the owner PC as dirty when they change.
17  * <p/>
18  * Try to implement ?VersantAdvancedSCO? rather than this. SCO's implementing
19  * ?VersantAdvancedSCO? increase performance because they can be re-used and
20  * saves lots of new instance creation.
21  * <p/>
22  * SCO's that are collections should implement ?VersantSCOCollection? for
23  * dramatic performance increases on commit and flush.
24  * <p/>
25  * SCO's that are maps should implement ?VersantSCOMap? for dramatic performance
26  * increases on commit and flush.
27  *
28  * @see VersantAdvancedSCO
29  * @see VersantSCOCollection
30  * @see VersantSCOMap
31  */

32 public interface VersantSimpleSCO extends Cloneable JavaDoc {
33
34     /**
35      * Nullifies references to the owner Object, Field and StateManager
36      */

37     void makeTransient();
38
39     /**
40      * Make a clone. (Creates and returns a copy of this object.)
41      * <p/>
42      * Mutable Second Class Objects are required to provide a public
43      * clone method in order to allow for copying PersistenceCapable
44      * objects. In contrast to Object.clone(), this method must not throw a
45      * CloneNotSupportedException.
46      */

47     Object JavaDoc clone();
48
49 }
50
Popular Tags