C# Class Spark.Store.Mongo.MongoTransaction

Datei anzeigen Open project: raysearchlabs/spark

Public Methods

Method Description
Begin ( ) : void
Commit ( ) : void
Insert ( BsonDocument document ) : void
InsertBatch ( IList documents ) : void
KeyOf ( BsonDocument document ) : BsonValue
KeysOf ( IEnumerable documents ) : IEnumerable
MarkExisting ( IEnumerable documents ) : void
MongoTransaction ( MongoCollection collection ) : System
ReadCurrent ( string resourceid ) : BsonDocument
RemoveQueued ( string transid ) : void
RemoveTransaction ( string transid ) : void
Rollback ( ) : void

Private Methods

Method Description
MarkExisting ( BsonDocument document ) : void
PrepareNew ( BsonDocument document ) : void
PrepareNew ( IEnumerable documents ) : void
Sweep ( string transid, string statusfrom, string statusto ) : void

Method Details

Begin() public method

public Begin ( ) : void
return void

Commit() public method

public Commit ( ) : void
return void

Insert() public method

public Insert ( BsonDocument document ) : void
document BsonDocument
return void

InsertBatch() public method

public InsertBatch ( IList documents ) : void
documents IList
return void

KeyOf() public method

public KeyOf ( BsonDocument document ) : BsonValue
document BsonDocument
return BsonValue

KeysOf() public method

public KeysOf ( IEnumerable documents ) : IEnumerable
documents IEnumerable
return IEnumerable

MarkExisting() public method

public MarkExisting ( IEnumerable documents ) : void
documents IEnumerable
return void

MongoTransaction() public method

public MongoTransaction ( MongoCollection collection ) : System
collection MongoCollection
return System

ReadCurrent() public method

public ReadCurrent ( string resourceid ) : BsonDocument
resourceid string
return BsonDocument

RemoveQueued() public method

public RemoveQueued ( string transid ) : void
transid string
return void

RemoveTransaction() public method

public RemoveTransaction ( string transid ) : void
transid string
return void

Rollback() public method

public Rollback ( ) : void
return void