|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.trackinganalyst.AMSWorkspace
Controls the Tracking Server workspace COM object's properties.
This is the AMS workspace object, which is responsible for the following functionality:
This object is only createable through the AMSWorkspaceFactory object.
| Constructor Summary | |
AMSWorkspace(java.lang.Object obj)
Construct a AMSWorkspace using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
boolean |
canCopy()
True if this dataset can be copied. |
boolean |
canDelete()
True if this dataset can be deleted. |
boolean |
canRename()
True if this dataset can be renamed. |
void |
connect()
Creates real-time data connection in the tracking workspace. |
IDataset |
copy(java.lang.String copyName,
IWorkspace copyWorkspace)
Copies this dataset to a new dataset with the specified name. |
IFeatureClass |
createFeatureClass(java.lang.String name,
IFields fields,
IUID cLSID,
IUID eXTCLSID,
int featureType,
java.lang.String shapeFieldName,
java.lang.String configKeyword)
Creates a new standalone feature class under the workspace. |
IQueryDef |
createQueryDef()
Create a query definition object. |
ITable |
createTable(java.lang.String name,
IFields fields,
IUID cLSID,
IUID eXTCLSID,
java.lang.String configKeyword)
Creates a new table. |
void |
delete()
Deletes this dataset. |
void |
disconnect()
Disconnects a data connection in the tracking workspace. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
executeSQL(java.lang.String sqlStmt)
Executes the specified SQL statement. |
boolean |
exists()
Checks if the workspace exists. |
java.lang.String |
getActivityLog()
Indicates error code value for the last Internet server connection. |
IAMSWorkspace |
getAsIAMSWorkspace()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IDataset |
getAsIDataset()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ITxDiagnostics |
getAsITxDiagnostics()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IWorkspace |
getAsIWorkspace()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IWorkspaceProperties |
getAsIWorkspaceProperties()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
java.lang.String |
getBrowseName()
The browse name of the dataset. |
java.lang.String |
getCategory()
The category of the dataset. |
IPropertySet |
getConnectionProperties()
The connection properties of the workspace. |
IEnumDatasetName |
getDatasetNames(int datasetType)
The DatasetNames in the workspace. |
IEnumDataset |
getDatasets(int datasetType)
The datasets in the workspace. |
IName |
getFullName()
The associated name object. |
int |
getLastConnectionErrorCode()
Indicates error code value for the last Internet server connection. |
java.lang.String |
getLastConnectionErrorMessage()
Indicates error code value for the last Internet server connection. |
java.lang.String |
getName()
The name of the Dataset. |
java.lang.String |
getPathName()
The file system full path of the workspace. |
IWorkspaceProperty |
getProperty(int propertyGroup,
int propertyType)
Information about this particular property. |
IPropertySet |
getPropertySet()
The set of properties for the dataset. |
IServerConnection |
getServerConnection()
Defines aspects of the server connection. |
IEnumDataset |
getSubsets()
Datasets contained within this dataset. |
int |
getType()
The Type of the Workspace. |
IWorkspace |
getWorkspace()
The workspace containing this dataset. |
IWorkspaceFactory |
getWorkspaceFactory()
The factory that created the workspace. |
int |
hashCode()
the hashcode for this object |
boolean |
isDirectory()
TRUE if the workspace is a file system directory. |
void |
loadProperties(java.lang.String bstrTableName)
Loads properties for connection in the workspace. |
IFeatureClass |
openFeatureClass(java.lang.String name)
Opens an existing feature class. |
IFeatureDataset |
openFeatureQuery(java.lang.String queryName,
IQueryDef pQueryDef)
Opens a feature dataset containing a single feature dlass defined by the specified Query. |
ITable |
openTable(java.lang.String name)
Opens an existing table. |
void |
rename(java.lang.String name)
Renames this Dataset. |
void |
setBrowseName(java.lang.String name)
The browse name of the dataset. |
void |
setProperty(int propertyGroup,
int propertyType,
IWorkspaceProperty workspaceProperty)
Information about this particular property. |
void |
storeProperties()
Stores connection properties in the workspace. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AMSWorkspace(java.lang.Object obj)
throws java.io.IOException
obj to AMSWorkspace. *
AMSWorkspace o = (AMSWorkspace)obj; // will not work
AMSWorkspace o = new AMSWorkspace(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
AMSWorkspace theAMSWorkspace = (AMSWorkspace) obj;
java.io.IOException - if there are interop problems| Method Detail |
public IWorkspaceProperties getAsIWorkspaceProperties()
public ITxDiagnostics getAsITxDiagnostics()
public IWorkspace getAsIWorkspace()
public IAMSWorkspace getAsIAMSWorkspace()
public IDataset getAsIDataset()
public boolean equals(java.lang.Object o)
public int hashCode()
public IWorkspaceProperty getProperty(int propertyGroup,
int propertyType)
throws java.io.IOException,
AutomationException
IWorkspacePropertiesThe IWorkspaceProperties::Property method takes as input the enumerations for the desired WorkspacePropertyGroup and the WorkspacePropertyType and returns the value of the requested property as a WorkspaceProperty object.
getProperty in interface IWorkspacePropertiespropertyGroup - A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType - The propertyType (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setProperty(int propertyGroup,
int propertyType,
IWorkspaceProperty workspaceProperty)
throws java.io.IOException,
AutomationException
IWorkspaceProperties
setProperty in interface IWorkspacePropertiespropertyGroup - A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType - The propertyType (in)workspaceProperty - A reference to a com.esri.arcgis.geodatabase.IWorkspaceProperty (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLastConnectionErrorCode()
throws java.io.IOException,
AutomationException
ITxDiagnostics
getLastConnectionErrorCode in interface ITxDiagnosticsjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getLastConnectionErrorMessage()
throws java.io.IOException,
AutomationException
ITxDiagnostics
getLastConnectionErrorMessage in interface ITxDiagnosticsAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getActivityLog()
throws java.io.IOException,
AutomationException
ITxDiagnostics
getActivityLog in interface ITxDiagnosticsAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPropertySet getConnectionProperties()
throws java.io.IOException,
AutomationException
IWorkspaceThe ConnectionProperties property of a workspace returns the set of named connection properties for this workspace.
getConnectionProperties in interface IWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspaceFactory getWorkspaceFactory()
throws java.io.IOException,
AutomationException
IWorkspaceThe WorkspaceFactory property can be used to get a reference back to the workspace factory for this workspace.
getWorkspaceFactory in interface IWorkspaceAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumDataset getDatasets(int datasetType)
throws java.io.IOException,
AutomationException
IWorkspaceThe Datasets method returns an enumerator over the datasets in the workspace of the specified dataset type. Not to be confused with DatasetNames, Datasets will return a fully hydrated data set object.
See esriDatasetType for more information on dataset types.
Using a dataset type of esriDTAny will return all the datasets or datasets in the workspace, across all dataset types. Note that only the top-level datasets in the workspace are returned by these methods. In particular, if a workspace contains both stand-alone feature classes and additional feature classes that are part of a feature dataset, then calling the Datasets property on the workspace with a dataset type of esriDTFeatureClass will return only the standalone feature classes.
getDatasets in interface IWorkspacedatasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumDatasetName getDatasetNames(int datasetType)
throws java.io.IOException,
AutomationException
IWorkspaceThe DatasetNames method returns an enumerator over the dataset names in the workspace for the specified dataset type. Name objects are lightweight versions of the geodatabase objects they refer to while still providing access to some of the properties/methods available in the geodatabase object. From a name object an instance of the geodatabase object specified by the name object can be created/returned and vice versa.
See esriDatasetType for more information on dataset types.
Browsing applications should use the DatasetNames method to obtain name objects. These dataset name objects contain the essential properties of the corresponding dataset objects and are faster to retrieve. If the actual dataset specified by a name object is required (for example, because the user selected it), then it can easily be instantiated by calling the Open method on the name object.
Using a dataset type of esriDTAny will return all the datasets or dataset names in the workspace, across all dataset types. Note that only the top-level datasets in the workspace are returned by these methods. In particular, if a workspace contains both stand-alone feature classes and additional feature classes that are part of a feature dataset, then calling the DatasetNames property on the workspace with a dataset type of esriDTFeatureClass will return only the standalone feature classes. In order to get the feature class names within a feature dataset, the application needs to get the FeatureClassNames property on the top-level feature dataset name returned by the workspace.
getDatasetNames in interface IWorkspacedatasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getPathName()
throws java.io.IOException,
AutomationException
IWorkspace
getPathName in interface IWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws java.io.IOException,
AutomationException
IWorkspace
getType in interface IWorkspaceAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isDirectory()
throws java.io.IOException,
AutomationException
IWorkspace
isDirectory in interface IWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean exists()
throws java.io.IOException,
AutomationException
IWorkspace
exists in interface IWorkspaceAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void executeSQL(java.lang.String sqlStmt)
throws java.io.IOException,
AutomationException
IWorkspaceThe ExecuteSQL method can be used to send an arbitrary SQL statement to the underlying database for execution. The statement can be any DDL (data definition language) or DML (data manipulation language) statement but can not return any result sets. The syntax for the SQL is as required by the underlying database. The workspace supports an optional ISQLSyntax interface that provides information to applications on aspects of the SQL Syntax for the underlying database.
To determine if a workspace supports the ExecutesSQL method, an application can check the value of the canExecuteSQLworkspace property via the optional IWorkspaceProperties interface. In general, this method is only supported on local and remote database workspaces.
executeSQL in interface IWorkspacesqlStmt - The sqlStmt (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void connect()
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method connects the workspace to the Tracking Server.
connect in interface IAMSWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void disconnect()
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method disconnects the workspace from a connected Tracking Server.
disconnect in interface IAMSWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureClass openFeatureClass(java.lang.String name)
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method opens an existing feature class.
openFeatureClass in interface IAMSWorkspacename - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ITable openTable(java.lang.String name)
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method opens an existing table.
openTable in interface IAMSWorkspacename - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITable createTable(java.lang.String name,
IFields fields,
IUID cLSID,
IUID eXTCLSID,
java.lang.String configKeyword)
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method creates a new table.
createTable in interface IAMSWorkspacename - The name (in)fields - A reference to a com.esri.arcgis.geodatabase.IFields (in)cLSID - A reference to a com.esri.arcgis.system.IUID (in)eXTCLSID - A reference to a com.esri.arcgis.system.IUID (in)configKeyword - The configKeyword (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureClass createFeatureClass(java.lang.String name,
IFields fields,
IUID cLSID,
IUID eXTCLSID,
int featureType,
java.lang.String shapeFieldName,
java.lang.String configKeyword)
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method creates a new standalone feature class under the workspace.
createFeatureClass in interface IAMSWorkspacename - The name (in)fields - A reference to a com.esri.arcgis.geodatabase.IFields (in)cLSID - A reference to a com.esri.arcgis.system.IUID (in)eXTCLSID - A reference to a com.esri.arcgis.system.IUID (in)featureType - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)shapeFieldName - The shapeFieldName (in)configKeyword - The configKeyword (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IQueryDef createQueryDef()
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method creates a query definition object.
createQueryDef in interface IAMSWorkspaceAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureDataset openFeatureQuery(java.lang.String queryName,
IQueryDef pQueryDef)
throws java.io.IOException,
AutomationException
IAMSWorkspaceThis method opens a feature dataset containing a single feature class defined by the specified Query.
openFeatureQuery in interface IAMSWorkspacequeryName - The queryName (in)pQueryDef - A reference to a com.esri.arcgis.geodatabase.IQueryDef (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IServerConnection getServerConnection()
throws java.io.IOException,
AutomationException
IAMSWorkspace
getServerConnection in interface IAMSWorkspacejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void storeProperties()
throws java.io.IOException,
AutomationException
IAMSWorkspace
storeProperties in interface IAMSWorkspaceAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void loadProperties(java.lang.String bstrTableName)
throws java.io.IOException,
AutomationException
IAMSWorkspace
loadProperties in interface IAMSWorkspacebstrTableName - The bstrTableName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getName()
throws java.io.IOException,
AutomationException
IDataset
getName in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IName getFullName()
throws java.io.IOException,
AutomationException
IDataset
getFullName in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getBrowseName()
throws java.io.IOException,
AutomationException
IDataset
getBrowseName in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBrowseName(java.lang.String name)
throws java.io.IOException,
AutomationException
IDataset
setBrowseName in interface IDatasetname - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getCategory()
throws java.io.IOException,
AutomationException
IDatasetIDataset::Category returns a description of the category of the dataset. The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog. The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".
The description returned from IDataset::Category may change between releases of ArcGIS.
getCategory in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumDataset getSubsets()
throws java.io.IOException,
AutomationException
IDatasetThe Subsets property returns other Dataset objects contained in this dataset.
IDataset::Subsets is not supported for Graph objects such as a Geometric Network. To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.
getSubsets in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IWorkspace getWorkspace()
throws java.io.IOException,
AutomationException
IDatasetThe Workspace property returns the containing workspace for this dataset.
getWorkspace in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getPropertySet()
throws java.io.IOException,
AutomationException
IDatasetThe PropertySet property is used to return any additional intrinsic properties (but not metadata properties) that may apply to the dataset. One use of this property is to distinguish between the types of File Geodatabase datafile formats. If called on a Feature Class or Table in a File Geodatabase the Datafile Format property can either be esriFGDBStandardDatafile or esriFGDBCompressedDatafile.
Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.
IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.
getPropertySet in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean canCopy()
throws java.io.IOException,
AutomationException
IDatasetThe CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
The CanCopy method is supported by:
canCopy in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IDataset copy(java.lang.String copyName,
IWorkspace copyWorkspace)
throws java.io.IOException,
AutomationException
IDatasetIDataset::Copy does not support the copying of Graph objects such as a Geometric Network.
copy in interface IDatasetcopyName - The copyName (in)copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.GeoDBDataTransfer
public boolean canDelete()
throws java.io.IOException,
AutomationException
IDatasetThe CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canDelete in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws java.io.IOException,
AutomationException
IDatasetCertain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.
delete in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean canRename()
throws java.io.IOException,
AutomationException
IDatasetThe CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canRename in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void rename(java.lang.String name)
throws java.io.IOException,
AutomationException
IDatasetIDataset::Rename does not support the renaming of Graph objects such as a Geometric Network. In addition, certain feature classes, such as network feature classes, cannot be renamed.
rename in interface IDatasetname - The name (in)
java.io.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 | |||||||||