Exemplo n.º 1
0
 public <T> UpdateResults<T> updateFirst(
     Query<T> query, UpdateOperations<T> ops, boolean createIfMissing) {
   return update(query, ops, createIfMissing, getWriteConcern(query.getEntityClass()));
 }
Exemplo n.º 2
0
 @SuppressWarnings("rawtypes")
 private <T> UpdateResults<T> update(
     Query<T> query, UpdateOperations ops, boolean createIfMissing, boolean multi) {
   return update(query, ops, createIfMissing, multi, getWriteConcern(query.getEntityClass()));
 }
Exemplo n.º 3
0
 public <T> WriteResult delete(Query<T> query) {
   return delete(query, getWriteConcern(query.getEntityClass()));
 }