com.jfw.authentication
Class UserDataDB

java.lang.Object
  extended by com.jfw.authentication.UserDataDB
All Implemented Interfaces:
QueryGatewayInterface

public class UserDataDB
extends java.lang.Object
implements QueryGatewayInterface

Get the login data of a user from table USERS.


Field Summary
static java.lang.String USER_DATA_KEY
          Key in outputdata.
 
Constructor Summary
UserDataDB()
           
 
Method Summary
 void execute(java.util.HashMap outputdata)
          Execute the query.
 void setData(java.lang.Object data)
          Set attribute data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_DATA_KEY

public static final java.lang.String USER_DATA_KEY
Key in outputdata.

See Also:
Constant Field Values
Constructor Detail

UserDataDB

public UserDataDB()
Method Detail

setData

public void setData(java.lang.Object data)
Set attribute data.

Specified by:
setData in interface QueryGatewayInterface
Parameters:
data - a LoginForm object.

execute

public void execute(java.util.HashMap outputdata)
             throws DatabaseException
Execute the query.

Specified by:
execute in interface QueryGatewayInterface
Parameters:
outputdata - set key USER_DATA_KEY with value a UserData object. If query return no rows then the no UserData object is set.
Throws:
DatabaseException