|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.WorkspaceExtension
public class WorkspaceExtension
Workspace Extension Object.
A workspace representing a geodatabase can have one or more workspace extensions. A workspace extension extends the functionality of a workspace in some way, for example, by managing a new type of custom dataset or by maintaining custom data dictionary information on datasets.
A workspace extension is usually used in conjunction with an application or editor extension that acts as the client of the workspace extension.
The Workspace instantiates all WorkspaceExtensions that are registered in the component category CATID_GeodatabaseWorkspaceExtensions at connect time. An application extension can find a workspace extension by its well-known GUID and invoke methods supported by the extension as appropriate. It will also instantiate all workspace extensions registered with a workspace using IWorkspaceExtensionManager.RegisterExtension.
Constructor Summary | |
---|---|
WorkspaceExtension(Object obj)
Construct a WorkspaceExtension using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IEnumBSTR |
getDataDictionaryTableNames()
Any data dictionary tables that should not be exposed to browsers and should not participate in edit sessions. |
IUID |
getGUID()
The GUID that identifies this Workspace Extension. |
String |
getName()
The Name for this Workspace Extension. |
IEnumBSTR |
getPrivateDatasetNames(int dtype)
The private datasets that should not be exposed to browsers. |
int |
hashCode()
the hashcode for this object |
void |
init(IWorkspaceHelper pWorkspaceHelper)
Initializes the extension, passing in a reference to its workspace helper. |
void |
shutdown()
Informs the extension that its workspace helper (and workspace) are going away. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public WorkspaceExtension(Object obj) throws IOException
obj
to WorkspaceExtension
. *
WorkspaceExtension o = (WorkspaceExtension)obj; // will not work
WorkspaceExtension o = new WorkspaceExtension(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
WorkspaceExtension theWorkspaceExtension = (WorkspaceExtension) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
The Name property is the name of the extension.
getName
in interface IWorkspaceExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getGUID() throws IOException, AutomationException
The GUID property returns the well-known GUID for the extension and is guaranteed to be unique.
getGUID
in interface IWorkspaceExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getPrivateDatasetNames(int dtype) throws IOException, AutomationException
getPrivateDatasetNames
in interface IWorkspaceExtension
dtype
- A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getDataDictionaryTableNames() throws IOException, AutomationException
The PrivateDatasetNames and DataDictionaryNames properties return the names of tables and datasets that are private to the extension and will not be exposed by the workspace to browsing clients. Since they return an EnumBSTR object that is not cocreatable, you must create your own object that implements IEnumBSTR.
getDataDictionaryTableNames
in interface IWorkspaceExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(IWorkspaceHelper pWorkspaceHelper) throws IOException, AutomationException
init
in interface IWorkspaceExtensionControl
pWorkspaceHelper
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceHelper (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
The Shutdown method informs the workspace extension that the workspace has been released by all clients and is about to go away. In response, the workspace extension should release its reference on the workspace helper. Any subsequent calls by the application to the workspace extension should return an error.
shutdown
in interface IWorkspaceExtensionControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |