You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2007/06/20 04:46:16 UTC

svn commit: r548895 - in /incubator/tuscany/java/sca/modules/implementation-das: ./ src/main/java/org/apache/tuscany/sca/implementation/das/impl/ src/main/java/org/apache/tuscany/sca/implementation/das/provider/ src/test/resources/

Author: lresende
Date: Tue Jun 19 19:46:15 2007
New Revision: 548895

URL: http://svn.apache.org/viewvc?view=rev&rev=548895
Log:
Adding checkstyle, pmd config files and some small cleanups

Added:
    incubator/tuscany/java/sca/modules/implementation-das/.checkstyle
    incubator/tuscany/java/sca/modules/implementation-das/.pmd
Modified:
    incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/impl/DASImplementationProcessor.java
    incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASImplementationProviderFactory.java
    incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/CompanyConfig.xml
    incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/company.composite
    incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/das.composite

Added: incubator/tuscany/java/sca/modules/implementation-das/.checkstyle
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/.checkstyle?view=auto&rev=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/.checkstyle (added)
+++ incubator/tuscany/java/sca/modules/implementation-das/.checkstyle Tue Jun 19 19:46:15 2007
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<fileset-config file-format-version="1.2.0" simple-config="true">
+    <fileset name="all" enabled="true" check-config-name="Tuscany Checks" local="false">
+        <file-match-pattern match-pattern="." include-pattern="true"/>
+    </fileset>
+</fileset-config>

Added: incubator/tuscany/java/sca/modules/implementation-das/.pmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/.pmd?view=auto&rev=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/.pmd (added)
+++ incubator/tuscany/java/sca/modules/implementation-das/.pmd Tue Jun 19 19:46:15 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<pmd><useProjectRuleSet>true</useProjectRuleSet><rules/></pmd>

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/impl/DASImplementationProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/impl/DASImplementationProcessor.java?view=diff&rev=548895&r1=548894&r2=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/impl/DASImplementationProcessor.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/impl/DASImplementationProcessor.java Tue Jun 19 19:46:15 2007
@@ -25,6 +25,7 @@
 import javax.xml.stream.XMLStreamReader;
 import javax.xml.stream.XMLStreamWriter;
 
+import org.apache.tuscany.sca.assembly.xml.Constants;
 import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor;
 import org.apache.tuscany.sca.contribution.resolver.ModelResolver;
 import org.apache.tuscany.sca.contribution.service.ContributionReadException;
@@ -45,7 +46,7 @@
  * @version $Rev$ $Date$
  */
 public class DASImplementationProcessor implements StAXArtifactProcessor<DASImplementation> {
-    private static final QName IMPLEMENTATION_DAS = new QName("http://das", "implementation.das");
+    private static final QName IMPLEMENTATION_DAS = new QName(Constants.SCA10_NS, "implementation.das");
     
     private DASImplementationFactory dasFactory;
     

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASImplementationProviderFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASImplementationProviderFactory.java?view=diff&rev=548895&r1=548894&r2=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASImplementationProviderFactory.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASImplementationProviderFactory.java Tue Jun 19 19:46:15 2007
@@ -31,7 +31,7 @@
 public class DASImplementationProviderFactory implements ImplementationProviderFactory<DASImplementation> {
 
     /**
-     * Constructs a new CRUD implementation.
+     * Constructs a new DAS implementation.
      */
     public DASImplementationProviderFactory() {
     }

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/CompanyConfig.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/CompanyConfig.xml?view=diff&rev=548895&r1=548894&r2=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/CompanyConfig.xml (original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/CompanyConfig.xml Tue Jun 19 19:46:15 2007
@@ -26,6 +26,8 @@
 			loginTimeout="600000"/>
 	</ConnectionInfo>
     
+    <Command name="getCompanies" SQL="select * from COMPANY" kind="Select"/>
+    
     <Command name="all companies" SQL="select * from COMPANY" kind="Select"/>
     
     <Command name="all companies and departments" SQL="select * from COMPANY left outer join DEPARTMENT on COMPANY.ID = DEPARTMENT.COMPANYID" kind="Select"/>

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/company.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/company.composite?view=diff&rev=548895&r1=548894&r2=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/company.composite (original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/company.composite Tue Jun 19 19:46:15 2007
@@ -19,8 +19,6 @@
 -->
 <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
 	targetNamespace="http://sample/das"
-	xmlns:sd="http://sample/das"
-	xmlns:das="http://das"
 	name="das">
 
     <service name="CompanyServiceComponent" promote="CompanyComponent">
@@ -28,6 +26,6 @@
     </service>
 
     <component name="CompanyComponent">
-        <das:implementation.das config="/CompanyConfig.xml" dataAccessType="rdb" />
+        <implementation.das config="/CompanyConfig.xml" dataAccessType="rdb" />
     </component>
 </composite>

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/das.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/das.composite?view=diff&rev=548895&r1=548894&r2=548895
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/das.composite (original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/test/resources/das.composite Tue Jun 19 19:46:15 2007
@@ -19,12 +19,10 @@
 -->
 <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
 	targetNamespace="http://sample/das"
-	xmlns:sd="http://sample/das"
-	xmlns:das="http://das"
 	name="das">
 
     <component name="DASServiceComponent">
-        <das:implementation.das config="/CompanyConfig.xml" dataAccessType="rdb" />
+        <implementation.das config="/CompanyConfig.xml" dataAccessType="rdb" />
     </component>
 
 </composite>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org