net.sf.dc.db
Class QueryBatch

java.lang.Object
  extended bynet.sf.dc.db.QueryBatch

public class QueryBatch
extends java.lang.Object

A collection of actions to be performed on the database

Since:
1.3
Version:
DC0.50
Author:
Robert-Jan van der Waals

Constructor Summary
QueryBatch()
          Initializes an empty query batch
 
Method Summary
 void addQuery(Query query)
          Adds a query to this batch
 Query[] getQueries()
          Returns all the queries
 RequestorCollection getRequestors()
          Retrieves the Requestors registered on this query batch
 boolean isSilent()
          Indicates whether user feedback should be given when this batch is executed.
 void setRequestors(RequestorCollection requestors)
          Adds a set of Requestors which will be evalutated after the batch has been executed
 void setSilent(boolean silent)
          Indicates whether user feedback should be given when this batch is executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryBatch

public QueryBatch()
Initializes an empty query batch

Method Detail

setRequestors

public void setRequestors(RequestorCollection requestors)
Adds a set of Requestors which will be evalutated after the batch has been executed

Parameters:
requestors -

setSilent

public void setSilent(boolean silent)
Indicates whether user feedback should be given when this batch is executed. Errors will always be logged

Parameters:
silent - run silently y/n

isSilent

public boolean isSilent()
Indicates whether user feedback should be given when this batch is executed. Errors will always be logged


getRequestors

public RequestorCollection getRequestors()
Retrieves the Requestors registered on this query batch


addQuery

public void addQuery(Query query)
Adds a query to this batch

Parameters:
query - query to be added

getQueries

public Query[] getQueries()
Returns all the queries