KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
16  * SCO's that are managed collections must implement this.
17  */

18 public interface VersantManagedSCOCollection extends VersantSCOCollection {
19
20     /**
21      * Not in a managed relationship.
22      */

23     public static final int MANAGED_NONE = 0;
24     /**
25      * In a managed one-to-many or master/detail relationship.
26      */

27     public static final int MANAGED_ONE_TO_MANY = 1;
28     /**
29      * In a managed many-to-many relationship.
30      */

31     public static final int MANAGED_MANY_TO_MANY = 2;
32
33
34     /**
35      * Called to complete one side of a many-to-many on add.
36      */

37     public void manyToManyAdd(Object JavaDoc o);
38
39     /**
40      * Called to complete one side of a many-to-many on remove.
41      */

42     public void manyToManyRemove(Object JavaDoc o);
43
44
45
46 }
47
Popular Tags