| Modifier and Type | Class and Description |
|---|---|
class |
DuplicateKeyException
Mongo exception thrown when a document can't be inserted because there's already a document with the same key.
|
| Modifier and Type | Method and Description |
|---|---|
long |
CrudRepository.count()
Returns the number of all documents in the collection.
|
long |
AbstractJongoRepository.count() |
long |
CrudRepository.count(String query)
Returns the number of documents that match the query
|
long |
AbstractJongoRepository.count(String query) |
long |
CrudRepository.count(String query,
Object... queryParams)
Returns the number of documents that match the query
|
long |
AbstractJongoRepository.count(String query,
Object... queryParams) |
void |
UpdateHelper.executeUpdate(String id,
CrudRepository<?> repository) |
Iterable<T> |
CrudRepository.find(String query)
Search all documents in the given collection that match the query.
|
Iterable<T> |
AbstractJongoRepository.find(String query) |
Iterable<T> |
CrudRepository.find(String query,
Object... queryParams)
Finds all documents of the given collection that match the template query
ยงยง |
Iterable<T> |
AbstractJongoRepository.find(String query,
Object... queryParams) |
Iterable<T> |
CrudRepository.findAll()
Gets all documents of a the given collection.
|
Iterable<T> |
AbstractJongoRepository.findAll() |
T |
CrudRepository.findById(String id)
Finds by the Id.
|
T |
AbstractJongoRepository.findById(String id) |
T |
CrudRepository.findByStringId(String id)
Finds by the Id.
|
T |
AbstractJongoRepository.findByStringId(String id) |
T |
CrudRepository.findOne(String query)
Search for documents of the given collection that match the query.
In only return the first Document |
T |
AbstractJongoRepository.findOne(String query) |
T |
CrudRepository.findOne(String query,
Object... queryParams)
Search for documents of the given collection that match the query.
In only return the first Document |
T |
AbstractJongoRepository.findOne(String query,
Object... queryParams) |
void |
CrudRepository.insert(T... documents)
Inserts multiple documents into the collection.
|
void |
AbstractJongoRepository.insert(T... documents) |
void |
CrudRepository.insert(T document)
Inserts the document into the collection.
|
void |
AbstractJongoRepository.insert(T document) |
void |
CrudRepository.remove(String query)
Removes all Documents that are found using the given query.
|
void |
AbstractJongoRepository.remove(String query) |
void |
CrudRepository.remove(String query,
Object... queryParams)
Removes all Documents that are found using the given query.
|
void |
AbstractJongoRepository.remove(String query,
Object... queryParams) |
void |
CrudRepository.removeById(String id)
Removes a Document with the given id
|
void |
AbstractJongoRepository.removeById(String id) |
void |
CrudRepository.removeByStringId(String id)
Removes by the Id.
|
void |
AbstractJongoRepository.removeByStringId(String id) |
void |
CrudRepository.save(String query,
Object... queryParams)
Inserts in the given collection the json "As Is"
Json String can contain placeholders this will allow the user to have predefine json strings that will be substitute with the given queryParams.Params are not Name therefor if the same value is needed multiple times for now it has to be send multiple times.Order of the queryParams should match the same in the json string. Example
String Json ="{name:#,address: #,age:#}" |
void |
AbstractJongoRepository.save(String query,
Object... queryParams) |
void |
CrudRepository.save(T document)
Saves the document into the collection.
|
void |
AbstractJongoRepository.save(T document) |
FileInfo |
CrudRepository.saveFile(InputStream inputStream,
String storeName,
String contentType)
Saves the given InputStream as with the given name.
|
FileInfo |
AbstractJongoRepository.saveFile(InputStream inputStream,
String storeName,
String contentType) |
FileInfo |
CrudRepository.saveFile(InputStream inputStream,
String storeName,
String contentType,
org.bson.types.ObjectId fileId)
Saves the given InputStream as with the given name.
|
FileInfo |
AbstractJongoRepository.saveFile(InputStream inputStream,
String storeName,
String contentType,
org.bson.types.ObjectId fileId) |
void |
CrudRepository.update(String id,
Object updateObject)
Updates the object with the given id with the given Object information.
|
void |
AbstractJongoRepository.update(String id,
Object updateObject) |
void |
CrudRepository.update(String id,
Object updateObject,
boolean multi,
boolean upsert)
Updates the object with the given id with the given Object information.
|
void |
AbstractJongoRepository.update(String id,
Object updateObject,
boolean multi,
boolean upsert) |
void |
CrudRepository.update(String id,
String modifier,
boolean multi,
boolean upsert)
Updates the given
|
void |
AbstractJongoRepository.update(String id,
String modifier,
boolean multi,
boolean upsert) |
void |
CrudRepository.update(String id,
String modifier,
boolean multi,
boolean upsert,
Object... params)
Updates the given
|
void |
AbstractJongoRepository.update(String id,
String modifier,
boolean multi,
boolean upsert,
Object... params) |
FileInfo |
CrudRepository.updateFile(InputStream inputStream,
String storeName,
String contentType)
"Updates" the file with the new information (A name change is NOT valid )
|
FileInfo |
AbstractJongoRepository.updateFile(InputStream inputStream,
String storeName,
String contentType) |
FileInfo |
CrudRepository.updateFile(org.bson.types.ObjectId fileId,
InputStream inputStream,
String storeName,
String contentType)
"Updates" the file with the new information (A name change is valid as long a file with new name does not
exists)
|
FileInfo |
AbstractJongoRepository.updateFile(org.bson.types.ObjectId fileId,
InputStream inputStream,
String storeName,
String contentType) |
FileInfo |
CrudRepository.updateFile(org.bson.types.ObjectId fileId,
InputStream inputStream,
String storeName,
String contentType,
boolean sameFileId)
"Updates" the file with the new information (A name change is valid as long a file with new name does not
exists)
|
FileInfo |
AbstractJongoRepository.updateFile(org.bson.types.ObjectId fileId,
InputStream inputStream,
String storeName,
String contentType,
boolean sameFileId) |
Copyright © 2020 CrafterCMS. All rights reserved.