|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplyChangesCommand
An ApplyChangesCommand is used to flush the changes associated with a modified graph of DataObjects to a database.
Method Summary | |
---|---|
void |
addCreateCommand(commonj.sdo.Type type,
Command cmd)
Adds a user-provided create command. |
void |
addDeleteCommand(commonj.sdo.Type type,
Command cmd)
Adds a user-provided delete command. |
void |
addUpdateCommand(commonj.sdo.Type type,
Command cmd)
Adds a user-provided update command. |
void |
execute(commonj.sdo.DataObject root)
The change history is scanned and modifications to the graph of data objects are flushed to the database. |
void |
setConnection(java.sql.Connection connection)
Provides the java.sql.Connection to be used for this executing this command. |
void |
setConnection(java.sql.Connection connection,
boolean manageTransactions)
Provides the java.sql.Connection to be used for this executing this command. |
Method Detail |
---|
void addUpdateCommand(commonj.sdo.Type type, Command cmd)
type
- The DataObject type this command applys tocmd
- The Command used to UPDATE data objects of the specified typevoid addCreateCommand(commonj.sdo.Type type, Command cmd)
type
- The DataObject type this command applys tocmd
- The Command used to INSERT data objects of the specified typevoid addDeleteCommand(commonj.sdo.Type type, Command cmd)
type
- The DataObject type this command applys tocmd
- The Command used to DELETE data objects of the specified typevoid execute(commonj.sdo.DataObject root)
root
- the topmost containing data objectvoid setConnection(java.sql.Connection connection)
connection
- the java.sql.Connectionvoid setConnection(java.sql.Connection connection, boolean manageTransactions)
connection
- the java.sql.ConnectionmanageTransactions
- true
if the DAS should perform tx
commit/rollback
|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |