OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.TCacheableTablesLoader Class Reference

The TCacheableTablesLoader class is designed to get base.by a Class that will be a Cache Manager (who is responsible for the actual loading and saving of the DataTables). It contains only a helper function that is used by every Cache Manager. More...

Inheritance diagram for Ict.Petra.Shared.TCacheableTablesLoader:
Ict.Petra.Server.MCommon.Cacheable.TCacheable Ict.Petra.Server.MConference.Cacheable.TCacheable Ict.Petra.Server.MFinance.Cacheable.TCacheable Ict.Petra.Server.MPartner.Mailing.Cacheable.TPartnerCacheable Ict.Petra.Server.MPartner.Partner.Cacheable.TPartnerCacheable Ict.Petra.Server.MPartner.Subscriptions.Cacheable.TPartnerCacheable Ict.Petra.Server.MPersonnel.Person.Cacheable.TPersonnelCacheable Ict.Petra.Server.MPersonnel.Unit.Cacheable.TPersonnelCacheable Ict.Petra.Server.MSysMan.Cacheable.TCacheable

Public Member Functions

DataTable ResultingCachedDataTable (String ATableName, String AHashCode, out System.Type AType)
 Returns a DataTable from the Cache if the HashCode of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise it returns nil. More...
 
DataTable ResultingCachedDataTable (String ATableName, String AHashCode, DataView ACacheableTableDV, out System.Type AType)
 Returns a DataTable from the Cache if the HashCode of the DataView of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise it returns nil. More...
 

Protected Attributes

TCacheableTablesManager FCacheableTablesManager
 Holds reference to an instance of TCacheableTablesManager More...
 

Properties

TCacheableTablesManager CacheableTablesManager [get, set]
 Used for passing in an instance of TCacheableTablesManager More...
 

Detailed Description

The TCacheableTablesLoader class is designed to get base.by a Class that will be a Cache Manager (who is responsible for the actual loading and saving of the DataTables). It contains only a helper function that is used by every Cache Manager.

Member Function Documentation

◆ ResultingCachedDataTable() [1/2]

DataTable Ict.Petra.Shared.TCacheableTablesLoader.ResultingCachedDataTable ( String  ATableName,
String  AHashCode,
DataView  ACacheableTableDV,
out System.Type  AType 
)
inline

Returns a DataTable from the Cache if the HashCode of the DataView of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise it returns nil.

Parameters
ATableNameName of the DataTable
AHashCodeHashCode that should be compared against the HashCode of the DataView of the DataTable in the Cache
ACacheableTableDVDataView for which HashCode and TableSize should be calculated
ATypeType of the DataTable in the Cache. This is only useful for Typed DataTables
Returns
DataTable from the Cache if the HHashCode of the DataView of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise nil

◆ ResultingCachedDataTable() [2/2]

DataTable Ict.Petra.Shared.TCacheableTablesLoader.ResultingCachedDataTable ( String  ATableName,
String  AHashCode,
out System.Type  AType 
)
inline

Returns a DataTable from the Cache if the HashCode of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise it returns nil.

Parameters
ATableNameName of the DataTable
AHashCodeHashCode that should be compared against the HashCode of the DataTable in the Cache
ATypeType of the DataTable in the Cache. This is only useful for Typed DataTables
Returns
DataTable from the Cache if the HashCode of the DataTable in the Cache doesn't fit the HashCode that is passed in, otherwise nil

Member Data Documentation

◆ FCacheableTablesManager

TCacheableTablesManager Ict.Petra.Shared.TCacheableTablesLoader.FCacheableTablesManager
protected

Holds reference to an instance of TCacheableTablesManager

Property Documentation

◆ CacheableTablesManager

TCacheableTablesManager Ict.Petra.Shared.TCacheableTablesLoader.CacheableTablesManager
getset

Used for passing in an instance of TCacheableTablesManager


The documentation for this class was generated from the following file: