View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.dao;
5   
6   import java.sql.SQLException;
7   import java.util.ArrayList;
8   
9   import sk.stuba.fiit.foo07.genex.beans.Test;
10  
11  /**
12   * @author _mizu_
13   * 
14   */
15  public interface TestDao {
16  
17      public Test getTestByID(Integer testID) throws SQLException;
18  
19      public ArrayList<Test> getTestsByCategoryID(Integer categoryID)
20              throws SQLException;
21  
22      public void addTest(Integer testCategoryID, Test toAdd) throws SQLException;
23  
24      public void addTests(Integer testCategoryID, ArrayList<Test> toAdd)
25              throws SQLException;
26  
27      public void updateTest(Test toUpdate) throws SQLException;
28  
29      public void deleteTest(Test toDelete) throws SQLException;
30  
31      public void deleteTests(ArrayList<Test> toDelete) throws SQLException;
32  }