Package | com.pcbsys.nirvana.client |
Class | public class nTransactionFactory |
Inheritance | nTransactionFactory ![]() |
Public Methods
Method | Defined By | ||
---|---|---|---|
create(attributes:nTransactionAttributes, transactionCB:Function = null, oldTXId:Long = null):nTransaction [static]
Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied
| nTransactionFactory |
Method Detail
create | () | method |
public static function create(attributes:nTransactionAttributes, transactionCB:Function = null, oldTXId:Long = null):nTransaction
Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied
Parameters
attributes:nTransactionAttributes — The nTransactionAttributes object containing the parameters for the transaction to be created
| |
transactionCB:Function (default = null ) — This is the callback for when a transaction has finished committing, takes a nTransaction as
its parameter or a nTransactionNoSuchTXIDError. Set to null if you want a event dispatched, the listener wil need
to be added to the nTransaction that is returned. The event that will be dispatched is a nTransactionEvent with a listener string
of nTransaction.nTransactionEventString for transaction errors a nTransactionFailedEvent will be dispatched with
listener string nTransaction.nTransactionFailedEventString
| |
oldTXId:Long (default = null ) — can be used when reconstructing a transaction object from a previously known ID
|
nTransaction — nTransaction The newly created nTransaction object
|