1   package org.wcb.model.dao;
2   
3   import org.wcb.model.vo.hibernate.Logbook;
4   import org.wcb.exception.InfrastructureException;
5   import org.springframework.dao.DataAccessException;
6   
7   import java.util.List;
8   
9   /**
10   * <small>
11   * Copyright (c)  2006  wbogaardt.
12   * Permission is granted to copy, distribute and/or modify this document
13   * under the terms of the GNU Free Documentation License, Version 1.2
14   * or any later version published by the Free Software Foundation;
15   * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
16   * Texts.  A copy of the license is included in the section entitled "GNU
17   * Free Documentation License".
18   * <p/>
19   * $File:  $ <br>
20   * $Change:  $ submitted by $Author: wbogaardt $ at $DateTime: Mar 24, 2006 10:32:28 AM $ <br>
21   * </small>
22   *
23   * @author wbogaardt
24   * @version 1
25   *          Date: Mar 24, 2006
26   *          Time: 10:32:28 AM
27   */
28  public interface ILogbookDAO extends IDao{
29  
30      List<Logbook> findAll() throws InfrastructureException, DataAccessException;
31  
32      List<Logbook> findByRegistration(String registration) throws InfrastructureException;
33  
34      List<Logbook> findAllCrossCountry() throws InfrastructureException;
35      
36      Logbook findEntry(Integer id) throws InfrastructureException;
37  
38      void deleteEntry(Logbook oEntry) throws InfrastructureException;
39  }