|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.trackinganalyst.AMSWorkspace
public class 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(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(String copyName,
IWorkspace copyWorkspace)
Copies this dataset to a new dataset with the specified name. |
IFeatureClass |
createFeatureClass(String name,
IFields fields,
IUID clsid,
IUID eXTCLSID,
int featureType,
String shapeFieldName,
String configKeyword)
Creates a new standalone feature class under the workspace. |
IFeatureDataset |
createFeatureDataset(String name,
ISpatialReference spatialReference)
Creates a new feature dataset. |
IQueryDef |
createQueryDef()
Create a query definition object. |
IRelationshipClass |
createRelationshipClass(String relClassName,
IObjectClass originClass,
IObjectClass destinationClass,
String forwardLabel,
String backwardLabel,
int cardinality,
int notification,
boolean isComposite,
boolean isAttributed,
IFields relAttrFields,
String originPrimaryKey,
String destPrimaryKey,
String originForeignKey,
String destForeignKey)
Creates a new relationship class. |
ITable |
createTable(String name,
IFields fields,
IUID clsid,
IUID eXTCLSID,
String configKeyword)
Creates a new table. |
void |
delete()
Deletes this dataset. |
void |
disconnect()
Disconnects a data connection in the tracking workspace. |
boolean |
equals(Object o)
Compare this object with another |
void |
executeSQL(String sqlStmt)
Executes the specified SQL statement. |
boolean |
exists()
Checks if the workspace exists. |
String |
getActivityLog()
Indicates error code value for the last Internet server connection. |
IPropertySet |
getAllMessageRates()
Indicates message rate for each TemporalFeatureClass under the workspace or workspace factory. |
IPropertySet |
getAllSampleSizes()
Indicates sample size used for calculating message rate for each TemporalFeatureClass under the workspace or workspace factory. |
IPropertySet |
getAllTotalFeatureCounts()
Indicates the total number of features logged for each TemporalFeatureClass under the workspace or workspace factory. |
IPropertySet |
getAllTrackCounts()
Indicates track count for each TemporalFeatureClass under the workspace or workspace factory. |
String |
getBrowseName()
The browse name of the dataset. |
String |
getCategory()
The category of the dataset. |
IPropertySet |
getConnectionProperties()
The connection properties of the workspace. |
IPropertySet |
getConnectionStatus()
Indicates the connection status of each workspace under the workspace factory |
ITime |
getConnectionTime()
The time the connection was established. |
IPropertySet |
getCurrentDiscardedMessageCounts()
Indicates current number of messages discarded. |
IEnumDatasetName |
getDatasetNames(int datasetType)
The DatasetNames in the workspace. |
IEnumDataset |
getDatasets(int datasetType)
The datasets in the workspace. |
IPropertySet |
getDiscardedMessageCounts()
Indicates total number of messages discarded. |
IName |
getFullName()
The associated name object. |
int |
getLastConnectionErrorCode()
Indicates error code value for the last Internet server connection. |
String |
getLastConnectionErrorMessage()
Indicates error code value for the last Internet server connection. |
String |
getName()
The name of the Dataset. |
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. |
IPropertySet |
getPulledMessageCounts()
Indicates total number of messages pulled. |
IPropertySet |
getQueuedMessageCounts()
Indicates total number of messages queued. |
IPropertySet |
getReceivedMessageCounts()
Indicates total number of messages received. |
IServerConnection |
getServerConnection()
Defines aspects of the server connection. |
ITime |
getSubscriptionTime(String serviceName)
The time the subscription to the service was established. |
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 |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isDirectory()
TRUE if the workspace is a file system directory. |
boolean |
isSubscribed(String serviceName)
Indicates whether a service is currently subscribed to. |
void |
loadProperties(String bstrTableName)
Loads properties for connection in the workspace. |
IFeatureClass |
openFeatureClass(String name)
Opens an existing feature class. |
IFeatureDataset |
openFeatureDataset(String name)
Opens an existing feature dataset. |
IFeatureDataset |
openFeatureQuery(String queryName,
IQueryDef pQueryDef)
Opens a feature dataset containing a single feature dlass defined by the specified Query. |
IRelationshipClass |
openRelationshipClass(String name)
Opens an existing relationship class. |
ITable |
openRelationshipQuery(IRelationshipClass relClass,
boolean joinForward,
IQueryFilter srcQueryFilter,
ISelectionSet srcSelectionSet,
String targetColumns,
boolean doNotPushJoinToDB)
The table of a relationship join query. |
ITable |
openTable(String name)
Opens an existing table. |
void |
rename(String name)
Renames this Dataset. |
void |
resetAllFeatureCounts()
Resets total feature count for each TemporalFeatureClass under the workspace or workspace factory. |
void |
resetAllMessageRates()
Resets message rate for each TemporalFeatureClass under the workspace or workspace factory. |
void |
setAllSampleSizes(int lSampleSize)
Sets sample size for each TemporalFeatureClass under the workspace or workspace factory. |
void |
setBrowseName(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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AMSWorkspace(Object obj) throws 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
IOException
- if there are interop problems
AMSWorkspace theAMSWorkspace = (AMSWorkspace) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IWorkspaceProperty getProperty(int propertyGroup, int propertyType) throws IOException, AutomationException
getProperty
in interface IWorkspaceProperties
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setProperty(int propertyGroup, int propertyType, IWorkspaceProperty workspaceProperty) throws IOException, AutomationException
setProperty
in interface IWorkspaceProperties
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)workspaceProperty
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceProperty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLastConnectionErrorCode() throws IOException, AutomationException
This property indicates error code value for the last internet server connection.
getLastConnectionErrorCode
in interface ITxDiagnostics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLastConnectionErrorMessage() throws IOException, AutomationException
This property indicates error message for the last internet server connection.
getLastConnectionErrorMessage
in interface ITxDiagnostics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getActivityLog() throws IOException, AutomationException
This property indicates the activity log for the internet server connection.
getActivityLog
in interface ITxDiagnostics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getConnectionProperties() throws IOException, AutomationException
The ConnectionProperties property of a workspace returns the set of named connection properties for this workspace.
getConnectionProperties
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceFactory getWorkspaceFactory() throws IOException, AutomationException
The WorkspaceFactory property can be used to get a reference back to the workspace factory for this workspace.
getWorkspaceFactory
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDataset getDatasets(int datasetType) throws IOException, AutomationException
getDatasets
in interface IWorkspace
datasetType
- A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDatasetName getDatasetNames(int datasetType) throws IOException, AutomationException
getDatasetNames
in interface IWorkspace
datasetType
- A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPathName() throws IOException, AutomationException
getPathName
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
getType
in interface IDataset
getType
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDirectory() throws IOException, AutomationException
isDirectory
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean exists() throws IOException, AutomationException
This method can be used with workspaces from file-based data sources to detect if they've been deleted by another application. For example, a shapefile workspace is a directory and can be deleted while the workspace is open.
exists
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void executeSQL(String sqlStmt) throws IOException, AutomationException
The 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 IWorkspace
sqlStmt
- The sqlStmt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void connect() throws IOException, AutomationException
This method connects the workspace to an AMS (tracking) server.
connect
in interface IAMSWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void disconnect() throws IOException, AutomationException
This method disconnects the workspace from a connected AMS (Tracking) Server.
disconnect
in interface IAMSWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass openFeatureClass(String name) throws IOException, AutomationException
This method opens an existing feature class specified by the name.
openFeatureClass
in interface IFeatureWorkspace
openFeatureClass
in interface IAMSWorkspace
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable openTable(String name) throws IOException, AutomationException
This method opens an existing table specified by the name.
openTable
in interface IFeatureWorkspace
openTable
in interface IAMSWorkspace
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable createTable(String name, IFields fields, IUID clsid, IUID eXTCLSID, String configKeyword) throws IOException, AutomationException
This method creates a new table specified by the name. Current version of Tracking Analyst does not support the capability to create tables.
createTable
in interface IFeatureWorkspace
createTable
in interface IAMSWorkspace
name
- 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass createFeatureClass(String name, IFields fields, IUID clsid, IUID eXTCLSID, int featureType, String shapeFieldName, String configKeyword) throws IOException, AutomationException
This method creates a new feature class specified by the name. Current version of Tracking Analyst does not support the capability to create feature classes.
createFeatureClass
in interface IFeatureWorkspace
createFeatureClass
in interface IAMSWorkspace
name
- 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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IQueryDef createQueryDef() throws IOException, AutomationException
This method creates a new query definition object. Current version of Tracking Analyst does not support the capability to create query definitions.
createQueryDef
in interface IFeatureWorkspace
createQueryDef
in interface IAMSWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureDataset openFeatureQuery(String queryName, IQueryDef pQueryDef) throws IOException, AutomationException
This method opens a feature dataset containing a single feature class defined by the specified query. Current version of Tracking Analyst does not support the capability to open feature queries.
openFeatureQuery
in interface IFeatureWorkspace
openFeatureQuery
in interface IAMSWorkspace
queryName
- The queryName (in)pQueryDef
- A reference to a com.esri.arcgis.geodatabase.IQueryDef (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerConnection getServerConnection() throws IOException, AutomationException
This property defines aspects of the server connection.
getServerConnection
in interface IAMSWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void storeProperties() throws IOException, AutomationException
This method stores the workspace properties information for itself and its feature classes into the legacy .atn file(s) and a new technique that stores this info into the connection properties object. The latter allows the information about purge rules, buffer size, and actions to be transported between users and machines.
storeProperties
in interface IAMSWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadProperties(String bstrTableName) throws IOException, AutomationException
This method is called by the feature class upon initialization to load in state properties that were configured by the user. These properties can be loaded from one of two sources, a .atn file in the users applications dir or from the connection properties. The precedence of loading is to try the connection properties first and if that is not successful, then load from the .atn file. The .atn file is the legacy method.
loadProperties
in interface IAMSWorkspace
bstrTableName
- The bstrTableName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureDataset openFeatureDataset(String name) throws IOException, AutomationException
The OpenFeatureDataset method can be used to open any existing feature dataset in the workspace given its fully qualified name.
Use the IDatabaseConnectionInfo interface to determine the User and Database (if applicable). ISQLSyntax::QualifyTableName can be used to determine the fully qualified name for a feature dataset.
openFeatureDataset
in interface IFeatureWorkspace
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureDataset createFeatureDataset(String name, ISpatialReference spatialReference) throws IOException, AutomationException
The CreateFeatureDataset method can be used to create a new FeatureDataset given its name and spatial reference. Methods supported by the returned feature dataset allow creation of feature classes in the feature dataset.
If the workspace the FeatureDataset will be created in is a pre-9.2 Geodatabase, you must ensure the spatial reference is a low precision spatial reference. 9.1 and earlier versions of the Geodatabase only support low precision spatial references, while 9.2 Geodatabases require high precision spatial references. Use IControlPrecision2::IsHighPrecision to manage the precision level of the spatial reference used to create the FeatureDataset. Use the IGeodatabaseRelease interface to determine the release of the geodatabase
createFeatureDataset
in interface IFeatureWorkspace
name
- The name (in)spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRelationshipClass openRelationshipClass(String name) throws IOException, AutomationException
The OpenRelationshipClass method can be used to open any existing relationship class in the workspace given its fully qualified name.
Use the IDatabaseConnectionInfo interface to determine the User and Database (if applicable). ISQLSyntax::QualifyTableName can be used to determine the fully qualified name for a relationship class.
openRelationshipClass
in interface IFeatureWorkspace
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRelationshipClass createRelationshipClass(String relClassName, IObjectClass originClass, IObjectClass destinationClass, String forwardLabel, String backwardLabel, int cardinality, int notification, boolean isComposite, boolean isAttributed, IFields relAttrFields, String originPrimaryKey, String destPrimaryKey, String originForeignKey, String destForeignKey) throws IOException, AutomationException
The CreateRelationshipClass method can be used to create a new stand-alone relationship class that is not part of a feature dataset. The relationship class is implemented as a separate data table whose name is the name of the relationship class if the cardinality is many-to-many or if the relationship class is attributed. The relAttribFields parameter is optional, and a null value may be passed in for non-attributed relationship classes.
Many-to-many or attributed relationship classes require specification of all four key fields—the OriginPrimaryKey and the destPrimaryKey parameters are the primary key fields for the origin and destination object classes. The OriginForeignKey and destForeignKey parameters are the names of the corresponding foreign keys that will be created in the data table representing the relationship class. If the relationship class is one-to-one or one-to-many and not attributed, then the relationship class is implemented as a foreign key field in the destination object class (the OriginForeignKey) that references the primary key field in the origin object class (the OriginPrimaryKey). In this case, the OriginPrimaryKey, the OriginForeignKey, and the destPrimaryKey must be supplied.
The Fields object passed to the relAttrFields parameter should not be an object retrieved from another class. If the new class is going to have the same fields as an existing class, cast the existing class' fields collection to the IClone interface, clone it, and use the cloned fields collection as input for this method.
createRelationshipClass
in interface IFeatureWorkspace
relClassName
- The relClassName (in)originClass
- A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)destinationClass
- A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)forwardLabel
- The forwardLabel (in)backwardLabel
- The backwardLabel (in)cardinality
- A com.esri.arcgis.geodatabase.esriRelCardinality constant (in)notification
- A com.esri.arcgis.geodatabase.esriRelNotification constant (in)isComposite
- The isComposite (in)isAttributed
- The isAttributed (in)relAttrFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)originPrimaryKey
- The originPrimaryKey (in)destPrimaryKey
- The destPrimaryKey (in)originForeignKey
- The originForeignKey (in)destForeignKey
- The destForeignKey (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable openRelationshipQuery(IRelationshipClass relClass, boolean joinForward, IQueryFilter srcQueryFilter, ISelectionSet srcSelectionSet, String targetColumns, boolean doNotPushJoinToDB) throws IOException, AutomationException
openRelationshipQuery
in interface IFeatureWorkspace
relClass
- A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)joinForward
- The joinForward (in)srcQueryFilter
- A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)srcSelectionSet
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)targetColumns
- The targetColumns (in)doNotPushJoinToDB
- The doNotPushJoinToDB (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getFullName() throws IOException, AutomationException
getFullName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBrowseName() throws IOException, AutomationException
getBrowseName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBrowseName(String name) throws IOException, AutomationException
setBrowseName
in interface IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
IDataset::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. In addition to this, returned strings are localized, meaning that code relying on a specific string being provided may fail when deployed with a different version of ArcGIS than it was developed with, or when deployed to a client using a different language than it was developed with.
getCategory
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDataset getSubsets() throws IOException, AutomationException
The 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 IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getWorkspace() throws IOException, AutomationException
The Workspace property returns the containing workspace for this dataset.
getWorkspace
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getPropertySet() throws IOException, AutomationException
The 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.
Most datasets do not implement this property and will either raise an error or return a null value if it's called. There are a handful of exceptions that will return property sets; these include the datasets from file geodatabases (as mentioned above) and coverages.
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 IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canCopy() throws IOException, AutomationException
The 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 IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset copy(String copyName, IWorkspace copyWorkspace) throws IOException, AutomationException
IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.
copy
in interface IDataset
copyName
- The copyName (in)copyWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canDelete() throws IOException, AutomationException
The 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 IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.
delete
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canRename() throws IOException, AutomationException
The 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 IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rename(String name) throws IOException, AutomationException
IDataset::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 IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getAllTrackCounts() throws IOException, AutomationException
getAllTrackCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getAllMessageRates() throws IOException, AutomationException
getAllMessageRates
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getAllSampleSizes() throws IOException, AutomationException
getAllSampleSizes
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getAllTotalFeatureCounts() throws IOException, AutomationException
getAllTotalFeatureCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getConnectionStatus() throws IOException, AutomationException
getConnectionStatus
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getReceivedMessageCounts() throws IOException, AutomationException
getReceivedMessageCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getPulledMessageCounts() throws IOException, AutomationException
getPulledMessageCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getDiscardedMessageCounts() throws IOException, AutomationException
getDiscardedMessageCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getCurrentDiscardedMessageCounts() throws IOException, AutomationException
getCurrentDiscardedMessageCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getQueuedMessageCounts() throws IOException, AutomationException
getQueuedMessageCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetAllFeatureCounts() throws IOException, AutomationException
resetAllFeatureCounts
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetAllMessageRates() throws IOException, AutomationException
resetAllMessageRates
in interface ITemporalWorkspaceStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAllSampleSizes(int lSampleSize) throws IOException, AutomationException
setAllSampleSizes
in interface ITemporalWorkspaceStatistics
lSampleSize
- The lSampleSize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITime getConnectionTime() throws IOException, AutomationException
getConnectionTime
in interface ITemporalWorkspaceStatistics2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSubscribed(String serviceName) throws IOException, AutomationException
isSubscribed
in interface ITemporalWorkspaceStatistics2
serviceName
- The serviceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITime getSubscriptionTime(String serviceName) throws IOException, AutomationException
getSubscriptionTime
in interface ITemporalWorkspaceStatistics2
serviceName
- The serviceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 |