C# Class Microsoft.Isam.Esent.Interop.Update

A class that encapsulates an update on a JET_TABLEID.
Inheritance: Microsoft.Isam.Esent.Interop.EsentResource
Exibir arquivo Open project: ayende/managed-esent Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void

Cancel the update.

Save ( ) : void

Update the tableid.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

Save ( byte bookmark, int bookmarkSize, int &actualBookmarkSize ) : void

Update the tableid.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

SaveAndGotoBookmark ( ) : void

Update the tableid and position the tableid on the record that was modified. This can be useful when inserting a record because by default the tableid remains in its old location.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

Update ( JET_SESID sesid, JET_TABLEID tableid, JET_prep prep ) : System

Initializes a new instance of the Update class. This automatically begins an update. The update will be cancelled if not explicitly saved.

Protected Methods

Method Description
ReleaseResource ( ) : void

Called when the transaction is being disposed while active. This should rollback the transaction.

Method Details

Cancel() public method

Cancel the update.
public Cancel ( ) : void
return void

ReleaseResource() protected method

Called when the transaction is being disposed while active. This should rollback the transaction.
protected ReleaseResource ( ) : void
return void

Save() public method

Update the tableid.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public Save ( ) : void
return void

Save() public method

Update the tableid.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public Save ( byte bookmark, int bookmarkSize, int &actualBookmarkSize ) : void
bookmark byte Returns the bookmark of the updated record. This can be null.
bookmarkSize int The size of the bookmark buffer.
actualBookmarkSize int Returns the actual size of the bookmark.
return void

SaveAndGotoBookmark() public method

Update the tableid and position the tableid on the record that was modified. This can be useful when inserting a record because by default the tableid remains in its old location.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public SaveAndGotoBookmark ( ) : void
return void

Update() public method

Initializes a new instance of the Update class. This automatically begins an update. The update will be cancelled if not explicitly saved.
public Update ( JET_SESID sesid, JET_TABLEID tableid, JET_prep prep ) : System
sesid JET_SESID The session to start the transaction for.
tableid JET_TABLEID The tableid to prepare the update for.
prep JET_prep The type of update.
return System