Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb
Interface CommandFactory

All Known Implementing Classes:
CommandFactoryImpl

public interface CommandFactory

A CommandFactory produces Command and ApplyChangesCommand instances.


Method Summary
 ApplyChangesCommand createApplyChangesCommand()
          Creates an instance
 ApplyChangesCommand createApplyChangesCommand(Config config)
          Creates an instance with the provided configuration
 ApplyChangesCommand createApplyChangesCommand(InputStream config)
          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 config)
          Creates a Command based on the provided SQL statement and configuration
 

Method Detail

createCommand

Command createCommand(String sql)
Creates a Command based on the provided SQL statement

Parameters:
sql - The SQL statement
Returns:
returns a Command instance

createCommand

Command createCommand(String sql,
                      InputStream config)
Creates a Command based on the provided SQL statement and configuration

Parameters:
sql - The SQL statement
mappingModel - The congiguration as XML file stream
Returns:
returns a COmmand instance

createCommand

Command createCommand(String sql,
                      Config config)
Creates a Command based on the provided SQL statement and configuration

Parameters:
sql - The SQL statement
config - The congiguration as Config instance
Returns:
returns a COmmand instance

createApplyChangesCommand

ApplyChangesCommand createApplyChangesCommand()
Creates an instance

Returns:
Returns the ApplyChangesCommand instance

createApplyChangesCommand

ApplyChangesCommand createApplyChangesCommand(InputStream config)
                                              throws IOException
Creates an instance with the provided configuration

Parameters:
config - The provided configuration as a stream over an xml file
Returns:
Returns an ApplyChangesCOmmand in stance
Throws:
IOException

createApplyChangesCommand

ApplyChangesCommand createApplyChangesCommand(Config config)
Creates an instance with the provided configuration

Parameters:
config - The provided configuration as a Config instance
Returns:
Returns an ApplyChangesCommand in stance
Throws:
IOException

Tuscany DAS for Relational Databases

-