Renamed packages from datastore to data

This commit is contained in:
Graeme Rocher
2010-11-10 12:43:07 +01:00
parent 243e13ec55
commit ede9c6ed8b
84 changed files with 120 additions and 90 deletions

28
pom.xml
View File

@@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-dist</artifactId>
<name>Spring Datastore Document Distribution</name>
<artifactId>spring-data-document-dist</artifactId>
<name>Spring Data Document Distribution</name>
<version>1.0.0.BUILD-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>spring-datastore-document-parent</module>
<module>spring-datastore-document-core</module>
<module>spring-datastore-mongodb</module>
<module>spring-datastore-couchdb</module>
<module>spring-data-document-parent</module>
<module>spring-data-document-core</module>
<module>spring-data-mongodb</module>
<module>spring-data-couchdb</module>
</modules>
<developers>
@@ -55,8 +55,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- dist.* properties are used by the antrun tasks below -->
<dist.id>spring-datastore-document</dist.id>
<dist.name>Spring Datastore Document</dist.name>
<dist.id>spring-data-document</dist.id>
<dist.name>Spring Data Document</dist.name>
<dist.key>DATADOC</dist.key>
<dist.version>${project.version}</dist.version>
<dist.releaseType>snapshot</dist.releaseType>
@@ -75,15 +75,15 @@
<distributionManagement>
<site>
<id>spring-site-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/docs/${project.version}</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/docs/${project.version}</url>
</site>
<repository>
<id>spring-milestone-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/milestone</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/milestone</url>
</repository>
<snapshotRepository>
<id>spring-snapshot-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/snapshot</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/snapshot</url>
</snapshotRepository>
</distributionManagement>
</profile>
@@ -93,7 +93,7 @@
<downloadUrl>http://www.springsource.com/download/community</downloadUrl>
<site>
<id>static.springframework.org</id>
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/datastore-document/docs/${project.version}</url>
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/data-document/docs/${project.version}</url>
</site>
<repository>
<id>spring-milestone</id>
@@ -172,7 +172,7 @@
</fileset>
</copy>
<move file="${project.basedir}/target/site/reference/pdf/index.pdf"
tofile="${project.basedir}/target/site/reference/pdf/spring-datastore-document-reference.pdf"
tofile="${project.basedir}/target/site/reference/pdf/spring-data-document-reference.pdf"
failonerror="false" />
</postProcess>
</configuration>
@@ -190,7 +190,7 @@
<configuration>
<javadoc:aggregate>true</javadoc:aggregate>
<breakiterator>true</breakiterator>
<header>Spring Datastore Document</header>
<header>Spring Data Document</header>
<source>1.5</source>
<quiet>true</quiet>
<javadocDirectory>${project.basedir}/src/main/javadoc</javadocDirectory>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>spring-datastore-couchdb</name>
<name>spring-data-couchdb</name>
<comment></comment>
<projects>
</projects>

View File

@@ -3,13 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-parent</artifactId>
<artifactId>spring-data-document-parent</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<relativePath>../spring-datastore-document-parent/pom.xml</relativePath>
<relativePath>../spring-data-document-parent/pom.xml</relativePath>
</parent>
<artifactId>spring-datastore-couchdb</artifactId>
<artifactId>spring-data-couchdb</artifactId>
<packaging>jar</packaging>
<name>Spring Datastore CouchDB Support</name>
<name>Spring Data CouchDB Support</name>
<dependencies>
<!-- Spring -->
@@ -25,7 +25,7 @@
<!-- Spring Data -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-core</artifactId>
<artifactId>spring-data-document-core</artifactId>
</dependency>
<!-- Logging -->

View File

@@ -1,4 +1,4 @@
package org.springframework.datastore.document.couchdb;
package org.springframework.data.document.couchdb;
import org.springframework.dao.DataAccessResourceFailureException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document.couchdb;
package org.springframework.data.document.couchdb;
import org.jcouchdb.db.Database;
import org.springframework.beans.factory.FactoryBean;

