|
destructor
|
|
Full name
|
pfc_n_tr.destructor
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event destructor()
|
event destructor;//////////////////////////////////////////////////////////////////////////////
// Event: destructor
// Description:
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
// 5.0.02 Removed conditional checking for sqlca before unregistering
// with the transaction registration service. Check was not needed and
// caused regeneration problems when other subclassed transaction objects
// (from transaction, not n_tr) were in the library search path.
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved. Any distribution of the
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
// If still connected, determine whether to commit or rollback.
if of_IsConnected() then
if ib_AutoRollBack then
of_RollBack()
else
of_Commit()
end if
of_DisConnect()
end if
// If transaction object is registered with the Transaction
// Registration service, then unregister it
if IsValid (gnv_app) then
if IsValid (gnv_app.inv_trregistration) then
if gnv_app.inv_trregistration.of_IsRegistered (this) then
gnv_app.inv_trregistration.of_Unregister (this)
end if
end if
end if
end event