Changeset 1093
- Timestamp:
- 01/08/09 14:52:17 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.ADODataAccess
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/CachedDataAdapter.cs
r1088 r1093 85 85 } 86 86 87 [MethodImpl(MethodImplOptions.Synchronized)]88 87 protected virtual ObjT FindSingle(Selector dbSelector, 89 88 Selector cacheSelector) { … … 117 116 } 118 117 118 [MethodImpl(MethodImplOptions.Synchronized)] 119 119 protected abstract RowT InsertNewRowInCache(ObjT obj); 120 120 121 [MethodImpl(MethodImplOptions.Synchronized)] 121 122 protected abstract void FillCache(); 122 123 124 [MethodImpl(MethodImplOptions.Synchronized)] 123 125 public abstract void SyncWithDb(); 124 126 127 [MethodImpl(MethodImplOptions.Synchronized)] 125 128 protected abstract bool PutInCache(ObjT obj); 126 129 130 [MethodImpl(MethodImplOptions.Synchronized)] 127 131 protected abstract RowT FindCachedById(long id); 128 132 133 [MethodImpl(MethodImplOptions.Synchronized)] 129 134 void CachedDataAdapter_OnUpdate(object sender, EventArgs e) { 130 135 foreach (ICachedDataAdapter parent in this.parentAdapters) { … … 135 140 } 136 141 142 [MethodImpl(MethodImplOptions.Synchronized)] 137 143 protected virtual void RemoveRowFromCache(RowT row) { 138 144 cache.Rows.Remove(row); -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/DataAdapterBase.cs
r1088 r1093 40 40 protected abstract ObjT Convert(RowT row, ObjT obj); 41 41 42 [MethodImpl(MethodImplOptions.Synchronized)] 42 43 protected abstract RowT InsertNewRow(ObjT obj); 43 44 45 [MethodImpl(MethodImplOptions.Synchronized)] 44 46 protected abstract void UpdateRow(RowT row); 45 47 48 [MethodImpl(MethodImplOptions.Synchronized)] 46 49 protected abstract IEnumerable<RowT> FindById(long id); 47 50 51 [MethodImpl(MethodImplOptions.Synchronized)] 48 52 protected abstract IEnumerable<RowT> FindAll(); 49 53 #endregion … … 64 68 } 65 69 66 [MethodImpl(MethodImplOptions.Synchronized)]67 70 protected virtual ObjT FindSingle(Selector selector) { 68 71 RowT row = FindSingleRow(selector); … … 95 98 } 96 99 97 [MethodImpl(MethodImplOptions.Synchronized)]98 100 protected virtual RowT GetRowById(long id) { 99 101 return FindSingleRow( … … 121 123 } 122 124 123 [MethodImpl(MethodImplOptions.Synchronized)]124 125 public virtual ObjT GetById(long id) { 125 126 return FindSingle(delegate() { … … 128 129 } 129 130 130 [MethodImpl(MethodImplOptions.Synchronized)]131 131 public virtual ICollection<ObjT> GetAll() { 132 132 return new List<ObjT>(
Note: See TracChangeset
for help on using the changeset viewer.