View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/
package org.springframework.datastore.document.couchdb;
package org.springframework.data.document.couchdb;
import org.jcouchdb.exception.CouchDBException;
import org.springframework.dao.DataAccessException;
import org.springframework.datastore.document.UncategorizedDocumentStoreException;
import org.springframework.data.document.UncategorizedDocumentStoreException;
/**
* Helper class featuring helper methods for internal MongoDb classes.

View File

@@ -1,7 +1,7 @@
package org.springframework.datastore.document.couchdb;
package org.springframework.data.document.couchdb;
import org.jcouchdb.document.BaseDocument;
import org.springframework.datastore.document.DocumentSource;
import org.springframework.data.document.DocumentSource;
public interface CouchDocumentSource extends DocumentSource<BaseDocument> {

View File

@@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.datastore.document.couchdb;
package org.springframework.data.document.couchdb;
import org.jcouchdb.db.Database;
import org.jcouchdb.document.BaseDocument;
import org.springframework.datastore.document.AbstractDocumentStoreTemplate;
import org.springframework.datastore.document.DocumentSource;
import org.springframework.data.document.AbstractDocumentStoreTemplate;
import org.springframework.data.document.DocumentSource;
public class CouchTemplate extends AbstractDocumentStoreTemplate<Database> {

View File

@@ -1,5 +1,5 @@
Bundle-SymbolicName: org.springframework.datastore.couchdb
Bundle-Name: Spring Datastore Couch DB Support
Bundle-SymbolicName: org.springframework.data.couchdb
Bundle-Name: Spring Data Couch DB Support
Bundle-Vendor: SpringSource
Bundle-ManifestVersion: 2
Import-Package:
@@ -10,8 +10,6 @@ Import-Template:
org.springframework.dao.*;version="[3.0.0, 4.0.0)",
org.springframework.util.*;version="[3.0.0, 4.0.0)",
org.springframework.data.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.persistence.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.document.*;version="[1.0.0, 2.0.0)",
org.jcouchdb.*;version="0",
org.aopalliance.*;version="[1.0.0, 2.0.0)";resolution:=optional,

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>spring-datastore-document-core</name>
<name>spring-data-document-core</name>
<comment></comment>
<projects>
</projects>

View File

@@ -3,13 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-parent</artifactId>
<artifactId>spring-data-document-parent</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<relativePath>../spring-datastore-document-parent/pom.xml</relativePath>
<relativePath>../spring-data-document-parent/pom.xml</relativePath>
</parent>
<artifactId>spring-datastore-document-core</artifactId>
<artifactId>spring-data-document-core</artifactId>
<packaging>jar</packaging>
<name>Spring Datastore Document Datastore Support</name>
<name>Spring Data Document Support</name>
<dependencies>
<!-- Spring -->

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
public abstract class AbstractDocumentStoreTemplate<C> {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
/**
* Class used to map a Document to a business object.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
/**
* Class used to map a business object to an object providing the source data for a Document.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
public interface DocumentStoreConnectionCallback<C, T> {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
import org.springframework.dao.InvalidDataAccessApiUsageException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document;
package org.springframework.data.document;
import org.springframework.dao.UncategorizedDataAccessException;

View File

@@ -1,4 +1,4 @@
package org.springframework.datastore.document.analytics;
package org.springframework.data.document.analytics;
import java.util.Date;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package org.springframework.datastore.document.analytics;
package org.springframework.data.document.analytics;
import java.util.Date;

View File

@@ -1,4 +1,4 @@
package org.springframework.datastore.document.analytics;
package org.springframework.data.document.analytics;
public class Parameters {

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.datastore.document.web.bind.annotation.support;
package org.springframework.data.document.web.bind.annotation.support;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet;
package org.springframework.data.document.web.servlet;
import java.util.Arrays;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet;
package org.springframework.data.document.web.servlet;
import java.lang.reflect.Method;
import java.util.Arrays;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet;
package org.springframework.data.document.web.servlet;
public interface ActionInterceptor {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet.mvc.annotation;
package org.springframework.data.document.web.servlet.mvc.annotation;
import java.io.IOException;
import java.io.InputStream;
@@ -61,10 +61,10 @@ import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.core.Ordered;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.datastore.document.web.servlet.ActionExecutedContext;
import org.springframework.datastore.document.web.servlet.ActionExecutingContext;
import org.springframework.datastore.document.web.servlet.ActionInterceptor;
import org.springframework.datastore.document.web.servlet.mvc.annotation.support.InterceptingHandlerMethodInvoker;
import org.springframework.data.document.web.servlet.ActionExecutedContext;
import org.springframework.data.document.web.servlet.ActionExecutingContext;
import org.springframework.data.document.web.servlet.ActionInterceptor;
import org.springframework.data.document.web.servlet.mvc.annotation.support.InterceptingHandlerMethodInvoker;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet.mvc.annotation;
package org.springframework.data.document.web.servlet.mvc.annotation;
import java.util.Iterator;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.datastore.document.web.servlet.mvc.annotation.support;
package org.springframework.data.document.web.servlet.mvc.annotation.support;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
@@ -43,7 +43,7 @@ import org.springframework.core.GenericTypeResolver;
import org.springframework.core.MethodParameter;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.datastore.document.web.servlet.ActionInterceptor;
import org.springframework.data.document.web.servlet.ActionInterceptor;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;

View File

@@ -1,5 +1,5 @@
Bundle-SymbolicName: org.springframework.datastore.document
Bundle-Name: Spring Datastore Document
Bundle-SymbolicName: org.springframework.data.document
Bundle-Name: Spring Data Document
Bundle-Vendor: SpringSource
Bundle-ManifestVersion: 2
Import-Package:
@@ -25,8 +25,6 @@ Import-Template:
org.springframework.dao.*;version="[3.0.0, 4.0.0)",
org.springframework.util.*;version="[3.0.0, 4.0.0)",
org.springframework.data.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.persistence.*;version="[1.0.0, 2.0.0)",
org.aopalliance.*;version="[1.0.0, 2.0.0)";resolution:=optional,
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
org.w3c.dom.*;version="0"

View File

@@ -3,9 +3,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-parent</artifactId>
<name>Spring Datastore Document Parent</name>
<url>http://www.springsource.org/spring-data/datastore-document</url>
<artifactId>spring-data-document-parent</artifactId>
<name>Spring Data Document Parent</name>
<url>http://www.springsource.org/spring-data/data-document</url>
<version>1.0.0.BUILD-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
@@ -36,15 +36,15 @@
<distributionManagement>
<site>
<id>spring-site-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/docs</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/docs</url>
</site>
<repository>
<id>spring-milestone-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/milestone</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/milestone</url>
</repository>
<snapshotRepository>
<id>spring-snapshot-staging</id>
<url>file:///${java.io.tmpdir}/spring-data/datastore-document/snapshot</url>
<url>file:///${java.io.tmpdir}/spring-data/data-document/snapshot</url>
</snapshotRepository>
</distributionManagement>
</profile>
@@ -59,7 +59,7 @@
</downloadUrl>
<site>
<id>static.springframework.org</id>
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/datastore-document/docs/${project.version}
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/data-document/docs/${project.version}
</url>
</site>
<repository>
@@ -121,17 +121,17 @@
<!-- Spring Data -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-core</artifactId>
<artifactId>spring-data-document-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-couchdb</artifactId>
<artifactId>spring-data-couchdb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-mongodb</artifactId>
<artifactId>spring-data-mongodb</artifactId>
<version>${project.version}</version>
</dependency>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>spring-data-mongodb</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>

View File

@@ -3,13 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-parent</artifactId>
<artifactId>spring-data-document-parent</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<relativePath>../spring-datastore-document-parent/pom.xml</relativePath>
<relativePath>../spring-data-document-parent/pom.xml</relativePath>
</parent>
<artifactId>spring-datastore-mongodb</artifactId>
<artifactId>spring-data-mongodb</artifactId>
<packaging>jar</packaging>
<name>Spring Datastore MongoDB Support</name>
<name>Spring Data MongoDB Support</name>
<dependencies>
<!-- Spring -->
@@ -25,7 +25,7 @@
<!-- Spring Data -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-datastore-document-core</artifactId>
<artifactId>spring-data-document-core</artifactId>
</dependency>
<!-- Logging -->

View File

@@ -21,7 +21,7 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.datastore.document.UncategorizedDocumentStoreException;
import org.springframework.data.document.UncategorizedDocumentStoreException;
import org.springframework.transaction.support.TransactionSynchronizationManager;
import org.springframework.util.Assert;

View File

@@ -15,7 +15,7 @@
*/
package org.springframework.data.document.mongodb;
import org.springframework.datastore.document.DocumentSource;
import org.springframework.data.document.DocumentSource;
import com.mongodb.DBObject;

