Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb
Interface CommandGroup

All Known Implementing Classes:
CommandGroupImpl

public interface CommandGroup

A CommandGroup represents a set of Command and single ApplyChangesCommand that are created from a common config file.


Field Summary
static CommandGroupFactory FACTORY
           
 
Method Summary
 ApplyChangesCommand getApplyChangesCommand()
          Return the ApplyChangesCommnad for this configured factory
 Command getCommand(String name)
          Gets the named command from this factory's inventory
 void releaseResources()
          If the CommandGroup is managing connections then this method must be called when the client is done with the instance.
 void setConnection(Connection connection)
          Set the default connection for all command in the group
 

Field Detail

FACTORY

static final CommandGroupFactory FACTORY
Method Detail

getApplyChangesCommand

ApplyChangesCommand getApplyChangesCommand()
Return the ApplyChangesCommnad for this configured factory

Returns:
Returns an instance of ApplyChangesCommand

getCommand

Command getCommand(String name)
Gets the named command from this factory's inventory

Parameters:
name - The identifying name of the requested command
Returns:
Returns the identified command

setConnection

void setConnection(Connection connection)
Set the default connection for all command in the group

Parameters:
connection -

releaseResources

void releaseResources()
If the CommandGroup is managing connections then this method must be called when the client is done with the instance.


Tuscany DAS for Relational Databases

-