com.esri.arcgis.geodatabase
Class IWorkspaceFactory2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IWorkspaceFactoryProxy
          extended by com.esri.arcgis.geodatabase.IWorkspaceFactory2Proxy
All Implemented Interfaces:
IWorkspaceFactory, IWorkspaceFactory2, Externalizable, Serializable

public class IWorkspaceFactory2Proxy
extends IWorkspaceFactoryProxy
implements IWorkspaceFactory2, Serializable

Provides access to members that create and open workspaces and supply workspace factory information.

Remarks

The IWorkspaceFactory2 interface was added to allow opening of a Workspace using a connection string which describes the connection properties for the workspace. You can get a workspace's connection string using the ConnectionString property on IWorkspaceName2.

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
  IWorkspaceFactory2Proxy()
           
  IWorkspaceFactory2Proxy(Object obj)
           
protected IWorkspaceFactory2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IWorkspace openFromString(String connectStr, int hWnd)
          Opens the workspace specified by a connection string.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.IWorkspaceFactoryProxy
containsWorkspace, copy, create, getClassID, getWorkspaceDescription, getWorkspaceName, getWorkspaceType, isWorkspace, move, open, openFromFile, readConnectionPropertiesFromFile
 
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.IWorkspaceFactory
containsWorkspace, copy, create, getClassID, getWorkspaceDescription, getWorkspaceName, getWorkspaceType, isWorkspace, move, open, openFromFile, readConnectionPropertiesFromFile
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IWorkspaceFactory2Proxy

public IWorkspaceFactory2Proxy()

IWorkspaceFactory2Proxy

public IWorkspaceFactory2Proxy(Object obj)
                        throws IOException
Throws:
IOException

IWorkspaceFactory2Proxy

protected IWorkspaceFactory2Proxy(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 IWorkspaceFactoryProxy
Throws:
IOException

removeListener

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

openFromString

public IWorkspace openFromString(String connectStr,
                                 int hWnd)
                          throws IOException,
                                 AutomationException
Opens the workspace specified by a connection string.

Remarks

The connect string is a collection of name value pairs separated by a semicolon (;).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
openFromString in interface IWorkspaceFactory2
Parameters:
connectStr - The connectStr (in)
hWnd - The hWnd (A COM typedef) (in)
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.