Class MongoOperations<QueryType,UpdateType>
java.lang.Object
io.quarkus.mongodb.panache.common.runtime.MongoOperations<QueryType,UpdateType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindFilter(Class<?> clazz, String query, Object[] params) We should have a query like{'firstname': ?We should have a query like{'firstname': :firstname, 'lastname': :lastname}for native one and likefirstname = :firstname and lastname = :lastnamefor PanacheQL one.(package private) StringbindUpdate(Class<?> clazz, String query, Object[] params) We should have a query like{'firstname': ?(package private) StringWe should have a query like{'firstname': :firstname, 'lastname': :lastname}for native one and likefirstname = :firstname and lastname = :lastnamefor PanacheQL one.longlonglonglonglongprotected abstract QueryTypecreateQuery(com.mongodb.client.MongoCollection<?> collection, com.mongodb.client.ClientSession session, org.bson.conversions.Bson query, org.bson.conversions.Bson sortDoc) protected abstract UpdateTypecreateUpdate(com.mongodb.client.MongoCollection collection, Class<?> entityClass, org.bson.conversions.Bson docUpdate) longlonglonglongvoidlongbooleandeleteById(Class<?> entityClass, Object id) find(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) find(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, Map<String, Object> params) findByIdOptional(Class<?> entityClass, Object id) <Entity,ID>
List<Entity> com.mongodb.client.ClientSessioncom.mongodb.client.ClientSessiongetSession(Class<?> entityClass) (package private) com.mongodb.client.ClientSessiongetSession(Object entity) List<?> List<?> list(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) List<?> List<?> list(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, Map<String, Object> params) List<?> List<?> List<?> List<?> protected abstract List<?> List<?> List<?> com.mongodb.client.MongoCollectionmongoCollection(Class<?> entityClass) com.mongodb.client.MongoDatabasemongoDatabase(Class<?> entityClass) voidvoidvoidvoidvoidpersistOrUpdate(Iterable<?> entities) voidpersistOrUpdate(Object entity) voidpersistOrUpdate(Object firstEntity, Object... entities) voidpersistOrUpdate(Stream<?> entities) Stream<?> Stream<?> stream(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) Stream<?> Stream<?> stream(Class<?> entityClass, String query, io.quarkus.panache.common.Sort sort, Map<String, Object> params) Stream<?> Stream<?> Stream<?> Stream<?> protected abstract Stream<?> Stream<?> Stream<?> voidvoidvoidvoid
-
Field Details
-
ID
- See Also:
-
SESSION_KEY
-
-
Constructor Details
-
MongoOperations
public MongoOperations()
-
-
Method Details
-
createQuery
protected abstract QueryType createQuery(com.mongodb.client.MongoCollection<?> collection, com.mongodb.client.ClientSession session, org.bson.conversions.Bson query, org.bson.conversions.Bson sortDoc) -
createUpdate
protected abstract UpdateType createUpdate(com.mongodb.client.MongoCollection collection, Class<?> entityClass, org.bson.conversions.Bson docUpdate) -
list
-
stream
-
persist
-
persist
-
persist
-
persist
-
update
-
update
-
update
-
update
-
persistOrUpdate
-
persistOrUpdate
-
persistOrUpdate
-
persistOrUpdate
-
delete
-
mongoCollection
-
mongoDatabase
-
getSession
-
getSession
-
getSession
public com.mongodb.client.ClientSession getSession() -
findById
-
findByIdOptional
-
findByIds
-
find
-
find
-
bindFilter
We should have a query like{'firstname': ?1, 'lastname': ?2}for native one and likefirstname = ?1for PanacheQL one. -
bindFilter
We should have a query like{'firstname': :firstname, 'lastname': :lastname}for native one and likefirstname = :firstname and lastname = :lastnamefor PanacheQL one. -
bindUpdate
We should have a query like{'firstname': ?1, 'lastname': ?2}for native one and likefirstname = ?1 and lastname = ?2for PanacheQL one. As update document needs an update operator, we add$setif none is provided. -
bindUpdate
We should have a query like{'firstname': :firstname, 'lastname': :lastname}for native one and likefirstname = :firstname and lastname = :lastnamefor PanacheQL one. As update document needs an update operator, we add$setif none is provided. -
find
-
find
-
find
-
find
-
find
-
find
-
find
-
list
-
list
-
list
-
list
-
list
-
list
-
list
-
list
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
findAll
-
findAll
-
listAll
-
listAll
-
streamAll
-
streamAll
-
count
-
count
-
count
-
count
-
count
-
deleteAll
-
deleteById
-
delete
-
delete
-
delete
-
delete
-
update
-
update
public UpdateType update(Class<?> entityClass, String update, io.quarkus.panache.common.Parameters params) -
update
-
update
-
implementationInjectionMissing
-