| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 problems
public 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 problems| Method Detail | 
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic 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 INamenameString - 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 INameIOException - 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 INameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPathName()
                   throws IOException,
                          AutomationException
getPathName in interface IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPathName(String pathName)
                 throws IOException,
                        AutomationException
setPathName in interface IWorkspaceNamepathName - 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 IWorkspaceNameIOException - 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 IWorkspaceNameprogID - 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 IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBrowseName(String browseName)
                   throws IOException,
                          AutomationException
setBrowseName in interface IWorkspaceNamebrowseName - 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 IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionProperties(IPropertySet connectionProperties)
                             throws IOException,
                                    AutomationException
setConnectionProperties in interface IWorkspaceNameconnectionProperties - 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 IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
            throws IOException,
                   AutomationException
getType in interface IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCategory()
                   throws IOException,
                          AutomationException
getCategory in interface IWorkspaceNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getConnectionString()
                           throws IOException,
                                  AutomationException
getConnectionString in interface IWorkspaceName2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionString(String connectionSting)
                         throws IOException,
                                AutomationException
setConnectionString in interface IWorkspaceName2connectionSting - 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 IPersistpClassID - 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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 IDatabaseCompactIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canCompact()
                   throws IOException,
                          AutomationException
canCompact in interface IDatabaseCompactIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
               throws IOException,
                      AutomationException
serialize in interface IXMLSerializedata - 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 IXMLSerializedata - 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 ExternalizableIOException
public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||