View Javadoc

1   /*
2       Copyright (C) 2004 PjEr
3       
4       This program is free software; you can redistribute it and/or modify
5       it under the terms of the GNU General Public License as published by
6       the Free Software Foundation; either version 2 of the License, or
7       (at your option) any later version.
8       
9       This program is distributed in the hope that it will be useful,
10      but WITHOUT ANY WARRANTY; without even the implied warranty of
11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12      GNU General Public License for more details.
13      
14      You should have received a copy of the GNU General Public License
15      along with this program; if not, write to the Free Software
16      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18  package ca.pjer.cm.api.store;
19  
20  import java.io.Serializable;
21  import java.util.List;
22  
23  /***
24   * @TODO comment me.<br />
25   * <br />
26   * $Id: StoreService.java,v 1.2 2004/05/19 03:29:16 pjer Exp $<br />
27   * <br />
28   * $RCSfile: StoreService.java,v $<br />
29   * $Revision: 1.2 $<br />
30   * $Author: pjer $<br />
31   * $Date: 2004/05/19 03:29:16 $<br />
32   */
33  public interface StoreService {
34  
35      Object create(Object object)
36              throws StoreServiceSystemException, DuplicateObjectException;
37  
38      Object update(Object object)
39              throws StoreServiceSystemException, ObjectNotFoundException;
40  
41      Object get(Class clazz, Serializable id)
42              throws StoreServiceSystemException, ObjectNotFoundException;
43  
44      List list(Class clazz)
45              throws StoreServiceSystemException;
46  
47      List listFromTemplate(Object template)
48              throws StoreServiceSystemException;
49  
50      void remove(Object object)
51              throws StoreServiceSystemException, ObjectNotFoundException;
52  }