Example #1
0
 private Joiner(Index fromIndex, IndexCursor toCursor)
 {
     _fromIndex   = fromIndex;
     _fromCols    = _fromIndex.GetColumns();
     _entryValues = new object[_fromCols.Count];
     _toCursor    = toCursor;
 }
Example #2
0
 public _Iterable_268(IndexCursor _enclosing, ICollection <string> columnNames, object
                      [] entryValues)
 {
     this._enclosing  = _enclosing;
     this.columnNames = columnNames;
     this.entryValues = entryValues;
 }
Example #3
0
        /// <summary>
        /// Creates a new Joiner based on the given index which backs a foreign-key
        /// relationship.
        /// </summary>
        /// <remarks>
        /// Creates a new Joiner based on the given index which backs a foreign-key
        /// relationship.  The table of the given index will be the "from" table and
        /// the table on the other end of the relationship will be the "to" table.
        /// </remarks>
        /// <param name="fromIndex">the index backing one side of a foreign-key relationship</param>
        /// <exception cref="System.IO.IOException"></exception>
        public static HealthMarketScience.Jackcess.Joiner Create(Index fromIndex)
        {
            Index       toIndex  = fromIndex.GetReferencedIndex();
            IndexCursor toCursor = IndexCursor.CreateCursor(toIndex.GetTable(), toIndex);

            // text lookups are always case-insensitive
            toCursor.SetColumnMatcher(CaseInsensitiveColumnMatcher.INSTANCE);
            return(new HealthMarketScience.Jackcess.Joiner(fromIndex, toCursor));
        }
Example #4
0
 internal RowEntryIterator(IndexCursor _enclosing, ICollection <string> columnNames,
                           object[] rowValues) : base(_enclosing, columnNames)
 {
     this._enclosing = _enclosing;
     this._rowValues = rowValues;
     try
     {
         this._hasNext  = this._enclosing.FindRowByEntryImpl(rowValues, true);
         this._validRow = this._hasNext.Value;
     }
     catch (IOException e)
     {
         throw new InvalidOperationException(e.ToString());
     }
 }
Example #5
0
 internal ReverseIndexDirHandler(IndexCursor _enclosing) : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }
Example #6
0
 internal ForwardIndexDirHandler(IndexCursor _enclosing) : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }