1 package org.wcb.model.dao;
2
3 import org.wcb.exception.DAOException;
4
5 import java.util.List;
6 import java.util.Collection;
7
8 /**
9 * <small>
10 * Copyright (c) 2006 wbogaardt.
11 * Permission is granted to copy, distribute and/or modify this document
12 * under the terms of the GNU Free Documentation License, Version 1.2
13 * or any later version published by the Free Software Foundation;
14 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
15 * Texts. A copy of the license is included in the section entitled "GNU
16 * Free Documentation License".
17 * <p/>
18 * $File: $ <br>
19 * $Change: $ submitted by $Author: wbogaardt $ at $DateTime: Mar 24, 2006 10:18:53 AM $ <br>
20 * </small>
21 *
22 * @author wbogaardt
23 * @version 1
24 * Date: Mar 24, 2006
25 * Time: 10:18:53 AM
26 */
27 public interface IDao {
28
29 void saveOrUpdateObject( Object o );
30
31 void saveObject( Object o );
32
33 List getObjectsBy(Class clazz, String property, Object value) throws DAOException;
34
35 Collection saveOrUpdateAllObjects(Collection coll);
36 }