//$NON-NLS-1$ /// <exception cref="System.Exception"></exception> protected override void Store() { for (var i = 0; i < _fooValues.Length; i++) { var item = new FieldIndexItem (_fooValues[i]); Store(item); } }
/// <exception cref="System.Exception"></exception> public virtual void TestAllThere() { for (int i = 0; i < Foos.Length; i++) { IQuery q = CreateQuery(Foos[i]); IObjectSet objectSet = q.Execute(); Assert.AreEqual(1, objectSet.Count); FieldIndexItem fii = (FieldIndexItem)objectSet.Next(); Assert.AreEqual(Foos[i], fii.foo); } }
private void RemoveFromTransaction(Transaction trans, int foo) { IObjectSet found = CreateItemQuery(trans).Execute(); while (found.HasNext()) { FieldIndexItem item = (FieldIndexItem)found.Next(); if (item.foo == foo) { Container().Delete(trans, item); } } }
private void Store(Transaction trans, FieldIndexItem item) { Container().Store(trans, item); }