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 |
| Type | Name and description |
|---|---|
java.util.List<java.util.Map> |
getCompoundIndices()Return all defined compound indices |
java.lang.String |
getDatabase()The database to use |
java.util.List<Index> |
getIndices() |
Order |
getSort() |
com.mongodb.WriteConcern |
getWriteConcern()@return The com.mongodb.WriteConcern for the collection |
void |
index(java.util.Map<java.lang.String, java.lang.Object> definition) |
void |
index(java.util.Map<java.lang.String, java.lang.Object> definition, java.util.Map<java.lang.String, java.lang.Object> options) |
void |
setCompoundIndex(java.util.Map compoundIndex)Sets a compound index definition |
void |
setDatabase(java.lang.String database)The name of the database to use |
void |
setSort(java.lang.Object s) |
void |
setWriteConcern(com.mongodb.WriteConcern writeConcern)The com.mongodb.WriteConcern for the collection |
| Methods inherited from class | Name |
|---|---|
class Collection |
getCollection, setCollection |
class Entity |
getSort, isAutoTimestamp, isAutowire, isStateless, isVersioned, setAutoTimestamp, setAutowire, setSort, setStateless, setVersion |
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() |
Return all defined compound indices
The database to use
Sets a compound index definition
compoundIndex - The compount indexThe name of the database to use
database - The databaseThe com.mongodb.WriteConcern for the collection