@groovy.transform.AutoClone @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.CompileStatic abstract class AbstractMongoConnectionSourceSettings extends ConnectionSourceSettings implements MongoSettings
| Modifiers | Name | Description |
|---|---|---|
protected ConnectionString |
connectionString |
The connection string |
| Type | Name and description |
|---|---|
boolean |
buildIndexesWhether GORM creates and reconciles the indexes declared in domain class mapping blocks by itself when the datastore starts. |
boolean |
buildIndexesAsyncWhether index builds run on a background thread instead of blocking the thread that starts them: the startup build, and any started with MongoDatastore.buildIndex(), whatever
buildIndexes says. |
CodecRegistry |
codecRegistryAn additional codec registry |
java.util.List<java.lang.Class<? extends Codec>> |
codecsCustom MongoDB codecs |
java.lang.String |
connectionsCollectionThe collection name to use to resolve connections when using MongoConnectionSources |
java.lang.String |
databaseNameThe default database name |
boolean |
decimalTypeWhether to use the decimal128 type for BigDecimal values |
java.lang.String |
engineThe engine to use by default |
java.lang.String |
hostThe host name to use |
java.lang.String |
passwordThe password to use |
java.lang.Integer |
portThe port to use |
boolean |
statelessWhether to use stateless mode by default |
StringIdSettings |
stringIdsNested settings for domains with String id. |
boolean |
transactionalWhether GORM should use real MongoDB multi-document transactions (a server-side ClientSession) for transactional operations. |
java.lang.String |
usernameThe username to use |
| Properties inherited from class | Properties |
|---|---|
class ConnectionSourceSettings |
autoFlush, autowire, cacheAutoTimestampAnnotations, connectionSourcesClass, custom, default, defaultIdType, defaults, failOnError, failOnErrorPackages, flushMode, markDirty, multiTenancy |
| Constructor and description |
|---|
AbstractMongoConnectionSourceSettings() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getDatabase()
|
|
ConnectionString |
getUrl()
|
|
void |
url(ConnectionString connectionString)
|
| Methods inherited from class | Name |
|---|---|
class ConnectionSourceSettings |
getDefault, setDefault |
The connection string
Whether GORM creates and reconciles the indexes declared in domain class mapping blocks by
itself when the datastore starts. When false the indexes on the server are left exactly
as they are and GORM issues no createIndex or collMod command of its own until
the application calls MongoDatastore.buildIndex(); queries are unaffected and continue to
use whatever indexes already exist. Bound from grails.mongodb.buildIndexes.
Whether index builds run on a background thread instead of blocking the thread that starts them:
the startup build, and any started with MongoDatastore.buildIndex(), whatever
buildIndexes says. MongoDB answers a createIndex command only once the index has
been built, so with the default false an application waits at startup for every declared
index. Bound from grails.mongodb.buildIndexesAsync.
An additional codec registry
Custom MongoDB codecs
The collection name to use to resolve connections when using MongoConnectionSources
The default database name
Whether to use the decimal128 type for BigDecimal values
The engine to use by default
The host name to use
The password to use
The port to use
Whether to use stateless mode by default
Nested settings for domains with String id. Holds the global default
defaultStoredAs switch plus any future string-id configuration.
Exposes the property path grails.mongodb.stringIds.defaultStoredAs,
aligned with the Spring-style hierarchical namespace convention.
Whether GORM should use real MongoDB multi-document transactions (a server-side
ClientSession) for transactional operations. Requires a replica set or sharded
cluster. When false (the default) a GORM transaction remains a client-side flush
boundary, preserving the historical behavior. Bound from grails.mongodb.transactional.
The username to use
connectionString - The connection string