| net.jforum.dao.UserSessionDAO
All known Subclasses: net.jforum.dao.generic.GenericUserSessionDAO,
UserSessionDAO | public interface UserSessionDAO (Code) | | author: Rafael Steil version: $Id: UserSessionDAO.java,v 1.6 2006/08/23 02:13:34 rafaelsteil Exp $ |
add | public void add(UserSession us, Connection conn)(Code) | | Writes a new UserSession to the database.
Parameters: us - The UserSession to store Parameters: conn - The java.sql.Connection object to use. As many times user session management will be done in places where a valid request is not available, we cannot try to retrieve the conneciton from the thread local implementation. If any driver implementation of this method will not use a database( eg, where a Connection is not required ), when justpass null as argument. |
selectById | public UserSession selectById(UserSession us, Connection conn)(Code) | | Gets an UserSession from the database.
The object passed as argument should at least have the user id
in order to find the correct register.
Parameters: us - The complete UserSession object data Parameters: conn - The java.sql.Connection object to use. As many times user session management will be done in places where a valid request is not available, we cannot try to retrieve the conneciton from the thread local implementation. If any driver implementation of this method will not use a database( eg, where a Connection is not required ), when justpass null as argument. UserSession |
update | public void update(UserSession us, Connection conn)(Code) | | Updates an UserSession
Parameters: us - The UserSession to update Parameters: conn - The java.sql.Connection object to use. As many times user session management will be done in places where a valid request is not available, we cannot try to retrieve the conneciton from the thread local implementation. If any driver implementation of this method will not use a database( eg, where a Connection is not required ), when justpass null as argument. |
|
|