Renamed packages etc.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>spring-datastore-mongodb</name>
|
<name>spring-data-mongodb</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project-modules id="moduleCoreId" project-version="1.5.0">
|
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
<wb-module deploy-name="spring-datastore-mongodb">
|
<wb-module deploy-name="spring-data-mongodb">
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
</project-modules>
|
</project-modules>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.springframework.dao.DataAccessResourceFailureException;
|
import org.springframework.dao.DataAccessResourceFailureException;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.springframework.dao.DataAccessException;
|
import org.springframework.dao.DataAccessException;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public class CollectionOptions {
|
public class CollectionOptions {
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.springframework.dao.DataAccessException;
|
import org.springframework.dao.DataAccessException;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
|
|
||||||
public interface MongoConverter extends MongoWriter<Object>, MongoReader<Object> {
|
public interface MongoConverter extends MongoWriter<Object>, MongoReader<Object> {
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.springframework.datastore.document.DocumentSource;
|
import org.springframework.datastore.document.DocumentSource;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public interface MongoDocumentWriter {
|
public interface MongoDocumentWriter {
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public interface MongoReaderWriter<T> extends MongoWriter<T>, MongoReader<T> {
|
public interface MongoReaderWriter<T> extends MongoWriter<T>, MongoReader<T> {
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import org.springframework.transaction.support.ResourceHolder;
|
import org.springframework.transaction.support.ResourceHolder;
|
||||||
import org.springframework.transaction.support.ResourceHolderSynchronization;
|
import org.springframework.transaction.support.ResourceHolderSynchronization;
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -23,8 +23,8 @@ import java.util.List;
|
|||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.dao.DataRetrievalFailureException;
|
import org.springframework.dao.DataRetrievalFailureException;
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
|
import org.springframework.data.document.mongodb.query.Query;
|
||||||
import org.springframework.datastore.document.AbstractDocumentStoreTemplate;
|
import org.springframework.datastore.document.AbstractDocumentStoreTemplate;
|
||||||
import org.springframework.datastore.document.mongodb.query.Query;
|
|
||||||
|
|
||||||
import com.mongodb.BasicDBObject;
|
import com.mongodb.BasicDBObject;
|
||||||
import com.mongodb.CommandResult;
|
import com.mongodb.CommandResult;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import java.beans.PropertyDescriptor;
|
import java.beans.PropertyDescriptor;
|
||||||
import java.lang.reflect.Array;
|
import java.lang.reflect.Array;
|
||||||
@@ -14,15 +14,15 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb.bean.factory;
|
||||||
|
|
||||||
import org.springframework.beans.factory.FactoryBean;
|
import org.springframework.beans.factory.FactoryBean;
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.dao.DataAccessException;
|
import org.springframework.dao.DataAccessException;
|
||||||
import org.springframework.dao.support.PersistenceExceptionTranslator;
|
import org.springframework.dao.support.PersistenceExceptionTranslator;
|
||||||
|
import org.springframework.data.document.mongodb.MongoDbUtils;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
import com.mongodb.DB;
|
|
||||||
import com.mongodb.Mongo;
|
import com.mongodb.Mongo;
|
||||||
import com.mongodb.MongoOptions;
|
import com.mongodb.MongoOptions;
|
||||||
|
|
||||||
@@ -40,6 +40,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
|
public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
|
||||||
PersistenceExceptionTranslator {
|
PersistenceExceptionTranslator {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logger, available to subclasses.
|
* Logger, available to subclasses.
|
||||||
*/
|
*/
|
||||||
@@ -49,8 +50,6 @@ public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
|
|||||||
private MongoOptions mongoOptions;
|
private MongoOptions mongoOptions;
|
||||||
private String host;
|
private String host;
|
||||||
private Integer port;
|
private Integer port;
|
||||||
private String databaseName;
|
|
||||||
|
|
||||||
|
|
||||||
public void setMongo(Mongo mongo) {
|
public void setMongo(Mongo mongo) {
|
||||||
this.mongo = mongo;
|
this.mongo = mongo;
|
||||||
@@ -60,10 +59,6 @@ public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
|
|||||||
this.mongoOptions = mongoOptions;
|
this.mongoOptions = mongoOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDatabaseName(String databaseName) {
|
|
||||||
this.databaseName = databaseName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHost(String host) {
|
public void setHost(String host) {
|
||||||
this.host = host;
|
this.host = host;
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
import com.mongodb.util.JSON;
|
import com.mongodb.util.JSON;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
|
|
||||||
public class FieldSpecification {
|
public class FieldSpecification {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import org.bson.types.BasicBSONList;
|
import org.bson.types.BasicBSONList;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
|
|
||||||
public class SliceSpecification {
|
public class SliceSpecification {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb.query;
|
package org.springframework.data.document.mongodb.query;
|
||||||
|
|
||||||
|
|
||||||
public class SortSpecification {
|
public class SortSpecification {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public class Person {
|
public class Person {
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
import java.lang.reflect.Array;
|
import java.lang.reflect.Array;
|
||||||
import java.lang.reflect.GenericArrayType;
|
import java.lang.reflect.GenericArrayType;
|
||||||
@@ -28,6 +28,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.springframework.data.document.mongodb.SimpleMongoConverter;
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
|
|
||||||
import com.mongodb.BasicDBObject;
|
import com.mongodb.BasicDBObject;
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public class Trade {
|
public class Trade {
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.springframework.datastore.document.mongodb;
|
package org.springframework.data.document.mongodb;
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package org.springframework.datastore.document.mongodb.analytics;
|
package org.springframework.data.document.mongodb.analytics;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -11,11 +11,11 @@ import org.junit.Assert;
|
|||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.springframework.data.document.mongodb.MongoReader;
|
||||||
|
import org.springframework.data.document.mongodb.MongoTemplate;
|
||||||
import org.springframework.datastore.document.analytics.ControllerCounter;
|
import org.springframework.datastore.document.analytics.ControllerCounter;
|
||||||
import org.springframework.datastore.document.analytics.MvcEvent;
|
import org.springframework.datastore.document.analytics.MvcEvent;
|
||||||
import org.springframework.datastore.document.analytics.Parameters;
|
import org.springframework.datastore.document.analytics.Parameters;
|
||||||
import org.springframework.datastore.document.mongodb.MongoReader;
|
|
||||||
import org.springframework.datastore.document.mongodb.MongoTemplate;
|
|
||||||
|
|
||||||
import com.mongodb.BasicDBList;
|
import com.mongodb.BasicDBList;
|
||||||
import com.mongodb.BasicDBObject;
|
import com.mongodb.BasicDBObject;
|
||||||
Reference in New Issue
Block a user