示例#1
0
 //$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);
     }
 }
示例#2
0
 //$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);
     }
 }
示例#3
0
 /// <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);
     }
 }
示例#4
0
        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);
                }
            }
        }
示例#5
0
 private void Store(Transaction trans, FieldIndexItem item)
 {
     Container().Store(trans, item);
 }
		private void Store(Transaction trans, FieldIndexItem item)
		{
			Container().Store(trans, item);
		}