Esempio n. 1
0
 public Transaction()
 {
     operationObj        = new Operation();
     lockTable           = new LockTable();
     detector            = new DeadlockDetector();
     logTable            = new List <string>();
     providerTransaction = new ProviderTransaction();
     this.id             = providerTransaction.GetNextIdTransacion();
     this.status         = "active";
 }
Esempio n. 2
0
 public Transaction(int id, List <string> operations)
 {
     this.id         = id;
     this.timestamp  = DateTime.Now;
     this.status     = "active";
     this.operations = operations;
     operationObj    = new Operation();
     lockTable       = new LockTable();
     detector        = new DeadlockDetector();
     logTable        = new List <string>();
 }