VCOM:VectorWorks:Extension:IDBDatabase::SetTransactionMode
.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference
Description
namespace VectorWorks::Extension
Member of VCOM:VectorWorks:Extension:IDBDatabase
Sets the commit mode of the driver. The driver uses manual-commit mode or auto-commit mode. If you want to use transactions you need to set the commit mode to manual and to use Commit and Rollback functions.
virtual VCOMError VCOM_CALLTYPE SetTransactionMode(
ECommitMode commitMode) = 0;
Parameters
commitMode ECommitMode Commit mode. Possible values are eCommitMode_Default, eCommitMode_Auto, eCommitMode_Manual.
Return Value
Uses standard VCOM Error Reporting.
Return value meaning:
kVCOMError_NotInitialized Bad VCOM instance used to call the fuction. kVCOMError_Failed Routine failed. kVCOMError_NoError Routine succeeded.