net.sf.dc.core.objects
Class Requestor

java.lang.Object
  extended bynet.sf.dc.core.objects.Requestor

public class Requestor
extends java.lang.Object

A request object. Here, the class name of the requestor for an action is specified. The action itself consists out of the method and its parameters. The MainFrame will execute the request

Since:
1.3
Version:
0.50
Author:
Robert-Jan van der Waals

Constructor Summary
Requestor(java.lang.Class clazz, java.lang.String sMethod, java.lang.Object[] parameters)
          Creates a new requestor
Requestor(java.lang.Class clazz, java.lang.String sMethod, java.lang.String[] parameters, boolean bExecuteOnFail)
          Creates a new requestor
 
Method Summary
 java.lang.Class getClazz()
          Returns the class name of the requestor
 boolean getExecuteOnFail()
          Indicates if the action applies even if the query fails
 java.lang.String getMethod()
          Returns the method name
 java.lang.Object[] getParameters()
          Returns the parameters for the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Requestor

public Requestor(java.lang.Class clazz,
                 java.lang.String sMethod,
                 java.lang.String[] parameters,
                 boolean bExecuteOnFail)
Creates a new requestor

Parameters:
clazz - the requestors class name
sMethod - method to be executed
parameters - the parameterd for the method
bExecuteOnFail - indicates if the action applies even if the query fails

Requestor

public Requestor(java.lang.Class clazz,
                 java.lang.String sMethod,
                 java.lang.Object[] parameters)
Creates a new requestor

Parameters:
clazz - the requestors class name
sMethod - method to be executed
parameters - the parameterd for the method
Method Detail

getClazz

public java.lang.Class getClazz()
Returns the class name of the requestor


getMethod

public java.lang.String getMethod()
Returns the method name


getParameters

public java.lang.Object[] getParameters()
Returns the parameters for the method


getExecuteOnFail

public boolean getExecuteOnFail()
Indicates if the action applies even if the query fails