Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.impl
Class CommandGroupImpl

java.lang.Object
  extended by org.apache.tuscany.das.rdb.impl.CommandGroupImpl
All Implemented Interfaces:
CommandGroup

public class CommandGroupImpl
extends Object
implements CommandGroup

An ConfiguredCommandFactory produces instances of Command and ApplyChangesCommand. This factory is initialized with a configuration that defines the commands it produces.


Field Summary
 
Fields inherited from interface org.apache.tuscany.das.rdb.CommandGroup
FACTORY
 
Constructor Summary
CommandGroupImpl(InputStream stream)
           
 
Method Summary
 ApplyChangesCommand getApplyChangesCommand()
          Return the ApplyChangesCommnad for this configured factory
 Command getCommand(String name)
          Gets the named command from this factory's inventory
 Connection getConnection()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandGroupImpl

public CommandGroupImpl(InputStream stream)
Method Detail

getApplyChangesCommand

public ApplyChangesCommand getApplyChangesCommand()
Description copied from interface: CommandGroup
Return the ApplyChangesCommnad for this configured factory

Specified by:
getApplyChangesCommand in interface CommandGroup
Returns:
Returns an instance of ApplyChangesCommand

getCommand

public Command getCommand(String name)
Description copied from interface: CommandGroup
Gets the named command from this factory's inventory

Specified by:
getCommand in interface CommandGroup
Parameters:
name - The identifying name of the requested command
Returns:
Returns the identified command

setConnection

public void setConnection(Connection connection)
Description copied from interface: CommandGroup
Set the default connection for all command in the group

Specified by:
setConnection in interface CommandGroup

getConnection

public Connection getConnection()

releaseResources

public void releaseResources()
Description copied from interface: CommandGroup
If the CommandGroup is managing connections then this method must be called when the client is done with the instance.

Specified by:
releaseResources in interface CommandGroup

Tuscany DAS for Relational Databases

-