Пример #1
0
 /// <summary>
 /// retrieve cacheable SysMan table
 /// </summary>
 /// <param name="ACacheableTable">enum that defines SysMan table to be returned</param>
 /// <returns></returns>
 public static DataTable GetCacheableSysManTable(TCacheableSysManTablesEnum ACacheableTable)
 {
     if (FDelegateGetCacheableSysManTable != null)
     {
         return(FDelegateGetCacheableSysManTable(ACacheableTable));
     }
     else
     {
         throw new InvalidOperationException("Delegate 'TGetCacheableSysManTable' must be initialised before calling this Method");
     }
 }
Пример #2
0
 /// <summary>
 /// retrieve cacheable SysMan table
 /// </summary>
 /// <param name="ACacheableTable">enum that defines SysMan table to be returned</param>
 /// <returns></returns>
 public static DataTable GetCacheableSysManTable(TCacheableSysManTablesEnum ACacheableTable)
 {
     if (FDelegateGetCacheableSysManTable != null)
     {
         return FDelegateGetCacheableSysManTable(ACacheableTable);
     }
     else
     {
         throw new InvalidOperationException("Delegate 'TGetCacheableSysManTable' must be initialised before calling this Method");
     }
 }
Пример #3
0
 /// <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(TCacheableSysManTablesEnum ACacheableTable)
 {
     System.Type TmpType;
     return GetCacheableTable(ACacheableTable, "", false, out TmpType);
 }
Пример #4
0
 /// <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(TCacheableSysManTablesEnum ACacheableTable)
 {
     System.Type TmpType;
     return(GetCacheableTable(ACacheableTable, "", false, out TmpType));
 }
Пример #5
0
            /**
             * 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 RefreshCacheableSysManTable(TCacheableSysManTablesEnum ACacheableTable)
            {
                DataTable TmpDT;

                // Refresh the Cacheable DataTable on the Serverside and return it
                TmpDT = TRemote.MSysMan.Cacheable.WebConnectors.RefreshCacheableTableAndGet(ACacheableTable);
                UCacheableTablesManager.AddOrRefreshCachedTable(TmpDT, -1);

                // Update the cached DataTable file
                TDataCache.SaveCacheableDataTableToFile(TmpDT);
            }
Пример #6
0
 /**
  * Returns the chosen DataTable for the Petra SysMan Module
  *
  * 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 GetCacheableSysManTable2(TCacheableSysManTablesEnum ACacheableTable, string ACustomTableName)
 {
     return TDataCache.GetCacheableDataTableFromCache2(ACacheableTable.ToString(), ACustomTableName);
 }
Пример #7
0
 /**
  * Returns the chosen DataTable for the Petra SysMan Module
  *
  * 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 GetCacheableSysManTable(TCacheableSysManTablesEnum ACacheableTable)
 {
     return GetCacheableSysManTable2(ACacheableTable, String.Empty);
 }