sk.stuba.fiit.foo07.genex.dao
Class TestDaoDerby
java.lang.Object
sk.stuba.fiit.foo07.genex.dao.BasicDao
sk.stuba.fiit.foo07.genex.dao.TestDaoDerby
- All Implemented Interfaces:
- TestDao
public class TestDaoDerby
- extends BasicDao
- implements TestDao
- Author:
- Martin
Fields inherited from class sk.stuba.fiit.foo07.genex.dao.BasicDao |
con |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestDaoDerby
public TestDaoDerby()
throws java.lang.Exception
- Throws:
java.lang.Exception
TestDaoDerby
public TestDaoDerby(java.sql.Connection con)
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.