summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/collection/Collection.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/collection/Collection.java')
-rwxr-xr-xsource/com/c2kernel/collection/Collection.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/com/c2kernel/collection/Collection.java b/source/com/c2kernel/collection/Collection.java
new file mode 100755
index 0000000..745309c
--- /dev/null
+++ b/source/com/c2kernel/collection/Collection.java
@@ -0,0 +1,32 @@
+package com.c2kernel.collection;
+import com.c2kernel.common.ObjectNotFoundException;
+import com.c2kernel.entity.C2KLocalObject;
+import com.c2kernel.utils.CastorHashMap;
+
+/**
+ * @version $Revision: 1.13 $ $Date: 2004/05/14 15:39:39 $
+ * @author $Author: abranson $
+ */
+public interface Collection extends C2KLocalObject
+{
+ public static final short EMPTY = -1;
+
+ public int getCounter();
+
+ public void setCounter(int count);
+
+ public int size();
+
+ public void setMembers(CollectionMemberList newMembers);
+
+ public CollectionMemberList getMembers();
+
+ public void addMember(int entityKey, CastorHashMap props, String classProps) throws MembershipException;
+
+ public void addMember(int entityKey) throws MembershipException;
+
+ public void removeMember(int memberId) throws MembershipException;
+
+ public CollectionMember getMember(int memberId) throws ObjectNotFoundException;
+
+}