Пример #1
0
 protected virtual void Init()
 {
     start = 0;
     end   = 0;
     // for instance, only manage index for one field query using 'equal'
     if (classInfo.HasIndex() && query.HasCriteria() && CanUseIndex(query.GetCriteria(
                                                                        )))
     {
         NeoDatis.Tool.Wrappers.List.IOdbList <string> fields = query.GetAllInvolvedFields(
             );
         if (fields.IsEmpty())
         {
             useIndex = false;
         }
         else
         {
             int[] fieldIds = GetAllInvolvedFieldIds(fields);
             classInfoIndex = classInfo.GetIndexForAttributeIds(fieldIds);
             if (classInfoIndex != null)
             {
                 useIndex = true;
             }
         }
     }
     // Keep the detail
     details = GetDetails();
 }
Пример #2
0
 private void ManageCommitListenersBefore()
 {
     NeoDatis.Tool.Wrappers.List.IOdbList <NeoDatis.Odb.Core.Layers.Layer3.ICommitListener
                                           > listeners = session.GetStorageEngine().GetCommitListeners();
     if (listeners == null || listeners.IsEmpty())
     {
         return;
     }
     System.Collections.Generic.IEnumerator <NeoDatis.Odb.Core.Layers.Layer3.ICommitListener
                                             >       iterator       = listeners.GetEnumerator();
     NeoDatis.Odb.Core.Layers.Layer3.ICommitListener commitListener = null;
     while (iterator.MoveNext())
     {
         commitListener = iterator.Current;
         commitListener.BeforeCommit();
     }
 }
Пример #3
0
 public virtual bool IsEmpty()
 {
     return(listOfBytes == null || listOfBytes.IsEmpty());
 }
Пример #4
0
 public virtual bool HasCompatibleChanges()
 {
     return(!compatibleChanges.IsEmpty());
 }
Пример #5
0
 /// <returns>the isCompatible</returns>
 public virtual bool IsCompatible()
 {
     return(incompatibleChanges.IsEmpty());
 }
 public virtual bool IsEmpty()
 {
     return(criteria.IsEmpty());
 }