Provides configuration options for mapping Mongo DBCollection instances
| Modifiers | Name | Description |
|---|---|---|
static class |
MongoCollection.Index |
Definition of an index |
| Fields inherited from class | Fields |
|---|---|
class Entity |
ALL_DATA_SOURCES, DEFAULT_DATA_SOURCE, propertyConfigs |
| Type | Name and description |
|---|---|
java.lang.String |
databaseThe database to use |
com.mongodb.WriteConcern |
writeConcern@return The com.mongodb.WriteConcern for the collection |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MongoCollection |
compoundIndex(java.util.Map compoundIndex)Sets a compound index definition |
|
java.util.List<java.util.Map> |
getCompoundIndices()Return all defined compound indices |
|
java.util.List<Index> |
getIndices() |
|
Order |
getSort() |
|
Entity<Attribute> |
id(groovy.lang.Closure identityConfig) |
|
void |
index(java.util.Map<java.lang.String, java.lang.Object> definition)Defines an index |
|
void |
index(java.util.Map<java.lang.String, java.lang.Object> definition, java.util.Map<java.lang.String, java.lang.Object> options)Defines an index |
|
protected MongoAttribute |
newProperty() |
|
Entity |
property(java.lang.String name, groovy.lang.Closure propertyConfig) |
|
MongoAttribute |
property(groovy.lang.Closure propertyConfig) |
|
MongoAttribute |
property(java.util.Map propertyConfig) |
|
void |
setCompoundIndex(java.util.Map compoundIndex)Sets a compound index definition |
|
MongoCollection |
setSort(java.lang.Object s)Sets the default sorting |
|
MongoCollection |
sort(Order sort)Sets the default sorting |
|
MongoCollection |
sort(java.util.Map sort)Sets the default sorting |
|
Entity |
version(groovy.lang.Closure versionConfig) |
| Methods inherited from class | Name |
|---|---|
class Collection |
newProperty |
class Entity |
cloneGlobalConstraint, configureExisting, connection, connections, connections, datasource, getOrInitializePropertyConfig, getPropertyConfig, getPropertyConfigs, getSort, id, id, isVersioned, methodMissing, newProperty, property, property, property, property, propertyMissing, setSort, tenantId, version, version |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The database to use
Sets a compound index definition
compoundIndex - The compount indexReturn all defined compound indices
Defines an index
definition - The index definitionDefines an index
definition - The index definitionoptions - The index optionsSets a compound index definition
compoundIndex - The compount indexSets the default sorting
s - The sort objectSets the default sorting
s - The sort objectSets the default sorting
s - The sort object