public void GetTransactionSessions(UtlHashSet <Session> set) { Session[] allSessions = base.database.sessionManager.GetAllSessions(); for (int i = 0; i < allSessions.Length; i++) { long transactionTimestamp = allSessions[i].GetTransactionTimestamp(); if (base.LiveTransactionTimestamps.Contains(transactionTimestamp)) { set.Add(allSessions[i]); } else if (allSessions[i].IsPreTransaction) { set.Add(allSessions[i]); } } }
public int AddTableColumns(List <Expression> expList, int position, UtlHashSet <string> exclude) { Table table = this.GetTable(); int columnCount = table.GetColumnCount(); for (int i = 0; i < columnCount; i++) { ColumnSchema column = table.GetColumn(i); string key = (this._columnAliases == null) ? column.GetName().Name : this._columnAliases.Get(i); if ((exclude == null) || !exclude.Contains(key)) { Expression item = new ExpressionColumn(this, i); expList.Insert(position++, item); } } return(position); }