View File

@@ -23,8 +23,8 @@ import java.util.List;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.dao.DataRetrievalFailureException;
import org.springframework.dao.InvalidDataAccessApiUsageException;
import org.springframework.data.document.AbstractDocumentStoreTemplate;
import org.springframework.data.document.mongodb.query.Query;
import org.springframework.datastore.document.AbstractDocumentStoreTemplate;
import com.mongodb.BasicDBObject;
import com.mongodb.CommandResult;

View File

@@ -19,7 +19,7 @@ import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import org.springframework.datastore.document.InvalidDocumentStoreApiUageException;
import org.springframework.data.document.InvalidDocumentStoreApiUageException;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;

View File

@@ -11,11 +11,11 @@ import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.data.document.analytics.ControllerCounter;
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.datastore.document.analytics.ControllerCounter;
import org.springframework.datastore.document.analytics.MvcEvent;
import org.springframework.datastore.document.analytics.Parameters;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;

View File

@@ -1,5 +1,5 @@
Bundle-SymbolicName: org.springframework.datastore.mongodb
Bundle-Name: Spring Datastore Mongo DB Support
Bundle-SymbolicName: org.springframework.data.mongodb
Bundle-Name: Spring Data Mongo DB Support
Bundle-Vendor: SpringSource
Bundle-ManifestVersion: 2
Import-Package:
@@ -11,9 +11,7 @@ Import-Template:
org.springframework.util.*;version="[3.0.0, 4.0.0)",
org.springframework.transaction.*;version="[3.0.0, 4.0.0)",
org.springframework.data.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.core.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.persistence.*;version="[1.0.0, 2.0.0)",
org.springframework.datastore.document.*;version="[1.0.0, 2.0.0)",
org.springframework.data.document.*;version="[1.0.0, 2.0.0)",
com.mongodb.*;version="0",
org.bson.*;version="0",
org.aopalliance.*;version="[1.0.0, 2.0.0)";resolution:=optional,