Class MongoOpsBookDAO
java.lang.Object
info.ejava.examples.db.mongo.books.dao.MongoOpsBookDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.data.mongodb.core.MongoTemplateprivate final SecureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Bookbook(int offset) books(int offset, int limit) longcount()longlonglongdeleteById(String id) booleanexistsById(String id) find(org.springframework.data.domain.Pageable pageable) findByAuthorGESize(int length) findByTitleGESizeAsString(int length) random()longupdateTitle(String id, String newTitle)
-
Field Details
-
mongoTemplate
private final org.springframework.data.mongodb.core.MongoTemplate mongoTemplate -
random
-
-
Constructor Details
-
MongoOpsBookDAO
public MongoOpsBookDAO()
-
-
Method Details
-
create
-
existsById
-
findById
-
update
-
updateTitle
-
delete
-
deleteById
-
deleteAll
public long deleteAll() -
count
public long count() -
books
-
book
-
random
-
findByTitleGESizeAsString
-
findByAuthorGESize
-
find
-
find
-