|
| TCacheable () |
| constructor More...
|
|
DataTable | GetCacheableTable (TCacheableConferenceTablesEnum ACacheableTable, String AHashCode, Boolean ARefreshFromDB, out System.Type AType, TDataBase ADataBase=null) |
| Returns a certain cachable DataTable that contains all columns and all rows of a specified table. More...
|
|
TSubmitChangesResult | SaveChangedStandardCacheableTable (TCacheableConferenceTablesEnum ACacheableTable, ref TTypedDataTable ASubmitTable, out TVerificationResultCollection AVerificationResult, TDataBase ADataBase=null) |
| Saves a specific Cachable DataTable. The whole DataTable needs to be submitted, not just changes to it! More...
|
|
DataTable | GetCacheableTable (TCacheableConferenceTablesEnum ACacheableTable) |
| Returns a certain cachable DataTable that contains all columns and all rows of a specified table. More...
|
|
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...
|
|
Returns cacheable DataTables for DB tables in the MConference sub-namespace that can be cached on the Client side.
Returns cacheable DataTables for DB tables in the MConference sub-namespace that can be cached on the Client side.
Examples of such tables are tables that form entries of ComboBoxes or Lists and which would be retrieved numerous times from the Server as UI windows are opened.
DataTable Ict.Petra.Server.MConference.Cacheable.TCacheable.GetCacheableTable |
( |
TCacheableConferenceTablesEnum |
ACacheableTable, |
|
|
String |
AHashCode, |
|
|
Boolean |
ARefreshFromDB, |
|
|
out System.Type |
AType, |
|
|
TDataBase |
ADataBase = null |
|
) |
| |
|
inline |
Returns a certain cachable DataTable that contains all columns and all rows of a specified table.
@comment Uses Ict.Petra.Shared.CacheableTablesManager to store the DataTable once its contents got retrieved from the DB. It returns the cached DataTable from it on subsequent calls, therefore making more no further DB queries!
@comment All DataTables are retrieved as Typed DataTables, but are passed out as a normal DataTable. However, this DataTable can be cast by the caller to the appropriate TypedDataTable to have access to the features of a Typed DataTable!
- Parameters
-
ACacheableTable | Tells what cacheable DataTable should be returned. |
AHashCode | Hash of the cacheable DataTable that the caller has. '' can be specified to always get a DataTable back (see |
)
- Parameters
-
ARefreshFromDB | Set to true to reload the cached DataTable from the DB and through that refresh the Table in the Cache with what is now in the DB (this would be done when it is known that the DB Table has changed). The CacheableTablesManager will notify other Clients that they need to retrieve this Cacheable DataTable anew from the PetraServer the next time the Client accesses the Cacheable DataTable. Otherwise set to false. |
AType | The Type of the DataTable (useful in case it's a Typed DataTable) |
ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then a separate DB Connection will be established automatically and get closed automatically after it got used. |
- Returns
- DataTable If the Hash that got passed in AHashCode doesn't fit the Hash that the CacheableTablesManager has for this cacheable DataTable, the specified DataTable is returned, otherwise nil.