コード例 #1
0
ファイル: Cache.cs プロジェクト: weiplanet/openpetra
 /// <summary>
 /// retrieve cacheable Conference table
 /// </summary>
 /// <param name="ACacheableTable">enum that defines Conference table to be returned</param>
 /// <returns></returns>
 public static DataTable GetCacheableConferenceTable(TCacheableConferenceTablesEnum ACacheableTable)
 {
     if (FDelegateGetCacheableConferenceTable != null)
     {
         return(FDelegateGetCacheableConferenceTable(ACacheableTable));
     }
     else
     {
         throw new InvalidOperationException("Delegate 'TGetCacheableConferenceTable' must be initialised before calling this Method");
     }
 }
コード例 #2
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(TCacheableConferenceTablesEnum ACacheableTable)
 {
     System.Type TmpType;
     return GetCacheableTable(ACacheableTable, "", false, out TmpType);
 }
コード例 #3
0
ファイル: Cache.cs プロジェクト: js1987/openpetragit
 /// <summary>
 /// retrieve cacheable Conference table
 /// </summary>
 /// <param name="ACacheableTable">enum that defines Conference table to be returned</param>
 /// <returns></returns>
 public static DataTable GetCacheableConferenceTable(TCacheableConferenceTablesEnum ACacheableTable)
 {
     if (FDelegateGetCacheableConferenceTable != null)
     {
         return FDelegateGetCacheableConferenceTable(ACacheableTable);
     }
     else
     {
         throw new InvalidOperationException("Delegate 'TGetCacheableConferenceTable' must be initialised before calling this Method");
     }
 }
コード例 #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(TCacheableConferenceTablesEnum ACacheableTable)
 {
     System.Type TmpType;
     return(GetCacheableTable(ACacheableTable, "", false, out TmpType));
 }
コード例 #5
0
ファイル: Cache.cs プロジェクト: Davincier/openpetra
 /**
  * Returns the chosen DataTable for the Conference Namespace from the Cache.
  *
  * 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 GetCacheableConferenceTable2(TCacheableConferenceTablesEnum ACacheableTable, string ACustomTableName)
 {
     return TDataCache.GetCacheableDataTableFromCache2(ACacheableTable.ToString(), ACustomTableName);
 }
コード例 #6
0
ファイル: Cache.cs プロジェクト: Davincier/openpetra
 /**
  * Returns the chosen DataTable for the Conference Namespace from the Cache.
  *
  * 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 GetCacheableConferenceTable(TCacheableConferenceTablesEnum ACacheableTable)
 {
     return GetCacheableConferenceTable2(ACacheableTable, String.Empty);
 }