com.jfw.examples
Class SearchDB

java.lang.Object
  extended by com.jfw.examples.SearchDB
All Implemented Interfaces:
QueryGatewayInterface

public final class SearchDB
extends java.lang.Object
implements QueryGatewayInterface


Field Summary
protected  java.lang.String className
           
protected static java.lang.String query
           
 
Constructor Summary
SearchDB()
           
 
Method Summary
 void execute(java.util.HashMap outputdata)
          Execute the query defined in class static method.
 void setData(java.lang.Object data)
          Set object containing parameters to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected java.lang.String className

query

protected static java.lang.String query
Constructor Detail

SearchDB

public SearchDB()
Method Detail

setData

public void setData(java.lang.Object data)
Description copied from interface: QueryGatewayInterface
Set object containing parameters to use.
The parameter data can be null.

Specified by:
setData in interface QueryGatewayInterface
Parameters:
data - a generic Object

execute

public void execute(java.util.HashMap outputdata)
             throws DatabaseException
Description copied from interface: QueryGatewayInterface
Execute the query defined in class static method.

Specified by:
execute in interface QueryGatewayInterface
Parameters:
outputdata - contains the data returned by query and other informations relative the database interrogation.
Throws:
DatabaseException