XaTransaction.registerConnection

Registers cnc to be used by xa_trans to create a distributed transaction.

Note: any #GdaConnection object can only be registered with at most one #GdaXaTransaction object; also some connections may not be registered at all with a #GdaXaTransaction object because the database provider being used does not support it.

class XaTransaction
bool
registerConnection

Parameters

cnc gda.connection.Connection

the connection to add to xa_trans

branch string

the branch qualifier

Return Value

Type: bool

true if no error occurred

Throws