Tuscany DAS for Relational Databases

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

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

public class CommandFactoryImpl
extends Object
implements CommandFactory


Constructor Summary
CommandFactoryImpl()
           
 
Method Summary
 ApplyChangesCommand createApplyChangesCommand()
          Creates an instance
 ApplyChangesCommand createApplyChangesCommand(Config config)
          Creates an instance with the provided configuration
 ApplyChangesCommand createApplyChangesCommand(InputStream configStream)
          Creates an instance with the provided configuration
 Command createCommand(String sql)
          Creates a Command based on the provided SQL statement
 Command createCommand(String sql, Config config)
          Creates a Command based on the provided SQL statement and configuration
 Command createCommand(String sql, InputStream configStream)
          Creates a Command based on the provided SQL statement and configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFactoryImpl

public CommandFactoryImpl()
Method Detail

createCommand

public Command createCommand(String sql)
Description copied from interface: CommandFactory
Creates a Command based on the provided SQL statement

Specified by:
createCommand in interface CommandFactory
Parameters:
sql - The SQL statement
Returns:
returns a Command instance

createCommand

public Command createCommand(String sql,
                             InputStream configStream)
Description copied from interface: CommandFactory
Creates a Command based on the provided SQL statement and configuration

Specified by:
createCommand in interface CommandFactory
Parameters:
sql - The SQL statement
Returns:
returns a COmmand instance

createCommand

public Command createCommand(String sql,
                             Config config)
Description copied from interface: CommandFactory
Creates a Command based on the provided SQL statement and configuration

Specified by:
createCommand in interface CommandFactory
Parameters:
sql - The SQL statement
config - The congiguration as Config instance
Returns:
returns a COmmand instance

createApplyChangesCommand

public ApplyChangesCommand createApplyChangesCommand()
Description copied from interface: CommandFactory
Creates an instance

Specified by:
createApplyChangesCommand in interface CommandFactory
Returns:
Returns the ApplyChangesCommand instance

createApplyChangesCommand

public ApplyChangesCommand createApplyChangesCommand(InputStream configStream)
                                              throws IOException
Description copied from interface: CommandFactory
Creates an instance with the provided configuration

Specified by:
createApplyChangesCommand in interface CommandFactory
Parameters:
configStream - The provided configuration as a stream over an xml file
Returns:
Returns an ApplyChangesCOmmand in stance
Throws:
IOException

createApplyChangesCommand

public ApplyChangesCommand createApplyChangesCommand(Config config)
Description copied from interface: CommandFactory
Creates an instance with the provided configuration

Specified by:
createApplyChangesCommand in interface CommandFactory
Parameters:
config - The provided configuration as a Config instance
Returns:
Returns an ApplyChangesCommand in stance

Tuscany DAS for Relational Databases

-