net.sf.borg.model.db.jdbc
Class CheckListJdbcDB

java.lang.Object
  extended by net.sf.borg.model.db.jdbc.JdbcDB
      extended by net.sf.borg.model.db.jdbc.CheckListJdbcDB
All Implemented Interfaces:
CheckListDB

public class CheckListJdbcDB
extends JdbcDB
implements CheckListDB

provides the JDBC layer for reading/writing CheckLists.


Field Summary
 
Fields inherited from class net.sf.borg.model.db.jdbc.JdbcDB
connection_
 
Constructor Summary
CheckListJdbcDB()
           
 
Method Summary
 void addCheckList(CheckList m)
          Adds a checkList to the database.
 void delete(String name)
          Delete a checkList by name.
 Collection<String> getNames()
          Gets all checkList names form the db
 Collection<CheckList> readAll()
          Read all checkLists from the db
 CheckList readCheckList(String name)
          Read a checkList by name
 void updateCheckList(CheckList m)
          Update a checkList in the db.
 
Methods inherited from class net.sf.borg.model.db.jdbc.JdbcDB
beginTransaction, buildDbDir, checkTimestamp, close, commitTransaction, connect, execSQL, getConnection, getOption, getOptions, getUrl, rollbackTransaction, setOption, toInt, toInt, toStr, toVect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckListJdbcDB

public CheckListJdbcDB()
Method Detail

addCheckList

public void addCheckList(CheckList m)
                  throws Exception
Description copied from interface: CheckListDB
Adds a checkList to the database.

Specified by:
addCheckList in interface CheckListDB
Parameters:
m - the CheckList
Throws:
Exception

delete

public void delete(String name)
            throws Exception
Description copied from interface: CheckListDB
Delete a checkList by name.

Specified by:
delete in interface CheckListDB
Parameters:
name - the name
Throws:
Exception

getNames

public Collection<String> getNames()
                            throws Exception
Description copied from interface: CheckListDB
Gets all checkList names form the db

Specified by:
getNames in interface CheckListDB
Returns:
a collection of checkList names
Throws:
Exception

readAll

public Collection<CheckList> readAll()
                              throws Exception
Description copied from interface: CheckListDB
Read all checkLists from the db

Specified by:
readAll in interface CheckListDB
Returns:
a collection of all checkLists
Throws:
Exception

readCheckList

public CheckList readCheckList(String name)
                        throws Exception
Description copied from interface: CheckListDB
Read a checkList by name

Specified by:
readCheckList in interface CheckListDB
Parameters:
name - the name
Returns:
the checkList
Throws:
Exception

updateCheckList

public void updateCheckList(CheckList m)
                     throws Exception
Description copied from interface: CheckListDB
Update a checkList in the db.

Specified by:
updateCheckList in interface CheckListDB
Parameters:
m - the checkList
Throws:
Exception


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae