public class FongoConnection extends Object implements com.mongodb.connection.Connection
| Constructor and Description |
|---|
FongoConnection(Fongo fongo) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
command(String database,
org.bson.BsonDocument command,
boolean slaveOk,
org.bson.FieldNameValidator fieldNameValidator,
org.bson.codecs.Decoder<T> commandResultDecoder) |
com.mongodb.WriteConcernResult |
delete(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes) |
com.mongodb.bulk.BulkWriteResult |
deleteCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes) |
int |
getCount() |
com.mongodb.connection.ConnectionDescription |
getDescription() |
<T> com.mongodb.connection.QueryResult<T> |
getMore(com.mongodb.MongoNamespace namespace,
long cursorId,
int numberToReturn,
org.bson.codecs.Decoder<T> resultDecoder) |
com.mongodb.WriteConcernResult |
insert(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.InsertRequest> inserts) |
com.mongodb.bulk.BulkWriteResult |
insertCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.InsertRequest> inserts) |
void |
killCursor(List<Long> cursors) |
<T> com.mongodb.connection.QueryResult<T> |
query(com.mongodb.MongoNamespace namespace,
org.bson.BsonDocument queryDocument,
org.bson.BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
org.bson.codecs.Decoder<T> resultDecoder) |
void |
release() |
com.mongodb.connection.Connection |
retain() |
com.mongodb.WriteConcernResult |
update(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates) |
com.mongodb.bulk.BulkWriteResult |
updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates) |
public FongoConnection(Fongo fongo)
public com.mongodb.connection.Connection retain()
retain in interface com.mongodb.binding.ReferenceCountedretain in interface com.mongodb.connection.Connectionpublic com.mongodb.connection.ConnectionDescription getDescription()
getDescription in interface com.mongodb.connection.Connectionpublic com.mongodb.WriteConcernResult insert(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.InsertRequest> inserts)
insert in interface com.mongodb.connection.Connectionpublic com.mongodb.WriteConcernResult update(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates)
update in interface com.mongodb.connection.Connectionpublic com.mongodb.WriteConcernResult delete(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes)
delete in interface com.mongodb.connection.Connectionpublic com.mongodb.bulk.BulkWriteResult insertCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.InsertRequest> inserts)
insertCommand in interface com.mongodb.connection.Connectionpublic com.mongodb.bulk.BulkWriteResult updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates)
updateCommand in interface com.mongodb.connection.Connectionpublic com.mongodb.bulk.BulkWriteResult deleteCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes)
deleteCommand in interface com.mongodb.connection.Connectionpublic <T> T command(String database, org.bson.BsonDocument command, boolean slaveOk, org.bson.FieldNameValidator fieldNameValidator, org.bson.codecs.Decoder<T> commandResultDecoder)
command in interface com.mongodb.connection.Connectionpublic <T> com.mongodb.connection.QueryResult<T> query(com.mongodb.MongoNamespace namespace,
org.bson.BsonDocument queryDocument,
org.bson.BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
org.bson.codecs.Decoder<T> resultDecoder)
query in interface com.mongodb.connection.Connectionpublic <T> com.mongodb.connection.QueryResult<T> getMore(com.mongodb.MongoNamespace namespace,
long cursorId,
int numberToReturn,
org.bson.codecs.Decoder<T> resultDecoder)
getMore in interface com.mongodb.connection.Connectionpublic void killCursor(List<Long> cursors)
killCursor in interface com.mongodb.connection.Connectionpublic int getCount()
getCount in interface com.mongodb.binding.ReferenceCountedpublic void release()
release in interface com.mongodb.binding.ReferenceCountedCopyright © 2015. All rights reserved.