///// <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); }
public static DataTable GetBySite(int siteId) { return(DBIndexingQueue.GetBySite(siteId)); }
/// <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)); }
public static DataTable GetSiteIDs() { return(DBIndexingQueue.GetSiteIDs()); }
/// <summary> /// Gets an DataTable with distinct paths. /// </summary> public static DataTable GetIndexPaths() { return(DBIndexingQueue.GetIndexPaths()); }
public static bool DeleteAll() { return(DBIndexingQueue.DeleteAll()); }
/// <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)); }
/// <summary> /// Gets a count of rows in the mp_IndexingQueue table. /// </summary> public static int GetCount() { return(DBIndexingQueue.GetCount()); }