01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdo.sco;
12:
13: /**
14: * SCO's that are managed collections must implement this.
15: */
16: public interface VersantManagedSCOCollection extends
17: VersantSCOCollection {
18:
19: /**
20: * Not in a managed relationship.
21: */
22: public static final int MANAGED_NONE = 0;
23: /**
24: * In a managed one-to-many or master/detail relationship.
25: */
26: public static final int MANAGED_ONE_TO_MANY = 1;
27: /**
28: * In a managed many-to-many relationship.
29: */
30: public static final int MANAGED_MANY_TO_MANY = 2;
31:
32: /**
33: * Called to complete one side of a many-to-many on add.
34: */
35: public void manyToManyAdd(Object o);
36:
37: /**
38: * Called to complete one side of a many-to-many on remove.
39: */
40: public void manyToManyRemove(Object o);
41:
42: }
|