|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.das.rdb.impl.DASImpl
public class DASImpl
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.DAS |
---|
FACTORY |
Constructor Summary | |
---|---|
DASImpl(Config inConfig)
|
|
DASImpl(Config inConfig,
java.sql.Connection inConnection)
|
|
DASImpl(java.sql.Connection inConnection)
|
|
DASImpl(java.io.InputStream stream)
|
|
DASImpl(java.io.InputStream configStream,
java.sql.Connection inConnection)
|
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 |
createCommand(java.lang.String sql,
Config config)
|
ApplyChangesCommandImpl |
getApplyChangesCommand()
|
Command |
getCommand(java.lang.String name)
Gets the named command from this factory's inventory |
java.sql.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(java.sql.Connection connection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DASImpl(java.io.InputStream stream)
public DASImpl(Config inConfig)
public DASImpl(Config inConfig, java.sql.Connection inConnection)
public DASImpl(java.io.InputStream configStream, java.sql.Connection inConnection)
public DASImpl(java.sql.Connection inConnection)
Method Detail |
---|
public ApplyChangesCommandImpl getApplyChangesCommand()
public Command getCommand(java.lang.String name)
DAS
getCommand
in interface DAS
name
- The identifying name of the requested command
public void setConnection(java.sql.Connection connection)
public java.sql.Connection getConnection()
public void releaseResources()
DAS
releaseResources
in interface DAS
public Command createCommand(java.lang.String sql)
DAS
createCommand
in interface DAS
sql
- The SQL statement
public Command createCommand(java.lang.String sql, Config config)
public void applyChanges(commonj.sdo.DataObject root)
DAS
applyChanges
in interface DAS
root
- the topmost containing data object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |