summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/collection/Collection.java
blob: b5075935f8ed91f9efcd8fe6389ba59874d90cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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<E extends CollectionMember> extends C2KLocalObject
{
    public static final short EMPTY = -1;

    public int getCounter();

    public void setCounter(int count);

    public int size();

    public void setMembers(CollectionMemberList<E> newMembers);

    public CollectionMemberList<E> getMembers();

    public E addMember(int entityKey, CastorHashMap props, String classProps) throws MembershipException;

    public E addMember(int entityKey) throws MembershipException;

    public void removeMember(int memberId) throws MembershipException;

    public E getMember(int memberId) throws ObjectNotFoundException;

}