|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.datasourcesGDB.AccessWorkspaceFactory
ESRI Access Workspace Factory.
| Constructor Summary | |
AccessWorkspaceFactory()
Constructs a AccessWorkspaceFactory on the local host. |
|
AccessWorkspaceFactory(com.linar.jintegra.AuthInfo authInfo)
See Security section in the J-Integra for COM documentation |
|
AccessWorkspaceFactory(Object obj)
Construct a AccessWorkspaceFactory using a reference to such an object returned from a COM server |
|
AccessWorkspaceFactory(String host)
Construct a AccessWorkspaceFactory on specified host. |
|
AccessWorkspaceFactory(String host,
com.linar.jintegra.AuthInfo authInfo)
See Security section in the J-Integra for COM documentation |
|
| Method Summary | |
static AccessWorkspaceFactory |
bindUsingMoniker(String moniker)
Bind to a running instance of this class using the supplied ObjRef moniker |
void |
compact(IWorkspaceName name)
Compacts the database. |
boolean |
containsWorkspace(String parentDirectory,
IFileNames fileNames)
Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace. |
boolean |
copy(IWorkspaceName workspaceName,
String destinationFolder,
IWorkspaceName[] workspaceNameCopy)
Copies a workspace to the specified destination folder. |
IWorkspaceName |
create(String parentDirectory,
String name,
IPropertySet connectionProperties,
int hWnd)
Creates a new workspace specified by the directory, file name, and connection properties. |
boolean |
equals(Object o)
Compare this object with another |
static AccessWorkspaceFactory |
getActiveObject()
Get a reference to a running instance of this class on the current machine using native code. |
ILocalDatabaseCompact |
getAsILocalDatabaseCompact()
Access this class's com.esri.arcgis.geodatabase.ILocalDatabaseCompact interface |
IWorkspaceFactory |
getAsIWorkspaceFactory()
Access this class's com.esri.arcgis.geodatabase.IWorkspaceFactory interface |
IWorkspaceFactory2 |
getAsIWorkspaceFactory2()
Access this class's com.esri.arcgis.geodatabase.IWorkspaceFactory2 interface |
IUID |
getClassID()
The class ID of the WorkspaceFactory. |
static String |
getClsid()
|
Object |
getPropertyByName(String name)
Get the value of a property dynamically at run-time, based on its name |
Object |
getPropertyByName(String name,
Object rhs)
Get the value of a property dynamically at run-time, based on its name and a parameter |
String |
getWorkspaceDescription(boolean plural)
A singular or plural description of the type of workspace the workspace factory opens/creates. |
IWorkspaceName |
getWorkspaceName(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 |
Object |
invokeMethodByName(String name)
|
Object |
invokeMethodByName(String name,
Object[] parameters)
Invoke a method dynamically at run-time to pass primitive types (eg Integer to pass an int). |
boolean |
isWorkspace(String fileName)
True if the specified file identifies a workspace supported by the workspace factory. |
boolean |
move(IWorkspaceName workspaceName,
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(String fileName,
int hWnd)
Opens the workspace specified by the given file name. |
IWorkspace |
openFromString(String connectStr,
int hWnd)
Opens the workspace specified by a connection string. |
IPropertySet |
readConnectionPropertiesFromFile(String fileName)
The connection properties from the specified file. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AccessWorkspaceFactory()
throws IOException,
UnknownHostException
IOException - if there are problems communicating via DCOM
UnknownHostException - if the host can not be found
public AccessWorkspaceFactory(String host)
throws IOException,
UnknownHostException
host - the host on which the object should be created
IOException - if there are problems communicating via DCOM
UnknownHostException - if the host can not be found
public AccessWorkspaceFactory(com.linar.jintegra.AuthInfo authInfo)
throws IOException,
UnknownHostException
public AccessWorkspaceFactory(String host,
com.linar.jintegra.AuthInfo authInfo)
throws IOException,
UnknownHostException
public AccessWorkspaceFactory(Object obj)
throws IOException
obj - an object returned from a COM server
IOException - if there are problems communicating via DCOM| Method Detail |
public static String getClsid()
public IWorkspaceFactory getAsIWorkspaceFactory()
public IWorkspaceFactory2 getAsIWorkspaceFactory2()
public ILocalDatabaseCompact getAsILocalDatabaseCompact()
public boolean equals(Object o)
public int hashCode()
public static AccessWorkspaceFactory getActiveObject()
throws AutomationException,
IOException
IOException - If there are communications problems.
AutomationException - If there was an error attaching to the instance.
public static AccessWorkspaceFactory bindUsingMoniker(String moniker)
throws AutomationException,
IOException
moniker - The ObjRef Moniker (Created using Windows CreateObjrefMoniker() and IMoniker->GetDisplayName).
IOException - If there are communications problems.
AutomationException - If there was an error attaching to the instance.
public Object getPropertyByName(String name)
throws NoSuchFieldException,
IOException,
AutomationException
name - The name of the property to get.
NoSuchFieldException - If the property does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object getPropertyByName(String name,
Object rhs)
throws NoSuchFieldException,
IOException,
AutomationException
name - The name of the property to get.rhs - A parameter used when getting the proxy.
NoSuchFieldException - If the property does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object invokeMethodByName(String name,
Object[] parameters)
throws NoSuchMethodException,
IOException,
AutomationException
name - The name of the method to be invoked.parameters - One element for each parameter. Use primitive type wrappers.
NoSuchMethodException - If the method does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object invokeMethodByName(String name)
throws NoSuchMethodException,
IOException,
AutomationException
NoSuchMethodException
IOException
AutomationException
public IWorkspace open(IPropertySet connectionProperties,
int hWnd)
throws IOException,
AutomationException
IWorkspaceFactoryOpen takes as input a property set of connection properties that specify the workspace to connect to. In the case of file system workspaces and local database workspaces, a single property named DATABASE, whose value is the pathname to the workspace, is usually all that is required. In the case of remote database workspaces accessed via ArcSDE the properties usually include the USER, PASSWORD, DATABASE, SERVER, INSTANCE, and VERSION properties of the database being connected to. The DATABSE property is optional and is required for ArcSDE instances that manage multiple databases (for example, SqlServer). The VERSION property specifies the version to connect to in the case of a multi versioned database. If no version is supplied then a connection to the default version will be returned.
open in interface IWorkspaceFactoryconnectionProperties - An reference to a com.esri.arcgis.system.IPropertySet (in)hWnd - The hWnd (A COM typedef) (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public IWorkspace openFromFile(String fileName,
int hWnd)
throws IOException,
AutomationException
IWorkspaceFactoryOpenFromFile takes the pathname of a file or directory that represents either a FileSystemWorkspace or LocalDatabaseWorkspace, or a connection file to a RemoteDatabase workspace and returns an interface on the specified workspace. Clients of these methods can then proceed to open and access datasets in the workspace. If these methods are called with insufficient properties, then the user will be presented with a connection dialog that will prompt for the required properties.
The hWnd argument is the parent window or application's window. The hWnd will guarantee that the connection dialog, if presented to you because of insufficient properties, has the correct parent.
openFromFile in interface IWorkspaceFactoryfileName - The fileName (in)hWnd - The hWnd (A COM typedef) (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public IWorkspaceName create(String parentDirectory,
String name,
IPropertySet connectionProperties,
int hWnd)
throws IOException,
AutomationException
IWorkspaceFactory
create in interface IWorkspaceFactoryparentDirectory - The parentDirectory (in)name - The name (in)connectionProperties - An reference to a com.esri.arcgis.system.IPropertySet (in)hWnd - The hWnd (A COM typedef) (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public boolean containsWorkspace(String parentDirectory,
IFileNames fileNames)
throws IOException,
AutomationException
IWorkspaceFactory
containsWorkspace in interface IWorkspaceFactoryparentDirectory - The parentDirectory (in)fileNames - An reference to a com.esri.arcgis.system.IFileNames (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public IWorkspaceName getWorkspaceName(String parentDirectory,
IFileNames fileNames)
throws IOException,
AutomationException
IWorkspaceFactoryGetWorkspaceName is useful when browsing the file system for workspaces. It is handed in a parent directory and the list of file names in the directory to be examined. It returns a WorkspaceName object representing the first workspace it finds in the list of file names and removes any filenames representing the workspace or its datasets from the input list of filenames.
getWorkspaceName in interface IWorkspaceFactoryparentDirectory - The parentDirectory (in)fileNames - An reference to a com.esri.arcgis.system.IFileNames (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public IUID getClassID()
throws IOException,
AutomationException
IWorkspaceFactoryGetClassID returns the unique identifier for the workspace factory. You can use this to distinguish different version of the same type of factory, for example, whether you are working with an SDE 3 workspace factory or and SDE 8 workspace factory.
getClassID in interface IWorkspaceFactoryAutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public boolean isWorkspace(String fileName)
throws IOException,
AutomationException
IWorkspaceFactory
isWorkspace in interface IWorkspaceFactoryfileName - The fileName (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public IPropertySet readConnectionPropertiesFromFile(String fileName)
throws IOException,
AutomationException
IWorkspaceFactoryThe filename parameter represents the pathname of a file that contains the connection information to be placed into the IPropertySet variable. When used with SDE connection files, the pathname generally points to a binary file in the directory %USERPROFILE%/Application Data/ESRI/ArcCatalog.
readConnectionPropertiesFromFile in interface IWorkspaceFactoryfileName - The fileName (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public String getWorkspaceDescription(boolean plural)
throws IOException,
AutomationException
IWorkspaceFactory
getWorkspaceDescription in interface IWorkspaceFactoryplural - The plural (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public int getWorkspaceType()
throws IOException,
AutomationException
IWorkspaceFactory
getWorkspaceType in interface IWorkspaceFactoryAutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public boolean copy(IWorkspaceName workspaceName,
String destinationFolder,
IWorkspaceName[] workspaceNameCopy)
throws IOException,
AutomationException
IWorkspaceFactoryThe Copy and Move methods can be used to copy or move workspaces or connection files between folders in the file system. The Boolean result indicates if the operation was successful. In the case of remote database workspaces, these operations work on the connection file representing the workspace.
copy in interface IWorkspaceFactoryworkspaceName - An reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder - The destinationFolder (in)workspaceNameCopy - An reference to a com.esri.arcgis.geodatabase.IWorkspaceName (out: use single element array)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public boolean move(IWorkspaceName workspaceName,
String destinationFolder)
throws IOException,
AutomationException
IWorkspaceFactoryThe Copy and Move methods can be used to copy or move workspaces or connection files between folders in the file system. The Boolean result indicates if the operation was successful. In the case of remote database workspaces, these operations work on the connection file representing the workspace.
move in interface IWorkspaceFactoryworkspaceName - An reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder - The destinationFolder (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public IWorkspace openFromString(String connectStr,
int hWnd)
throws IOException,
AutomationException
IWorkspaceFactory2The connect string is a collection of name value pairs separated by ; (semicolon).
openFromString in interface IWorkspaceFactory2connectStr - The connectStr (in)hWnd - The hWnd (A COM typedef) (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public void compact(IWorkspaceName name)
throws IOException,
AutomationException
ILocalDatabaseCompact
compact in interface ILocalDatabaseCompactname - An reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||