com.jfw.authentication
Class UserGroupAddDB

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

public class UserGroupAddDB
extends java.lang.Object
implements QueryGatewayInterface

Add a user-group in table USER_GROUP.


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

UserGroupAddDB

public UserGroupAddDB()
Create an instance.


UserGroupAddDB

public UserGroupAddDB(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