edmiStartTransaction
EdmiError edmiStartTransaction(void);
Start (open) a new transaction. All updates to an EDMdatabase in an open transaction will not be made persistent before all open transactions are committed and closed by either the edmiCommitTransaction or the edmiCommitAllTransactions operations. All updates to an EDMdatabase in an open transaction will be undone when the open transaction is aborted and closed by either the edmiAbortTransaction or edmiAbortAllTransactions operations. Transactions can be nested.
The following EDMinterface operations are illegal (will produce an error) in an open transaction: (The edmiWriteStepFile operation is legal in an open transaction if the actual data model is open when the edmiWriteStepFile operation is invoked)
sdaiCloseSession | sdaiOpenRepository |
sdaiOpenRepositoryBN | sdaiCloseRepository |
sdaiCreateModel | sdaiCreateModelBN |
edmiCreateModel | edmiCreateModelBN |
sdaiOpenModel | sdaiOpenModelBN |
sdaiCloseModel | edmiRenameModelBN |
edmiRenameModel | edmiConnect |
edmiDisconnect | edmiCreateUser |
edmiDeleteUser | edmiCreateGroup |
edmiDeleteGroup | edmiUserToGroup |
edmiUserFromGroup | edmiDefinePassword |
edmiOpenDatabase | edmiCloseDatabase |
edmiCreateDatabase | edmiDeleteDatabase |
edmiDefineCommunication | edmiDeleteModel |
sdaiDeleteModel | edmiDeleteModelBN |
edmiProtectModelBN | edmiProtectModel |
edmiSetUsersDefaultProtection | edmiSetUnavailable |
edmiSetAvailable | edmiStopServer |
edmiConvertModelsWithParametersBN | edmiConvertModelsBN |
edmiConvertModelBN | edmiCopyModelBN |
edmiCopyModel | edmiDeleteRuleSchema |
edmiDeleteQuerySchema | edmiCompileFile |
edmiCompileExpress_X | edmiDefineQuerySchema |
edmiDefineRuleSchema | edmiReadStepFile |
edmiImportStepFile | edmiStepFileToHTML |
edmiWriteModelInXmlFormatBN | edmiWriteStepFile |
edmiValidateModelBN | edmiValidateModel |
edmiValidateInstanceType | edmiCreateRepository |
edmiDeleteRepository | edmiDeleteRepositoryBN |
edmiMoveModel | edmiMoveModelBN |
edmiOpenRepository | edmiOpenRepositoryBN |
edmiDeleteOpenModel | edmiValidateInstanceTypeBN |
edmiValidateInstance |
|
Arguments
Return Value
Options
Example
EdmiError rstat; . . . if (rstat = edmiStartTransaction()) { /* Error in operation */ printf("\nError: %s in edmiStartTransaction \n", edmiGetErrorText(rstat)); goto error; } . . . if (rstat = edmiCommitTransaction()) { /* Error in operation */ printf("\nError: %s in edmiCommitTransaction \n", edmiGetErrorText(rstat)); goto error; } . . .
See also
Filter by label
There are no items with the selected labels at this time.