|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesGDB.ScratchWorkspaceFactory
public class ScratchWorkspaceFactory
Scratch workspace factory object (singleton).
Constructor Summary | |
---|---|
ScratchWorkspaceFactory()
Constructs a ScratchWorkspaceFactory using ArcGIS Engine. |
|
ScratchWorkspaceFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ScratchWorkspaceFactory theScratchWorkspaceFactory = (ScratchWorkspaceFactory) obj; |
Method Summary | |
---|---|
IWorkspace |
createNewScratchWorkspace()
Creates and returns a new scratch workspace. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IWorkspace |
getCurrentScratchWorkspace()
The current scratch workspace. |
IWorkspace |
getDefaultScratchWorkspace()
The default scratch workspace. |
int |
hashCode()
the hashcode for this object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ScratchWorkspaceFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ScratchWorkspaceFactory(Object obj) throws IOException
ScratchWorkspaceFactory theScratchWorkspaceFactory = (ScratchWorkspaceFactory) obj;
obj
to ScratchWorkspaceFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IWorkspace getDefaultScratchWorkspace() throws IOException, AutomationException
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.
getDefaultScratchWorkspace
in interface IScratchWorkspaceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace createNewScratchWorkspace() throws IOException, AutomationException
IScratchWorkspaceFactory is used to create temporary personal geodatabases in the current user's temporary directory.
Workspaces created by IScratchWorkspaceFactory.CreateNewScratchWorkspace will be automatically deleted when the last reference to them is released.
createNewScratchWorkspace
in interface IScratchWorkspaceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getCurrentScratchWorkspace() throws IOException, AutomationException
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.
getCurrentScratchWorkspace
in interface IScratchWorkspaceFactory2
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 |