|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IScratchWorkspaceFactory2
Provides access to members to get the current scratch workspace.
IScratchWorkspaceFactory is used to create temporary personal geodatabases in the temp directory. You can find this directory by looking at the %TEMP% environment variable. The scratch personal geodatabase will have the name mx<number>.mdb where <number> is the lowest positive number that uniquely identifies the geodatabase.
ScratchWorkspaces are most commonly used for passing in to ITable.Select or IFeatureClass.Select, but can be used anytime a personal geodatabase is required and you want it to automatically be deleted when it's no longer referenced.
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 NULL if the default scratch workspace has not been created yet. Otherwise it will return the default scratch workspace.
| Method Summary | |
|---|---|
IWorkspace |
getCurrentScratchWorkspace()
The current scratch workspace. |
| Methods inherited from interface com.esri.arcgis.geodatabase.IScratchWorkspaceFactory |
|---|
createNewScratchWorkspace, getDefaultScratchWorkspace |
| Method Detail |
|---|
IWorkspace getCurrentScratchWorkspace()
throws IOException,
AutomationException
IScratchWorkspaceFactory.CurrentScratchWorkspace will return NULL if the default scratch workspace has not been created yet. Otherwise it will return the default scratch workspace.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||