Interface IWorkspaceFactorySchemaCache

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Manages Geodatabase workspace schema caches.

[Guid("968AB1EA-7C1F-4AA1-9055-CA98CB622278")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IWorkspaceFactorySchemaCache

Remarks

It is most common to use the schema cache when the geodatabase schema is in heavy use. In ArcGIS this is most common when opening a large number of datasets. For instance internally, ArcGIS uses the schema cache when opening all the layers in a map document. The schema cache is most beneficial when working with large static data models where geodatabase objects like tables, fields, domains and relationships are well defined and do not change.
To get the greatest benefit from the schema cache the cache should be filled prior to opening any datasets. Once filled any calls to Open methods including IName.Open will be satisfied by the active schema cache and therefore optimized.

Methods

DisableAllSchemaCaches()

Disable the schema caches of all open workspaces.

void DisableAllSchemaCaches()

DisableSchemaCache(IWorkspace)

Disable the schema cache for a specific workspace.

void DisableSchemaCache(IWorkspace Workspace)

Parameters

Workspace IWorkspace

DisableSchemaCaching()

All new workspaces handed out by the factory will not have schema caching enabled.

void DisableSchemaCaching()

EnableAllSchemaCaches()

Enable the schema caches of all open workspaces.

void EnableAllSchemaCaches()

EnableSchemaCache(IWorkspace)

Enable the schema cache for a specific workspace.

void EnableSchemaCache(IWorkspace Workspace)

Parameters

Workspace IWorkspace

EnableSchemaCaching()

All new workspaces handed out by the factory will have schema caching enabled.

void EnableSchemaCaching()

IsAnySchemaCacheStale()

Checks all current schema caches for staleness.

bool IsAnySchemaCacheStale()

Returns

bool

IsSchemaCacheStale(IWorkspace)

Checks a specific schema cache for staleness.

bool IsSchemaCacheStale(IWorkspace Workspace)

Parameters

Workspace IWorkspace

Returns

bool

RefreshAllSchemaCaches()

Refreshes all current schema caches.

void RefreshAllSchemaCaches()

RefreshSchemaCache(IWorkspace)

Refreshes the schema cache for a specific workspace.

void RefreshSchemaCache(IWorkspace Workspace)

Parameters

Workspace IWorkspace