releaseRelConnection()

Releases a connection to a relationship database.

Syntax

void releaseRelConnection(Boolean doCommit)
 

Parameters

doCommit
The flag that indicates whether this method should call the DtpConnection.commit() method before it releases the database connection.

Return values

None.

Exceptions

DtpConnectionException - If an error occurs while trying to release the database connection or if the requested commit or rollback has failed.

Notes

The releaseRelConnection() method releases the connection for this specific map. It commits or rolls back the database transactions based on the value of its doCommit argument, as follows:

Once releaseRelConnection() has performed the chosen action on the database transaction, it releases the database connection that the current thread is exclusively using.

See also

getRelConnection(), release()

Copyright IBM Corp. 2003