Uses of Class
com.kingsrook.qqq.backend.module.mongodb.model.metadata.MongoDBBackendMetaData
Packages that use MongoDBBackendMetaData
Package
Description
-
Uses of MongoDBBackendMetaData in com.kingsrook.qqq.backend.module.mongodb.actions
Methods in com.kingsrook.qqq.backend.module.mongodb.actions with parameters of type MongoDBBackendMetaDataModifier and TypeMethodDescriptionprotected org.bson.DocumentAbstractMongoDBAction.buildAddFieldsDocument(QTableMetaData table, MongoDBBackendMetaData backend, QQueryFilter filter) Build an $addFields document for virtual fields on a table.protected List<org.bson.conversions.Bson> AbstractMongoDBAction.makeFilterPipeline(QTableMetaData table, MongoDBBackendMetaData backend, QQueryFilter filter) Keep computed predicates separate from stored fields, including READ locks.protected List<org.bson.conversions.Bson> AbstractMongoDBAction.makeFilterPipeline(QTableMetaData table, MongoDBBackendMetaData backend, QQueryFilter filter, MongoClientContainer client) Public keys encode ObjectIds as Strings.AbstractMongoDBAction.openClient(MongoDBBackendMetaData backend, QBackendTransaction transaction) Open a MongoDB Client / session -- re-using the one in the input transaction if it is present.protected MongoDBFieldFunctionAdapterInterfaceAbstractMongoDBAction.requireFieldFunctionAdapter(MongoDBBackendMetaData backend, FieldFunction fieldFunction) Native computation requires both a function and its MongoDB adapter.Constructors in com.kingsrook.qqq.backend.module.mongodb.actions with parameters of type MongoDBBackendMetaDataModifierConstructorDescriptionMongoDBConsistentReadTransaction(MongoDBBackendMetaData backend, com.mongodb.client.MongoClient mongoClient, com.mongodb.client.ClientSession clientSession, ConsistencyGuarantee consistencyGuarantee) ConstructorMongoDBTransaction(MongoDBBackendMetaData backend, com.mongodb.client.MongoClient mongoClient) MongoDBTransaction(MongoDBBackendMetaData backend, com.mongodb.client.MongoClient mongoClient, com.mongodb.client.ClientSession clientSession) Adopt the client and its already-open session as one transaction owner.protectedMongoDBTransaction(MongoDBBackendMetaData backend, com.mongodb.client.MongoClient mongoClient, com.mongodb.client.ClientSession clientSession, boolean allowTransactions) As above - but with allowTransactions false, no mongo transaction is started (e.g., for a snapshot-read-concern session, which can't have one), whatever the backend's transactionsSupported says. -
Uses of MongoDBBackendMetaData in com.kingsrook.qqq.backend.module.mongodb.model.metadata
Methods in com.kingsrook.qqq.backend.module.mongodb.model.metadata that return MongoDBBackendMetaDataModifier and TypeMethodDescriptionMongoDBBackendMetaData.withAuthSourceDatabase(String authSourceDatabase) Fluent setter for authSourceDatabaseMongoDBBackendMetaData.withDatabaseName(String databaseName) Fluent setter for databaseNameFluent Setter for hostFluent setter, override to help fluent flowsMongoDBBackendMetaData.withPassword(String password) Fluent Setter for passwordFluent Setter for portMongoDBBackendMetaData.withTransactionsSupported(boolean transactionsSupported) Fluent setter for transactionsSupportedMongoDBBackendMetaData.withUrlSuffix(String urlSuffix) Fluent setter for urlSuffixMongoDBBackendMetaData.withUsername(String username) Fluent Setter for username