Show / Hide Table of Contents

Class MDOPreferenceCache

Cache for the special preferences used to control MDO lists; to improve performance vs. getting those preferences every time they are needed

Inheritance
Object
CacheBase
MDOPreferenceCache
Implements
IDisposable
IFlushable
Inherited Members
CacheBase._lastUpdated
CacheBase._cacheState
CacheBase.IsCacheInvalidated(Int32, SqlType, Int32)
CacheBase.Dispose()
CacheBase.Validate()
CacheBase.Refresh()
CacheBase.Flush()
CacheBase.OnExpired()
CacheBase.OnRefreshed()
CacheBase.OnFlushed()
CacheBase.OnDisposed()
CacheBase.Lock
CacheBase.Name
CacheBase.CacheType
CacheBase.Timeout
CacheBase.State
CacheBase.IsValid
CacheBase.Expired
CacheBase.Refreshed
CacheBase.Flushed
CacheBase.Disposed
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
public class MDOPreferenceCache : CacheBase, IDisposable, IFlushable

Fields

DefaultGroupingLowerLimit

Default value for grouping list lower limit (number before list becomes flattened) in the absence of preferences

Declaration
public const int DefaultGroupingLowerLimit = 7
Field Value
Type Description
Int32

DefaultIsGroupingAllowed

Default value for grouping in the absence of preferences

Declaration
public const bool DefaultIsGroupingAllowed = false
Field Value
Type Description
Boolean

Methods

GetCachedTableNumbers()

Interface: Return tables where changes lead to our invalidation

Declaration
public override int[] GetCachedTableNumbers()
Returns
Type Description
Int32[]
Overrides
CacheBase.GetCachedTableNumbers()

GetCurrent()

Get the current cache instance via the generic lookup

Declaration
public static MDOPreferenceCache GetCurrent()
Returns
Type Description
MDOPreferenceCache

GetGroupingLowerLimit(String)

Get the lower limit before grouped lists collapse to flattened (though after filtering)

Declaration
public int GetGroupingLowerLimit(string listName)
Parameters
Type Name Description
String listName

Name of list, case insnesitive

Returns
Type Description
Int32

Lower limit

GetPreferredSortOrder(String)

Get the preferred sort order. While the interface suggests this can be per list, the current functionality is to have this is a global preference

Declaration
public MDOSortOrder GetPreferredSortOrder(string listName)
Parameters
Type Name Description
String listName

Name of list, case insensitive

Returns
Type Description
MDOSortOrder

Preferred sort order

GetShowAssociatesInPrimaryGroupOnly()

Declaration
public bool GetShowAssociatesInPrimaryGroupOnly()
Returns
Type Description
Boolean

IsGroupingAllowed(String)

Get whether grouping is turned on for a specific list

Declaration
public bool IsGroupingAllowed(string listName)
Parameters
Type Name Description
String listName

Name of list, case insensitive

Returns
Type Description
Boolean

True if list is grouped

OnFlush()

Interface: Flush and reset

Declaration
protected override void OnFlush()
Overrides
CacheBase.OnFlush()

OnRefresh()

Interface: Build the case. An EnterWriteContext is already in effect around this call

Declaration
protected override void OnRefresh()
Overrides
CacheBase.OnRefresh()

Implements

System.IDisposable
IFlushable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top