renamed package from builder to query
This commit is contained in:
@@ -18,8 +18,8 @@ package org.springframework.data.document.mongodb;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.data.document.mongodb.builder.QueryDefinition;
|
||||
import org.springframework.data.document.mongodb.builder.UpdateDefinition;
|
||||
import org.springframework.data.document.mongodb.query.QueryDefinition;
|
||||
import org.springframework.data.document.mongodb.query.UpdateDefinition;
|
||||
|
||||
import com.mongodb.CommandResult;
|
||||
import com.mongodb.DBCollection;
|
||||
|
||||
@@ -30,8 +30,8 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.dao.DataIntegrityViolationException;
|
||||
import org.springframework.data.document.mongodb.MongoPropertyDescriptors.MongoPropertyDescriptor;
|
||||
import org.springframework.data.document.mongodb.builder.QueryDefinition;
|
||||
import org.springframework.data.document.mongodb.builder.UpdateDefinition;
|
||||
import org.springframework.data.document.mongodb.query.QueryDefinition;
|
||||
import org.springframework.data.document.mongodb.query.UpdateDefinition;
|
||||
import org.springframework.jca.cci.core.ConnectionCallback;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.util.JSON;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.util.JSON;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import com.mongodb.DBObject;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import org.bson.types.BasicBSONList;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import com.mongodb.DBObject;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.builder;
|
||||
package org.springframework.data.document.mongodb.query;
|
||||
|
||||
import com.mongodb.DBObject;
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
|
||||
import org.springframework.data.document.mongodb.CollectionCallback;
|
||||
import org.springframework.data.document.mongodb.MongoTemplate;
|
||||
import org.springframework.data.document.mongodb.builder.Query;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.repository.query.QueryMethod;
|
||||
|
||||
@@ -21,9 +21,9 @@ import java.util.regex.Pattern;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.data.document.mongodb.MongoConverter;
|
||||
import org.springframework.data.document.mongodb.builder.Criteria;
|
||||
import org.springframework.data.document.mongodb.builder.CriteriaDefinition;
|
||||
import org.springframework.data.document.mongodb.builder.Query;
|
||||
import org.springframework.data.document.mongodb.query.Criteria;
|
||||
import org.springframework.data.document.mongodb.query.CriteriaDefinition;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.repository.query.SimpleParameterAccessor;
|
||||
import org.springframework.data.repository.query.SimpleParameterAccessor.BindableParameterIterator;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.data.document.mongodb.repository;
|
||||
|
||||
import org.springframework.data.document.mongodb.builder.Query;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.domain.Sort.Order;
|
||||
@@ -71,14 +71,14 @@ abstract class QueryUtils {
|
||||
return query;
|
||||
}
|
||||
|
||||
org.springframework.data.document.mongodb.builder.Sort bSort =
|
||||
org.springframework.data.document.mongodb.query.Sort bSort =
|
||||
query.sort();
|
||||
|
||||
for (Order order : sort) {
|
||||
bSort.on(
|
||||
order.getProperty(),
|
||||
order.isAscending() ? org.springframework.data.document.mongodb.builder.Sort.Order.ASCENDING
|
||||
: org.springframework.data.document.mongodb.builder.Sort.Order.DESCENDING);
|
||||
order.isAscending() ? org.springframework.data.document.mongodb.query.Sort.Order.ASCENDING
|
||||
: org.springframework.data.document.mongodb.query.Sort.Order.DESCENDING);
|
||||
}
|
||||
|
||||
return query;
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
import org.bson.types.ObjectId;
|
||||
import org.springframework.data.document.mongodb.MongoConverter;
|
||||
import org.springframework.data.document.mongodb.MongoTemplate;
|
||||
import org.springframework.data.document.mongodb.builder.Query;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
@@ -29,8 +29,8 @@ import org.junit.rules.ExpectedException;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.dao.DataIntegrityViolationException;
|
||||
import org.springframework.data.document.mongodb.builder.Query;
|
||||
import org.springframework.data.document.mongodb.builder.Update;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
import org.springframework.data.document.mongodb.query.Update;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.springframework.data.document.analytics.MvcEvent;
|
||||
import org.springframework.data.document.analytics.Parameters;
|
||||
import org.springframework.data.document.mongodb.MongoReader;
|
||||
import org.springframework.data.document.mongodb.MongoTemplate;
|
||||
import org.springframework.data.document.mongodb.builder.BasicQuery;
|
||||
import org.springframework.data.document.mongodb.query.BasicQuery;
|
||||
|
||||
import com.mongodb.BasicDBList;
|
||||
import com.mongodb.BasicDBObject;
|
||||
|
||||
@@ -17,6 +17,8 @@ package org.springframework.data.document.mongodb.builder;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.springframework.data.document.mongodb.query.BasicQuery;
|
||||
import org.springframework.data.document.mongodb.query.Query;
|
||||
|
||||
public class QueryTests {
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@ package org.springframework.data.document.mongodb.builder;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.springframework.data.document.mongodb.builder.Sort.Order;
|
||||
import org.springframework.data.document.mongodb.query.Sort;
|
||||
import org.springframework.data.document.mongodb.query.Sort.Order;
|
||||
|
||||
public class SortTests {
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ import java.util.Map;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.springframework.data.document.mongodb.builder.Sort.Order;
|
||||
import org.springframework.data.document.mongodb.builder.Update;
|
||||
import org.springframework.data.document.mongodb.query.Update;
|
||||
import org.springframework.data.document.mongodb.query.Sort.Order;
|
||||
|
||||
public class UpdateTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user