destructor


pfcmain.pbl   >   pfc_n_tr   >   destructor   

Full name pfc_n_tr.destructor
Access public
Extend of
Return value
Prototype event destructor()

Name Datatype
No Data

Name Datatype
No Data

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

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_trregistration.of_unregister pfc_n_cst_trregistration
pfc_n_cst_trregistration.of_isregistered pfc_n_cst_trregistration
pfc_n_tr.of_IsConnected pfc_n_tr
pfc_n_tr.of_RollBack pfc_n_tr
pfc_n_tr.of_DisConnect pfc_n_tr
pfc_n_tr.of_Commit pfc_n_tr

     
Full name
demopfc

     
Name Scope
No Data