コード例 #1
0
ファイル: Joiner.cs プロジェクト: seud0nym/jackcess-net
 private Joiner(Index fromIndex, IndexCursor toCursor)
 {
     _fromIndex   = fromIndex;
     _fromCols    = _fromIndex.GetColumns();
     _entryValues = new object[_fromCols.Count];
     _toCursor    = toCursor;
 }
コード例 #2
0
ファイル: IndexCursor.cs プロジェクト: seud0nym/jackcess-net
 public _Iterable_268(IndexCursor _enclosing, ICollection <string> columnNames, object
                      [] entryValues)
 {
     this._enclosing  = _enclosing;
     this.columnNames = columnNames;
     this.entryValues = entryValues;
 }
コード例 #3
0
ファイル: Joiner.cs プロジェクト: seud0nym/jackcess-net
        /// <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));
        }
コード例 #4
0
ファイル: IndexCursor.cs プロジェクト: seud0nym/jackcess-net
 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());
     }
 }
コード例 #5
0
ファイル: IndexCursor.cs プロジェクト: seud0nym/jackcess-net
 internal ReverseIndexDirHandler(IndexCursor _enclosing) : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }
コード例 #6
0
ファイル: IndexCursor.cs プロジェクト: seud0nym/jackcess-net
 internal ForwardIndexDirHandler(IndexCursor _enclosing) : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }