sk.stuba.fiit.foo07.genex.dao
Class TestDaoDerby

java.lang.Object
  extended by sk.stuba.fiit.foo07.genex.dao.BasicDao
      extended by sk.stuba.fiit.foo07.genex.dao.TestDaoDerby
All Implemented Interfaces:
TestDao

public class TestDaoDerby
extends BasicDao
implements TestDao

Author:
Martin

Field Summary
 
Fields inherited from class sk.stuba.fiit.foo07.genex.dao.BasicDao
con
 
Constructor Summary
TestDaoDerby()
           
TestDaoDerby(java.sql.Connection con)
           
 
Method Summary
 void addTest(java.lang.Integer testCategoryID, Test toAdd)
           
 void addTests(java.lang.Integer testCategoryID, java.util.ArrayList<Test> toAdd)
           
 void deleteTest(Test toDelete)
           
 void deleteTests(java.util.ArrayList<Test> toDelete)
           
 Test getTestByID(java.lang.Integer testID)
           
 java.util.ArrayList<Test> getTestsByCategoryID(java.lang.Integer categoryID)
           
 void updateTest(Test toUpdate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDaoDerby

public TestDaoDerby()
             throws java.lang.Exception
Throws:
java.lang.Exception

TestDaoDerby

public TestDaoDerby(java.sql.Connection con)
Method Detail

addTest

public void addTest(java.lang.Integer testCategoryID,
                    Test toAdd)
             throws java.sql.SQLException
Specified by:
addTest in interface TestDao
Throws:
java.sql.SQLException

addTests

public void addTests(java.lang.Integer testCategoryID,
                     java.util.ArrayList<Test> toAdd)
              throws java.sql.SQLException
Specified by:
addTests in interface TestDao
Throws:
java.sql.SQLException

deleteTest

public void deleteTest(Test toDelete)
                throws java.sql.SQLException
Specified by:
deleteTest in interface TestDao
Throws:
java.sql.SQLException

deleteTests

public void deleteTests(java.util.ArrayList<Test> toDelete)
                 throws java.sql.SQLException
Specified by:
deleteTests in interface TestDao
Throws:
java.sql.SQLException

getTestByID

public Test getTestByID(java.lang.Integer testID)
                 throws java.sql.SQLException
Specified by:
getTestByID in interface TestDao
Throws:
java.sql.SQLException

getTestsByCategoryID

public java.util.ArrayList<Test> getTestsByCategoryID(java.lang.Integer categoryID)
                                               throws java.sql.SQLException
Specified by:
getTestsByCategoryID in interface TestDao
Throws:
java.sql.SQLException

updateTest

public void updateTest(Test toUpdate)
                throws java.sql.SQLException
Specified by:
updateTest in interface TestDao
Throws:
java.sql.SQLException


Copyright © 2008 Faculty of Informatics and Information Technologies, STU Bratislava. All Rights Reserved.