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"; }
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>(); }