void beginTran()
None.
None.
DtpConnectionException - If a database error occurs.
The beginTran(), commit() and rollBack() methods together provide transaction support for SQL queries.
Before beginning a transaction, you must create a DtpConnection object with the getRelConnection() method from the BaseDLM class.
The following example uses a transaction to execute a query for inserting rows into a table in the SapCust relationship.
DtpConnection connection = getRelConnection("SapCust"); // begin a transaction connection.beginTran(); // insert a row connection.executeSQL("insert..."); // commit the transaction connection.commit();