Changeset 1094 for trunk/sources/HeuristicLab.Hive.Server.ADODataAccess
- Timestamp:
- 01/08/09 15:46:53 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.ADODataAccess
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/CachedDataAdapter.cs
r1093 r1094 39 39 new CacheT(); 40 40 41 protected IDictionary<long, DataTable> dataTable =42 new Dictionary<long, DataTable>();43 44 41 protected ICollection<ICachedDataAdapter> parentAdapters = 45 42 new List<ICachedDataAdapter>(); … … 130 127 [MethodImpl(MethodImplOptions.Synchronized)] 131 128 protected abstract RowT FindCachedById(long id); 129 130 protected abstract DataTable GetDataTable(); 132 131 133 132 [MethodImpl(MethodImplOptions.Synchronized)] … … 192 191 !PutInCache(obj)) { 193 192 //remove from cache 194 dataTable[obj.Id].ImportRow(row); 195 dataTable.Remove(obj.Id); 193 GetDataTable().ImportRow(row); 196 194 197 195 UpdateRow(row); … … 202 200 cache.ImportRow(row); 203 201 204 dataTable[obj.Id] = row.Table; 205 row.Table.Rows.Remove(row); 202 GetDataTable().Rows.Remove(row); 206 203 } 207 204 } -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ClientAdapter.cs
r1014 r1094 200 200 new Selector(adapter.GetData), 201 201 new Selector(cache.AsEnumerable<dsHiveServer.ClientRow>)); 202 } 203 204 protected override System.Data.DataTable GetDataTable() { 205 return data; 202 206 } 203 207 #endregion -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs
r1092 r1094 188 188 new Selector(adapter.GetData), 189 189 new Selector(cache.AsEnumerable<dsHiveServer.JobRow>)); 190 } 191 192 protected override System.Data.DataTable GetDataTable() { 193 return data; 190 194 } 191 195 -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ResourceAdapter.cs
r995 r1094 126 126 new Selector(cache.AsEnumerable<dsHiveServer.ResourceRow>)); 127 127 } 128 129 protected override System.Data.DataTable GetDataTable() { 130 return data; 131 } 128 132 #endregion 129 133
Note: See TracChangeset
for help on using the changeset viewer.