org.apache.tuscany.das.rdb
Interface DAS

All Known Implementing Classes:
DASImpl

public interface DAS

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


Field Summary
static DASFactory FACTORY
           
 
Method Summary
 void applyChanges(commonj.sdo.DataObject root)
          The change history is scanned and modifications to the graph of data objects are flushed to the database.
 Command createCommand(java.lang.String sql)
          Creates a Command based on the provided SQL statement
 Command getCommand(java.lang.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.
 

Field Detail

FACTORY

static final DASFactory FACTORY
Method Detail

applyChanges

void applyChanges(commonj.sdo.DataObject root)
The change history is scanned and modifications to the graph of data objects are flushed to the database.

Parameters:
root - the topmost containing data object

getCommand

Command getCommand(java.lang.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

releaseResources

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


createCommand

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

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


Copyright © 2007 Apache Software Foundation. All Rights Reserved.