Class MongoOpsBookDAO
java.lang.Object
info.ejava.examples.db.mongo.books.dao.MongoOpsBookDAO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.data.mongodb.core.MongoTemplate
private final SecureRandom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Book
book
(int offset) books
(int offset, int limit) long
count()
long
long
long
deleteById
(String id) boolean
existsById
(String id) find
(org.springframework.data.domain.Pageable pageable) findByAuthorGESize
(int length) findByTitleGESizeAsString
(int length) random()
long
updateTitle
(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
-