예제 #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);
		}