|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.WorkspaceName
public class WorkspaceName
ESRI WorkspaceName object.
A workspace name specifies a workspace object and can be used to instantiate it. The workspace is specified using the connection properties for the workspace. A workspace name is a key component of any dataset name for datasets in the workspace.
Constructor Summary | |
---|---|
WorkspaceName()
Constructs a WorkspaceName using ArcGIS Engine. |
|
WorkspaceName(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. WorkspaceName theWorkspaceName = (WorkspaceName) obj; |
Method Summary | |
---|---|
boolean |
canCompact()
True if this dataset can be compacted. |
void |
compact()
Compacts the database. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
String |
getBrowseName()
The browse name of the WorkspaceName. |
String |
getCategory()
The category of the WorkspaceName. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IPropertySet |
getConnectionProperties()
The connection properties of the WorkspaceName. |
String |
getConnectionString()
The connection properties of the WorkspaceName. |
String |
getNameString()
The name string of the object. |
String |
getPathName()
The path name of the WorkspaceName. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getType()
The type of the associated workspace. |
IWorkspaceFactory |
getWorkspaceFactory()
The workspace factory of the WorkspaceName. |
String |
getWorkspaceFactoryProgID()
The ProgID of the WorkspaceName's workspace factory. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
Object |
open()
Opens the object referred to by this name. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setBrowseName(String browseName)
The browse name of the WorkspaceName. |
void |
setConnectionProperties(IPropertySet connectionProperties)
The connection properties of the WorkspaceName. |
void |
setConnectionString(String connectionSting)
The connection properties of the WorkspaceName. |
void |
setNameString(String nameString)
The name string of the object. |
void |
setPathName(String pathName)
The path name of the WorkspaceName. |
void |
setWorkspaceFactoryProgID(String progID)
The ProgID of the WorkspaceName's workspace factory. |
void |
writeExternal(ObjectOutput out)
|
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 WorkspaceName() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic WorkspaceName(Object obj) throws IOException
WorkspaceName theWorkspaceName = (WorkspaceName) obj;
obj
to WorkspaceName
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setNameString(String nameString) throws IOException, AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
setNameString
in interface IName
nameString
- The nameString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getNameString() throws IOException, AutomationException
The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.
getNameString
in interface IName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object open() throws IOException, AutomationException
The Open method lets you instantiate the actual object given the name object.
Note: Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.
IName pName = pFeatureClassName;
pFeatureClass = new IFeatureClassProxy(pName.open());
open
in interface IName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPathName() throws IOException, AutomationException
getPathName
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPathName(String pathName) throws IOException, AutomationException
setPathName
in interface IWorkspaceName
pathName
- The pathName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspaceFactoryProgID() throws IOException, AutomationException
The WorkspaceFactoryProgID identifies the ProgID of the WorkspaceFactory object that is used to open that particular workspace.
Here is a list of some of the possible WorkspaceFactoryProgIDs:
getWorkspaceFactoryProgID
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWorkspaceFactoryProgID(String progID) throws IOException, AutomationException
The WorkspaceFactoryProgID identifies the ProgID of the COM WorkspaceFactory object used to open a workspace through a WorkspaceName object. You must set this property when you are using the WorkspaceName to open a workspace.
Here is a list of some of the possible WorkspaceFactoryProgIDs:
To set the WorkspaceName's WorkspaceFactoryProgID, simply pass it the string representing the correct type of workspace factory.
setWorkspaceFactoryProgID
in interface IWorkspaceName
progID
- The progID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBrowseName() throws IOException, AutomationException
getBrowseName
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBrowseName(String browseName) throws IOException, AutomationException
setBrowseName
in interface IWorkspaceName
browseName
- The browseName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceFactory getWorkspaceFactory() throws IOException, AutomationException
getWorkspaceFactory
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConnectionProperties(IPropertySet connectionProperties) throws IOException, AutomationException
setConnectionProperties
in interface IWorkspaceName
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getConnectionProperties() throws IOException, AutomationException
getConnectionProperties
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
getType
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
getCategory
in interface IWorkspaceName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getConnectionString() throws IOException, AutomationException
getConnectionString
in interface IWorkspaceName2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConnectionString(String connectionSting) throws IOException, AutomationException
setConnectionString
in interface IWorkspaceName2
connectionSting
- The connectionSting (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void compact() throws IOException, AutomationException
compact
in interface IDatabaseCompact
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canCompact() throws IOException, AutomationException
canCompact
in interface IDatabaseCompact
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |