public class SqlWorkspaceFactory extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IWorkspaceFactory, IWorkspaceFactory2, IRemoteDatabaseWorkspaceFactory, ISupportErrorInfo, ISqlDefaultConnectionInfo
Description 'Sql workspace factory' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IIDd29cd15f_3014_11d4_8141_00c04f686238, xxDummy
IIDf173fc16_d63a_11d1_aa81_00c04fa33a15
IID, IIDab4a2d7a_055b_11d2_aa97_00c04fa33a15, xxDummy
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
IID, IID177a8e41_d923_4996_99fe_d87d7e1833cd, xxDummy
Constructor and Description |
---|
SqlWorkspaceFactory()
Constructs a SqlWorkspaceFactory using ArcGIS Engine.
|
SqlWorkspaceFactory(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
SqlWorkspaceFactory theSqlWorkspaceFactory = (SqlWorkspaceFactory) obj; |
Modifier and Type | Method and Description |
---|---|
void |
clearParameters(java.lang.String dbclient,
java.lang.String instance,
java.lang.String authenticationMode)
Clears connection property parameters.
|
boolean |
containsWorkspace(java.lang.String parentDirectory,
IFileNames fileNames)
Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace.
|
boolean |
copy(IWorkspaceName workspaceName,
java.lang.String destinationFolder,
IWorkspaceName[] workspaceNameCopy)
Copies a workspace to the specified destination folder.
|
IWorkspaceName |
create(java.lang.String parentDirectory,
java.lang.String name,
IPropertySet connectionProperties,
int hWnd)
Creates a new workspace specified by the directory, file name, and connection properties.
|
void |
deleteConnectionFile(java.lang.String pathName)
Deletes the remote database workspace connection file.
|
IWorkspaceName |
editConnectionFile(java.lang.String pathName,
int hWnd)
Edits the properties of a remote database workspace connection file.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IUID |
getClassID()
The class ID of the WorkspaceFactory.
|
static java.lang.String |
getClsid()
getClsid.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
java.lang.String |
getWorkspaceDescription(boolean plural)
A singular or plural description of the type of workspace the workspace factory opens/creates.
|
IWorkspaceName |
getWorkspaceName(java.lang.String parentDirectory,
IFileNames fileNames)
Retrieves the workspace name of a workspace from the given list of file names.
|
int |
getWorkspaceType()
The type of workspace the workspace factory opens/creates.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
boolean |
isWorkspace(java.lang.String fileName)
True if the specified file identifies a workspace supported by the workspace factory.
|
boolean |
move(IWorkspaceName workspaceName,
java.lang.String destinationFolder)
Moves a workspace to the specified destination folder.
|
IWorkspace |
open(IPropertySet connectionProperties,
int hWnd)
Opens the workspace specified by the connection properties.
|
IWorkspace |
openFromFile(java.lang.String fileName,
int hWnd)
Opens the workspace specified by the given file name.
|
IWorkspace |
openFromString(java.lang.String connectStr,
int hWnd)
Opens the workspace specified by a connection string.
|
IPropertySet |
readConnectionPropertiesFromFile(java.lang.String fileName)
The connection properties from the specified file.
|
void |
release()
Release this COM object reference
|
IWorkspaceName |
renameConnectionFile(java.lang.String oldPathName,
java.lang.String newName)
Renames the remote database workspace connection file.
|
void |
setParameters(java.lang.String dbclient,
java.lang.String instance,
java.lang.String authenticationMode,
java.lang.String user,
java.lang.String password)
Sets connection property parameters.
|
public SqlWorkspaceFactory() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic SqlWorkspaceFactory(java.lang.Object obj) throws java.io.IOException
SqlWorkspaceFactory theSqlWorkspaceFactory = (SqlWorkspaceFactory) obj;
obj
to SqlWorkspaceFactory
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public IWorkspace open(IPropertySet connectionProperties, int hWnd) throws java.io.IOException, AutomationException
open
in interface IWorkspaceFactory
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openFromFile(java.lang.String fileName, int hWnd) throws java.io.IOException, AutomationException
openFromFile
in interface IWorkspaceFactory
fileName
- The fileName (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName create(java.lang.String parentDirectory, java.lang.String name, IPropertySet connectionProperties, int hWnd) throws java.io.IOException, AutomationException
create
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)name
- The name (in)connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean containsWorkspace(java.lang.String parentDirectory, IFileNames fileNames) throws java.io.IOException, AutomationException
containsWorkspace
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)fileNames
- A reference to a com.esri.arcgis.system.IFileNames (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName getWorkspaceName(java.lang.String parentDirectory, IFileNames fileNames) throws java.io.IOException, AutomationException
getWorkspaceName
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)fileNames
- A reference to a com.esri.arcgis.system.IFileNames (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IUID getClassID() throws java.io.IOException, AutomationException
getClassID
in interface IWorkspaceFactory
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isWorkspace(java.lang.String fileName) throws java.io.IOException, AutomationException
isWorkspace
in interface IWorkspaceFactory
fileName
- The fileName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IPropertySet readConnectionPropertiesFromFile(java.lang.String fileName) throws java.io.IOException, AutomationException
readConnectionPropertiesFromFile
in interface IWorkspaceFactory
fileName
- The fileName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceDescription(boolean plural) throws java.io.IOException, AutomationException
getWorkspaceDescription
in interface IWorkspaceFactory
plural
- The plural (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getWorkspaceType() throws java.io.IOException, AutomationException
getWorkspaceType
in interface IWorkspaceFactory
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean copy(IWorkspaceName workspaceName, java.lang.String destinationFolder, IWorkspaceName[] workspaceNameCopy) throws java.io.IOException, AutomationException
copy
in interface IWorkspaceFactory
workspaceName
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder
- The destinationFolder (in)workspaceNameCopy
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean move(IWorkspaceName workspaceName, java.lang.String destinationFolder) throws java.io.IOException, AutomationException
move
in interface IWorkspaceFactory
workspaceName
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder
- The destinationFolder (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openFromString(java.lang.String connectStr, int hWnd) throws java.io.IOException, AutomationException
openFromString
in interface IWorkspaceFactory2
connectStr
- The connectStr (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void deleteConnectionFile(java.lang.String pathName) throws java.io.IOException, AutomationException
deleteConnectionFile
in interface IRemoteDatabaseWorkspaceFactory
pathName
- The pathName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName renameConnectionFile(java.lang.String oldPathName, java.lang.String newName) throws java.io.IOException, AutomationException
renameConnectionFile
in interface IRemoteDatabaseWorkspaceFactory
oldPathName
- The oldPathName (in)newName
- The newName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName editConnectionFile(java.lang.String pathName, int hWnd) throws java.io.IOException, AutomationException
editConnectionFile
in interface IRemoteDatabaseWorkspaceFactory
pathName
- The pathName (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setParameters(java.lang.String dbclient, java.lang.String instance, java.lang.String authenticationMode, java.lang.String user, java.lang.String password) throws java.io.IOException, AutomationException
setParameters
in interface ISqlDefaultConnectionInfo
dbclient
- The dbclient (in)instance
- The instance (in)authenticationMode
- The authenticationMode (in)user
- The user (in)password
- The password (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void clearParameters(java.lang.String dbclient, java.lang.String instance, java.lang.String authenticationMode) throws java.io.IOException, AutomationException
clearParameters
in interface ISqlDefaultConnectionInfo
dbclient
- The dbclient (in)instance
- The instance (in)authenticationMode
- The authenticationMode (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.