@@ -1012,7 +1012,7 @@ public WriteResult doInCollection(DBCollection collection) throws MongoException
1012
1012
1013
1013
if (LOGGER .isDebugEnabled ()) {
1014
1014
LOGGER .debug (String .format ("Calling update using query: %s and update: %s in collection: %s" ,
1015
- serializeToJsonSafely (queryObj ), serializeToJsonSafely (updateObj ), collectionName ));
1015
+ serializeToJsonSafely (queryObj ), serializeToJsonSafely (updateObj ), collectionName ));
1016
1016
}
1017
1017
1018
1018
MongoAction mongoAction = new MongoAction (writeConcern , MongoActionOperation .UPDATE , collectionName ,
@@ -1189,8 +1189,8 @@ public WriteResult doInCollection(DBCollection collection) throws MongoException
1189
1189
WriteConcern writeConcernToUse = prepareWriteConcern (mongoAction );
1190
1190
1191
1191
if (LOGGER .isDebugEnabled ()) {
1192
- LOGGER .debug ("Remove using query: {} in collection: {}." ,
1193
- new Object [] { serializeToJsonSafely ( dboq ), collection .getName () });
1192
+ LOGGER .debug ("Remove using query: {} in collection: {}." , new Object [] { serializeToJsonSafely ( dboq ),
1193
+ collection .getName () });
1194
1194
}
1195
1195
1196
1196
WriteResult wr = writeConcernToUse == null ? collection .remove (dboq ) : collection .remove (dboq ,
@@ -1664,7 +1664,7 @@ protected <T> T doFindAndRemove(String collectionName, DBObject query, DBObject
1664
1664
EntityReader <? super T , DBObject > readerToUse = this .mongoConverter ;
1665
1665
if (LOGGER .isDebugEnabled ()) {
1666
1666
LOGGER .debug (String .format ("findAndRemove using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
1667
- serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
1667
+ serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
1668
1668
}
1669
1669
MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
1670
1670
return executeFindOneInternal (new FindAndRemoveCallback (queryMapper .getMappedObject (query , entity ), fields , sort ),
@@ -1688,9 +1688,9 @@ protected <T> T doFindAndModify(String collectionName, DBObject query, DBObject
1688
1688
DBObject mappedUpdate = updateMapper .getMappedObject (update .getUpdateObject (), entity );
1689
1689
1690
1690
if (LOGGER .isDebugEnabled ()) {
1691
- LOGGER .debug (String .format ("findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s " +
1692
- "in collection: %s" , serializeToJsonSafely (mappedQuery ), fields , sort , entityClass ,
1693
- serializeToJsonSafely (mappedUpdate ), collectionName ));
1691
+ LOGGER .debug (String .format ("findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s "
1692
+ + "in collection: %s" , serializeToJsonSafely (mappedQuery ), fields , sort , entityClass ,
1693
+ serializeToJsonSafely (mappedUpdate ), collectionName ));
1694
1694
}
1695
1695
1696
1696
return executeFindOneInternal (new FindAndModifyCallback (mappedQuery , fields , sort , mappedUpdate , options ),
@@ -1998,14 +1998,14 @@ public FindOneCallback(DBObject query, DBObject fields) {
1998
1998
public DBObject doInCollection (DBCollection collection ) throws MongoException , DataAccessException {
1999
1999
if (fields == null ) {
2000
2000
if (LOGGER .isDebugEnabled ()) {
2001
- LOGGER .debug (String .format ("findOne using query: %s in db.collection: %s" ,
2002
- serializeToJsonSafely ( query ), collection .getFullName ()));
2001
+ LOGGER .debug (String .format ("findOne using query: %s in db.collection: %s" , serializeToJsonSafely ( query ),
2002
+ collection .getFullName ()));
2003
2003
}
2004
2004
return collection .findOne (query );
2005
2005
} else {
2006
2006
if (LOGGER .isDebugEnabled ()) {
2007
2007
LOGGER .debug (String .format ("findOne using query: %s fields: %s in db.collection: %s" ,
2008
- serializeToJsonSafely (query ), fields , collection .getFullName ()));
2008
+ serializeToJsonSafely (query ), fields , collection .getFullName ()));
2009
2009
}
2010
2010
return collection .findOne (query , fields );
2011
2011
}
0 commit comments