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

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

public class UserDaoDerby
extends BasicDao
implements UserDao

Author:
palo

Field Summary
protected  java.sql.ResultSet rs
           
protected  java.sql.PreparedStatement st
           
protected  TUser tu
           
 
Fields inherited from class sk.stuba.fiit.foo07.genex.dao.BasicDao
con
 
Constructor Summary
UserDaoDerby(java.sql.Connection con)
           
 
Method Summary
 void addTUser(TUser toAdd)
           
 void deleteTUser(TUser toDelete)
           
 TUser getDefaultTUser()
           
 TUser getTUserByID(java.lang.Integer userID)
           
 void updateTUser(TUser toUpdate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rs

protected java.sql.ResultSet rs

st

protected java.sql.PreparedStatement st

tu

protected TUser tu
Constructor Detail

UserDaoDerby

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

addTUser

public void addTUser(TUser toAdd)
              throws java.sql.SQLException
Specified by:
addTUser in interface UserDao
Throws:
java.sql.SQLException

deleteTUser

public void deleteTUser(TUser toDelete)
                 throws java.sql.SQLException
Specified by:
deleteTUser in interface UserDao
Throws:
java.sql.SQLException

getDefaultTUser

public TUser getDefaultTUser()
                      throws java.sql.SQLException
Specified by:
getDefaultTUser in interface UserDao
Throws:
java.sql.SQLException

getTUserByID

public TUser getTUserByID(java.lang.Integer userID)
                   throws java.sql.SQLException
Specified by:
getTUserByID in interface UserDao
Throws:
java.sql.SQLException

updateTUser

public void updateTUser(TUser toUpdate)
                 throws java.sql.SQLException
Specified by:
updateTUser in interface UserDao
Throws:
java.sql.SQLException


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