/// <summary> /// retrieve cacheable personnel table /// </summary> /// <param name="ACacheableTable">enum that defines personnel table to be returned</param> /// <returns></returns> public static DataTable GetCacheablePersonnelTable(TCacheablePersonTablesEnum ACacheableTable) { if (FDelegateGetCacheablePersonnelTable != null) { return(FDelegateGetCacheablePersonnelTable(ACacheableTable)); } else { throw new InvalidOperationException("Delegate 'TGetCacheablePersonnelTable' must be initialised before calling this Method"); } }
/// <summary> /// retrieve cacheable personnel table /// </summary> /// <param name="ACacheableTable">enum that defines personnel table to be returned</param> /// <returns></returns> public static DataTable GetCacheablePersonnelTable(TCacheablePersonTablesEnum ACacheableTable) { if (FDelegateGetCacheablePersonnelTable != null) { return FDelegateGetCacheablePersonnelTable(ACacheableTable); } else { throw new InvalidOperationException("Delegate 'TGetCacheablePersonnelTable' must be initialised before calling this Method"); } }
/// <summary> /// Returns a certain cachable DataTable that contains all columns and all /// rows of a specified table. /// /// @comment Wrapper for other GetCacheableTable method /// </summary> /// /// <param name="ACacheableTable">Tells what cacheable DataTable should be returned.</param> /// <returns>DataTable</returns> public DataTable GetCacheableTable(TCacheablePersonTablesEnum ACacheableTable) { System.Type TmpType; return(GetCacheableTable(ACacheableTable, "", false, out TmpType)); }
/// <summary> /// Returns a certain cachable DataTable that contains all columns and all /// rows of a specified table. /// /// @comment Wrapper for other GetCacheableTable method /// </summary> /// /// <param name="ACacheableTable">Tells what cacheable DataTable should be returned.</param> /// <returns>DataTable</returns> public DataTable GetCacheableTable(TCacheablePersonTablesEnum ACacheableTable) { System.Type TmpType; return GetCacheableTable(ACacheableTable, "", false, out TmpType); }
/** * Tells the PetraServer to reload the cacheable DataTable from the DB, * refreshes the DataTable in the client-side Cache and saves it to a file. * * @param ACacheableTable The cached DataTable that should be reloaded from DB. * */ public static void RefreshCacheablePersonnelTable(TCacheablePersonTablesEnum ACacheableTable) { // TODO // DataTable TmpDT; // Refresh the Cacheable DataTable on the Serverside and return it // TRemote.MPartner.Partner.Cacheable.RefreshCacheableTable(ACacheableTable, out TmpDT); // UCacheableTablesManager.AddOrRefreshCachedTable(TmpDT, -1); // Cache_Lookup.TMPartner.RefreshCacheablePartnerTable(ACacheableTable); // // // Update the cached DataTable file // TDataCache.SaveCacheableDataTableToFile(TmpDT); }
/** * Returns the chosen DataTable for the Petra Partner Module, Partner Sub-Module * from the * * If the DataTable is not available on the Client side, it is automatically * retrieved from the Petra Server. * * @param ACacheableTable The cached DataTable that should be returned in the * DataSet * @return Chosen DataTable * */ public static DataTable GetCacheablePersonnelTable2(TCacheablePersonTablesEnum ACacheableTable, string ACustomTableName) { //return TDataCache.GetCacheableDataTableFromCache(ACacheableTable.ToString()); return TDataCache.GetCacheableDataTableFromCache2(Enum.GetName(typeof(TCacheablePersonTablesEnum), ACacheableTable), ACustomTableName); }
/** * Returns the chosen DataTable for the Petra Partner Module, Partner Sub-Module * from the * * If the DataTable is not available on the Client side, it is automatically * retrieved from the Petra Server. * * @param ACacheableTable The cached DataTable that should be returned in the * DataSet * @return Chosen DataTable * */ public static DataTable GetCacheablePersonnelTable(TCacheablePersonTablesEnum ACacheableTable) { //return TDataCache.GetCacheableDataTableFromCache(ACacheableTable.ToString()); return GetCacheablePersonnelTable2(ACacheableTable, String.Empty); }