Пример #1
0
        ///// <summary>
        ///// Gets an instance of IndexingQueue.
        ///// </summary>
        ///// <param name="rowId"> rowId </param>
        //private void GetIndexingQueue(
        //    long rowId)
        //{
        //    IDataReader reader = DBIndexingQueue.GetOne(
        //        rowId);
        //    PopulateFromReader(reader);

        //}


        //private void PopulateFromReader(IDataReader reader)
        //{
        //    if (reader.Read())
        //    {
        //        this.rowId = Convert.ToInt64(reader["RowId"]);
        //        this.indexPath = reader["IndexPath"].ToString();
        //        this.serializedItem = reader["SerializedItem"].ToString();
        //        this.itemKey = reader["ItemKey"].ToString();
        //        this.removeOnly = Convert.ToBoolean(reader["RemoveOnly"]);

        //    }
        //    reader.Close();
        //}

        /// <summary>
        /// Persists a new instance of IndexingQueue. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            Int64 newID = 0;

            newID = DBIndexingQueue.Create(
                this.indexPath,
                this.serializedItem,
                this.itemKey,
                this.removeOnly);

            this.rowId = newID;

            return(newID > 0);
        }
Пример #2
0
 public static DataTable GetBySite(int siteId)
 {
     return(DBIndexingQueue.GetBySite(siteId));
 }
Пример #3
0
 /// <summary>
 /// Gets an DataTable with one row from the mp_IndexingQueue table with the passed path.
 /// </summary>
 /// <param name="indexPath"> indexPath </param>
 public static DataTable GetByPath(string indexPath)
 {
     return(DBIndexingQueue.GetByPath(indexPath));
 }
Пример #4
0
 public static DataTable GetSiteIDs()
 {
     return(DBIndexingQueue.GetSiteIDs());
 }
Пример #5
0
 /// <summary>
 /// Gets an DataTable with distinct paths.
 /// </summary>
 public static DataTable GetIndexPaths()
 {
     return(DBIndexingQueue.GetIndexPaths());
 }
Пример #6
0
 public static bool DeleteAll()
 {
     return(DBIndexingQueue.DeleteAll());
 }
Пример #7
0
 /// <summary>
 /// Deletes an instance of IndexingQueue. Returns true on success.
 /// </summary>
 /// <param name="rowId"> rowId </param>
 /// <returns>bool</returns>
 public static bool Delete(
     long rowId)
 {
     return(DBIndexingQueue.Delete(
                rowId));
 }
Пример #8
0
 /// <summary>
 /// Gets a count of rows in the mp_IndexingQueue table.
 /// </summary>
 public static int GetCount()
 {
     return(DBIndexingQueue.GetCount());
 }