com.esri.arcgis.geodatabase
Interface IWorkspaceEditControl

All Superinterfaces:
Serializable
All Known Implementing Classes:
IWorkspaceEditControlProxy, Workspace

public interface IWorkspaceEditControl
extends Serializable

Provides access to method that controls if insert and update cursors on simple classes can bypass store events

Remarks

By default on simple classes, insert cursors handed out by the geodatabase will internally bypass the CreateRow and Store mechanisms when creating and updating objects. Tools that use insert cursors include Planarize, Create Features and the Object Loader. When CreateRow and Store are bypassed, subsequent events are not fired for clients listening to IEditEvents and IObjectClassEvents.

This can be overridden on the class level by implemeting IObjectClassInfo2 on its class extension and setting the CanBypassStore property to False. False indicates that insert cursors will not bypass Store and subsequent custom behavior implemented by the row object for this class.

IWorkspaceEditControl allows you to override this for all classes in an edit session by logically making CanBypassStore equal to False for all classes in that edit session. Doing this will ensure that when features are inserted, updated or deleted by editor tools that use insert and update cursors they do not bypass Store and subsequent edit events.

For a simple class in which SetStoreEventsRequired has not been called, edits will not broadcast IObjectClassEvents which in turn will not be rebroadcast as IEditEvents (for which a custom editor extension may be listening). Calling SetStoreEventsRequired will ensure these events are always broadcast.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void setStoreEventsRequired()
          Indicates that insert and update cursors on simple classes cannot bypass store events
 

Method Detail

setStoreEventsRequired

void setStoreEventsRequired()
                            throws IOException,
                                   AutomationException
Indicates that insert and update cursors on simple classes cannot bypass store events

Description

This method instructs the geodatabase to fire events when features are created/modified/deleted through a cursor that otherwise wouldn't fire the events.

Remarks

You must be editing features within a edit session for events to be fired.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.