public class SdeWorkspaceFactory extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IWorkspaceFactory, IRemoteDatabaseWorkspaceFactory, IEnterpriseWorkspaceFactory, ISetDefaultConnectionInfo, IWorkspaceFactory2, ISupportErrorInfo, ISetDefaultConnectionInfo2, IWorkspaceFactorySchemaCache, IWorkspaceFactoryStatus, ISetDefaultConnectionInfo3
Description 'Esri SDE 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, IIDab4a2d7a_055b_11d2_aa97_00c04fa33a15, xxDummy
IID, IIDb871b848_7b8f_4aef_bd4d_ec3aefe76ebf, xxDummy
IID, IIDd29cd15f_3014_11d4_8141_00c04f686238, xxDummy
IIDf173fc16_d63a_11d1_aa81_00c04fa33a15
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
IID, IID968ab1ea_7c1f_4aa1_9055_ca98cb622278, xxDummy
IID, IID9b90c0b4_6848_4a17_a0a4_708ee05193d6, xxDummy
IID, IIDfc5b76d5_5ca4_4a0e_a998_fe383e73d6c0, xxDummy
IID518570d2_ef66_4b3b_b0bb_fcac077814df
IID094a1c7d_90ae_11d3_80ef_00c04f686238
Constructor and Description |
---|
SdeWorkspaceFactory()
Constructs a SdeWorkspaceFactory using ArcGIS Engine.
|
SdeWorkspaceFactory(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
SdeWorkspaceFactory theSdeWorkspaceFactory = (SdeWorkspaceFactory) obj; |
Modifier and Type | Method and Description |
---|---|
void |
clearParameters(java.lang.String server,
java.lang.String instance)
Clears ArcSDE connection property parameters.
|
void |
clearParameters3(java.lang.String server,
java.lang.String instance,
java.lang.String authenticationMode)
Clears ArcSDE 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.
|
void |
disableAllSchemaCaches()
Disable the schema caches of all open workspaces.
|
void |
disableSchemaCache(IWorkspace workspace)
Disable the schema cache for a specific workspace.
|
void |
disableSchemaCaching()
All new workspaces handed out by the factory will not have schema caching enabled.
|
IWorkspaceName |
editConnectionFile(java.lang.String pathName,
int hWnd)
Edits the properties of a remote database workspace connection file.
|
void |
enableAllSchemaCaches()
Enable the schema caches of all open workspaces.
|
void |
enableSchemaCache(IWorkspace workspace)
Enable the schema cache for a specific workspace.
|
void |
enableSchemaCaching()
All new workspaces handed out by the factory will have schema caching enabled.
|
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.
|
IEnumWorkspaceStatus |
getWorkspaceStatus()
Retrieve the workspace status information for all currently opened workspaces.
|
int |
getWorkspaceType()
The type of workspace the workspace factory opens/creates.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
boolean |
isAnySchemaCacheStale()
Checks all current schema caches for staleness.
|
boolean |
isSchemaCacheStale(IWorkspace workspace)
Checks a specific schema cache for staleness.
|
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 |
openAvailableWorkspace(IWorkspaceStatus wstatus)
Makes an attempt to open a new instance of a workspace that is esriWCSDown but has since become esriWCSAvailable.
|
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.
|
IWorkspace |
openWithNewLicense(IPropertySet connectionProperties,
int hWnd,
java.lang.String newLicensePath)
Open the enterprise database connection with new license file.
|
IWorkspace |
openWithNewPassword(IPropertySet connectionProperties,
int hWnd,
java.lang.String newPassword)
Opens the workspace specified by the connection properties.
|
IWorkspaceStatus |
pingWorkspaceStatus(IWorkspace workspace)
Checks if the status of an esriWCSDown workspace has changed.
|
IPropertySet |
readConnectionPropertiesFromFile(java.lang.String fileName)
The connection properties from the specified file.
|
void |
refreshAllSchemaCaches()
Refreshes all current schema caches.
|
void |
refreshSchemaCache(IWorkspace workspace)
Refreshes the schema cache for a specific workspace.
|
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 server,
java.lang.String instance,
java.lang.String user,
java.lang.String password,
java.lang.String versName)
Sets ArcSDE connection property parameters.
|
void |
setParameters3(java.lang.String server,
java.lang.String instance,
java.lang.String authenticationMode,
java.lang.String userName,
java.lang.String password,
java.lang.String versionName,
java.lang.Object historicalInfo)
Sets ArcSDE connection property parameters.
|
public SdeWorkspaceFactory() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic SdeWorkspaceFactory(java.lang.Object obj) throws java.io.IOException
SdeWorkspaceFactory theSdeWorkspaceFactory = (SdeWorkspaceFactory) obj;
obj
to SdeWorkspaceFactory
.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 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 IWorkspace openWithNewPassword(IPropertySet connectionProperties, int hWnd, java.lang.String newPassword) throws java.io.IOException, AutomationException
openWithNewPassword
in interface IEnterpriseWorkspaceFactory
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)newPassword
- The newPassword (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openWithNewLicense(IPropertySet connectionProperties, int hWnd, java.lang.String newLicensePath) throws java.io.IOException, AutomationException
openWithNewLicense
in interface IEnterpriseWorkspaceFactory
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)newLicensePath
- The newLicensePath (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setParameters(java.lang.String server, java.lang.String instance, java.lang.String user, java.lang.String password, java.lang.String versName) throws java.io.IOException, AutomationException
setParameters
in interface ISetDefaultConnectionInfo
server
- The server (in)instance
- The instance (in)user
- The user (in)password
- The password (in)versName
- The versName (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 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 clearParameters(java.lang.String server, java.lang.String instance) throws java.io.IOException, AutomationException
clearParameters
in interface ISetDefaultConnectionInfo2
server
- The server (in)instance
- The instance (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void enableSchemaCaching() throws java.io.IOException, AutomationException
enableSchemaCaching
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void disableSchemaCaching() throws java.io.IOException, AutomationException
disableSchemaCaching
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void enableSchemaCache(IWorkspace workspace) throws java.io.IOException, AutomationException
enableSchemaCache
in interface IWorkspaceFactorySchemaCache
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void enableAllSchemaCaches() throws java.io.IOException, AutomationException
enableAllSchemaCaches
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void disableSchemaCache(IWorkspace workspace) throws java.io.IOException, AutomationException
disableSchemaCache
in interface IWorkspaceFactorySchemaCache
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void disableAllSchemaCaches() throws java.io.IOException, AutomationException
disableAllSchemaCaches
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isSchemaCacheStale(IWorkspace workspace) throws java.io.IOException, AutomationException
isSchemaCacheStale
in interface IWorkspaceFactorySchemaCache
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isAnySchemaCacheStale() throws java.io.IOException, AutomationException
isAnySchemaCacheStale
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void refreshSchemaCache(IWorkspace workspace) throws java.io.IOException, AutomationException
refreshSchemaCache
in interface IWorkspaceFactorySchemaCache
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void refreshAllSchemaCaches() throws java.io.IOException, AutomationException
refreshAllSchemaCaches
in interface IWorkspaceFactorySchemaCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IEnumWorkspaceStatus getWorkspaceStatus() throws java.io.IOException, AutomationException
getWorkspaceStatus
in interface IWorkspaceFactoryStatus
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceStatus pingWorkspaceStatus(IWorkspace workspace) throws java.io.IOException, AutomationException
pingWorkspaceStatus
in interface IWorkspaceFactoryStatus
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openAvailableWorkspace(IWorkspaceStatus wstatus) throws java.io.IOException, AutomationException
openAvailableWorkspace
in interface IWorkspaceFactoryStatus
wstatus
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceStatus (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setParameters3(java.lang.String server, java.lang.String instance, java.lang.String authenticationMode, java.lang.String userName, java.lang.String password, java.lang.String versionName, java.lang.Object historicalInfo) throws java.io.IOException, AutomationException
setParameters3
in interface ISetDefaultConnectionInfo3
server
- The server (in)instance
- The instance (in)authenticationMode
- The authenticationMode (in)userName
- The userName (in)password
- The password (in)versionName
- The versionName (in)historicalInfo
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void clearParameters3(java.lang.String server, java.lang.String instance, java.lang.String authenticationMode) throws java.io.IOException, AutomationException
clearParameters3
in interface ISetDefaultConnectionInfo3
server
- The server (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.