DATADOC-11 - Move org.springframework.datastore.document.mongodb.query to a different branch
Just remove methods in MongoTemplate that referred to this package.
This commit is contained in:
@@ -276,18 +276,6 @@ public class MongoTemplate implements InitializingBean {
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public <T> List<T> queryForList(String collectionName, Query query, Class<T> targetClass) {
|
|
||||||
return queryForList(collectionName, query.getQueryObject(), targetClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
public <T> List<T> queryForList(String collectionName, Query query, Class<T> targetClass, MongoReader<T> reader) {
|
|
||||||
return queryForList(collectionName, query.getQueryObject(), targetClass, reader);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public <T> List<T> queryForList(String collectionName, String query, Class<T> targetClass) {
|
public <T> List<T> queryForList(String collectionName, String query, Class<T> targetClass) {
|
||||||
return queryForList(collectionName, (DBObject)JSON.parse(query), targetClass);
|
return queryForList(collectionName, (DBObject)JSON.parse(query), targetClass);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user