Renamed packages etc.

This commit is contained in:
Graeme Rocher
2010-11-10 12:17:36 +01:00
parent 0a9d3973f9
commit 1a628d0648
34 changed files with 80 additions and 84 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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> {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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> {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
} }

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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;