com.jfw.authentication
Class UserAddDB

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

public class UserAddDB
extends java.lang.Object
implements QueryGatewayInterface

Add a user in table USERS.


Constructor Summary
UserAddDB()
          Create an instance.
UserAddDB(Transaction transaction)
          Create an instance.
 
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
 

Constructor Detail

UserAddDB

public UserAddDB()
Create an instance.


UserAddDB

public UserAddDB(Transaction transaction)
Create an instance.

Parameters:
transaction - a Transaction object.
Method Detail

setData

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

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

execute

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

Specified by:
execute in interface QueryGatewayInterface
Parameters:
outputdata - set key QueryGateway.ROWS_CHANGED_KEY with the number of rows changed by the query.
Throws:
DatabaseException