com.esri.arcgis.geodatabase
Interface IScratchWorkspaceFactory2

All Superinterfaces:
IScratchWorkspaceFactory, Serializable
All Known Implementing Classes:
FileGDBScratchWorkspaceFactory, IScratchWorkspaceFactory2Proxy, ScratchWorkspaceFactory

public interface IScratchWorkspaceFactory2
extends IScratchWorkspaceFactory, Serializable

Provides access to members to get the current scratch workspace.

Description

IScratchWorkspaceFactory is used to create temporary personal geodatabases in the current user's temporary directory.

The first time IScratchWorkspaceFactory.DefaultScratchWorkspace is called, it will create a new temporary workspace and pass it back. Subsequent calls to this method will return the same workspace. When the application is closed, the default scratch workspace will be deleted.

Workspaces created by IScratchWorkspaceFactory.CreateNewScratchWorkspace will be automatically deleted when the last reference to them is released.

IScratchWorkspaceFactory.CurrentScratchWorkspace will return a null value if the default scratch workspace has not been created yet, otherwise it will return the default scratch workspace.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IWorkspace getCurrentScratchWorkspace()
          The current scratch workspace.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IScratchWorkspaceFactory
createNewScratchWorkspace, getDefaultScratchWorkspace
 

Method Detail

getCurrentScratchWorkspace

IWorkspace getCurrentScratchWorkspace()
                                      throws IOException,
                                             AutomationException
The current scratch workspace.

Remarks

IScratchWorkspaceFactory.CurrentScratchWorkspace will return a null value if the default scratch workspace has not been created yet, otherwise it will return the default scratch workspace.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspace
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.