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)
Deprecated.
|
<T> T |
command(String database,
org.bson.BsonDocument command,
org.bson.FieldNameValidator fieldNameValidator,
com.mongodb.ReadPreference readPreference,
org.bson.codecs.Decoder<T> commandResultDecoder,
com.mongodb.session.SessionContext sessionContext) |
<T> T |
command(String database,
org.bson.BsonDocument command,
org.bson.FieldNameValidator commandFieldNameValidator,
com.mongodb.ReadPreference readPreference,
org.bson.codecs.Decoder<T> commandResultDecoder,
com.mongodb.session.SessionContext sessionContext,
boolean responseExpected,
com.mongodb.connection.SplittablePayload payload,
org.bson.FieldNameValidator payloadFieldNameValidator) |
com.mongodb.WriteConcernResult |
delete(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.bulk.DeleteRequest deleteRequest) |
com.mongodb.WriteConcernResult |
delete(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes)
Deprecated.
|
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.bulk.InsertRequest insertRequest) |
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,
Boolean bypassDocumentValidation,
List<com.mongodb.bulk.InsertRequest> inserts)
Insert the documents using the insert command.
|
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) |
void |
killCursor(com.mongodb.MongoNamespace namespace,
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) |
<T> com.mongodb.connection.QueryResult<T> |
query(com.mongodb.MongoNamespace namespace,
org.bson.BsonDocument queryDocument,
org.bson.BsonDocument fields,
int skip,
int limit,
int batchSize,
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.bulk.UpdateRequest update) |
com.mongodb.WriteConcernResult |
update(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates)
Deprecated.
|
com.mongodb.bulk.BulkWriteResult |
updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
Boolean bypassDocumentValidation,
List<com.mongodb.bulk.UpdateRequest> updates)
Update the documents using the update command.
|
com.mongodb.bulk.BulkWriteResult |
updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates)
Update the documents using the update command.
|
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.bulk.InsertRequest insertRequest)
insert in interface com.mongodb.connection.Connectionpublic com.mongodb.WriteConcernResult update(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.bulk.UpdateRequest update)
update in interface com.mongodb.connection.Connectionpublic com.mongodb.WriteConcernResult delete(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.bulk.DeleteRequest deleteRequest)
delete 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)
@Deprecated public com.mongodb.WriteConcernResult update(com.mongodb.MongoNamespace namespace, boolean ordered, com.mongodb.WriteConcern writeConcern, List<com.mongodb.bulk.UpdateRequest> updates)
@Deprecated public com.mongodb.WriteConcernResult delete(com.mongodb.MongoNamespace namespace, boolean ordered, com.mongodb.WriteConcern writeConcern, List<com.mongodb.bulk.DeleteRequest> deletes)
public com.mongodb.bulk.BulkWriteResult insertCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.InsertRequest> inserts)
public com.mongodb.bulk.BulkWriteResult insertCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
Boolean bypassDocumentValidation,
List<com.mongodb.bulk.InsertRequest> inserts)
namespace - the namespaceordered - whether the writes are orderedwriteConcern - the write concernbypassDocumentValidation - the bypassDocumentValidation flaginserts - the insertspublic com.mongodb.bulk.BulkWriteResult updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.UpdateRequest> updates)
namespace - the namespaceordered - whether the writes are orderedwriteConcern - the write concernupdates - the updatespublic com.mongodb.bulk.BulkWriteResult updateCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
Boolean bypassDocumentValidation,
List<com.mongodb.bulk.UpdateRequest> updates)
namespace - the namespaceordered - whether the writes are orderedwriteConcern - the write concernbypassDocumentValidation - the bypassDocumentValidation flagupdates - the updatespublic com.mongodb.bulk.BulkWriteResult deleteCommand(com.mongodb.MongoNamespace namespace,
boolean ordered,
com.mongodb.WriteConcern writeConcern,
List<com.mongodb.bulk.DeleteRequest> deletes)
@Deprecated public <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> T command(String database, org.bson.BsonDocument command, org.bson.FieldNameValidator fieldNameValidator, com.mongodb.ReadPreference readPreference, org.bson.codecs.Decoder<T> commandResultDecoder, com.mongodb.session.SessionContext sessionContext)
command in interface com.mongodb.connection.Connectionpublic <T> T command(String database, org.bson.BsonDocument command, org.bson.FieldNameValidator commandFieldNameValidator, com.mongodb.ReadPreference readPreference, org.bson.codecs.Decoder<T> commandResultDecoder, com.mongodb.session.SessionContext sessionContext, boolean responseExpected, com.mongodb.connection.SplittablePayload payload, org.bson.FieldNameValidator payloadFieldNameValidator)
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> query(com.mongodb.MongoNamespace namespace,
org.bson.BsonDocument queryDocument,
org.bson.BsonDocument fields,
int skip,
int limit,
int batchSize,
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 void killCursor(com.mongodb.MongoNamespace namespace,
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 © 2018. All rights reserved.