Java org.springframework.data.mongodb.core MongoTemplate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.mongodb.core MongoTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.mongodb.core MongoTemplate.

The text is from its open source code.

Subclass

org.springframework.data.mongodb.core.MongoTemplate has subclasses.
Click this link to see all its subclasses.

Constructor

Method

booleancollectionExists(Class entityClass)
booleancollectionExists(final String collectionName)
longcount(Query query, Class entityClass)
longcount(final Query query, String collectionName)
MongoCollectioncreateCollection(Class entityClass)
MongoCollectioncreateCollection(final String collectionName)
voiddropCollection(Class entityClass)
voiddropCollection(String collectionName)
Texecute(DbCallback action)
Listfind(Query query, Class entityClass, String collectionName)
ListfindAll(Class entityClass, String collectionName)
ListfindAllAndRemove(Query query, String collectionName)
ListfindAllAndRemove(Query query, Class entityClass)
TfindById(Object id, Class entityClass)
TfindById(Object id, Class entityClass, String collectionName)
TfindOne(Query query, Class entityClass)
MongoCollectiongetCollection(final String collectionName)
StringgetCollectionName(Class entityClass)
MongoConvertergetConverter()
Returns the default org.springframework.data.mongodb.core.convert.MongoConverter .
MongoDatabasegetDb()
IndexOperationsindexOps(String collectionName)
IndexOperationsindexOps(Class entityClass)
Tinsert(T objectToSave)
ExecutableInsertinsert(Class domainType)
Tsave(T objectToSave)
Tsave(T objectToSave, String collectionName)
voidsetReadPreference(@Nullable ReadPreference readPreference)
Used by @{link #prepareCollection(MongoCollection) to set the ReadPreference before any operations are performed.
voidsetWriteConcern(@Nullable WriteConcern writeConcern)
Configures the WriteConcern to be used with the template.
voidsetWriteResultChecking(@Nullable WriteResultChecking resultChecking)
Configures the WriteResultChecking to be used with the template.