com.esri.arcgis.geodatabase
Class IScratchWorkspaceFactory2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IScratchWorkspaceFactoryProxy
          extended by com.esri.arcgis.geodatabase.IScratchWorkspaceFactory2Proxy
All Implemented Interfaces:
IScratchWorkspaceFactory, IScratchWorkspaceFactory2, Externalizable, Serializable

public class IScratchWorkspaceFactory2Proxy
extends IScratchWorkspaceFactoryProxy
implements IScratchWorkspaceFactory2, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IScratchWorkspaceFactory2Proxy()
           
  IScratchWorkspaceFactory2Proxy(Object obj)
           
protected IScratchWorkspaceFactory2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IWorkspace getCurrentScratchWorkspace()
          The current scratch workspace.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.IScratchWorkspaceFactoryProxy
createNewScratchWorkspace, getDefaultScratchWorkspace
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.geodatabase.IScratchWorkspaceFactory
createNewScratchWorkspace, getDefaultScratchWorkspace
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IScratchWorkspaceFactory2Proxy

public IScratchWorkspaceFactory2Proxy()

IScratchWorkspaceFactory2Proxy

public IScratchWorkspaceFactory2Proxy(Object obj)
                               throws IOException
Throws:
IOException

IScratchWorkspaceFactory2Proxy

protected IScratchWorkspaceFactory2Proxy(Object obj,
                                         String iid)
                                  throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class IScratchWorkspaceFactoryProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IScratchWorkspaceFactoryProxy
Throws:
IOException

getCurrentScratchWorkspace

public 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

Specified by:
getCurrentScratchWorkspace in interface IScratchWorkspaceFactory2
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.