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 2006/11/16 03:11:49 UTC
svn commit: r475532 - in
/incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service:
DASService.java DASServiceException.java DASServiceImpl.java
client/DASServiceClient.java
Author: lresende
Date: Wed Nov 15 18:11:48 2006
New Revision: 475532
URL: http://svn.apache.org/viewvc?view=rev&rev=475532
Log:
Cleaning up @author tag
Modified:
incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASService.java
incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceException.java
incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceImpl.java
incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/client/DASServiceClient.java
Modified: incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASService.java?view=diff&rev=475532&r1=475531&r2=475532
==============================================================================
--- incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASService.java (original)
+++ incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASService.java Wed Nov 15 18:11:48 2006
@@ -6,15 +6,15 @@
* 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.
+ * under the License.
*/
package org.apache.tuscany.samples.das.service;
@@ -23,20 +23,15 @@
import commonj.sdo.DataObject;
-/**
- *
- * @author lresende
- *
- */
public interface DASService {
-
+
/**
- * Set DAS configuration file to be used
+ * Set DAS configuration file to be used
* @param configStream
* @throws DASServiceException
*/
public void configureService(InputStream configStream) throws DASServiceException;
-
+
/**
* Execute an existing command. The commands are defined in the DAS Configuration file being used by the service
* @param commandName Command name as it appears on the DAS Configuration file
@@ -45,7 +40,7 @@
* @return
*/
public DataObject executeCommand(String commandName, Vector commandArguments) throws DASServiceException;
-
+
/**
* Execute a new command, this can be any arbitrary valid query based on the backend implementation (e.g. SQL Query for DAS RDB)
* @param adHocQuery A new command to be executed (e.g SQL Query)
@@ -54,9 +49,9 @@
* @return
*/
public DataObject execute(String adHocQuery, Vector commandArguments) throws DASServiceException;
-
+
/**
- * Apply all changes on the graph back to the persistent repository.
+ * Apply all changes on the graph back to the persistent repository.
* This would save the changes on the SDO ChangeSummary back to the database
* Note: Your SDO ojects should have been created with ChangeSummary support
* @param graphRoot SDO Object with changes to be commited to persistent repository
Modified: incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceException.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceException.java?view=diff&rev=475532&r1=475531&r2=475532
==============================================================================
--- incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceException.java (original)
+++ incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceException.java Wed Nov 15 18:11:48 2006
@@ -6,22 +6,18 @@
* 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.
+ * under the License.
*/
package org.apache.tuscany.samples.das.service;
-/**
- *
- * @author lresende
- *
- */
+
public class DASServiceException extends Exception {
private static final long serialVersionUID = -7514653215235902874L;
Modified: incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceImpl.java?view=diff&rev=475532&r1=475531&r2=475532
==============================================================================
--- incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceImpl.java (original)
+++ incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/DASServiceImpl.java Wed Nov 15 18:11:48 2006
@@ -6,15 +6,15 @@
* 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.
+ * under the License.
*/
package org.apache.tuscany.samples.das.service;
@@ -26,19 +26,15 @@
import org.osoa.sca.annotations.Scope;
import commonj.sdo.DataObject;
-/**
- *
- * @author lresende
- *
- */
+
@Scope("MODULE")
public class DASServiceImpl implements DASService {
protected DAS das = null;
-
-
+
+
/**
- * Initialize DAS
+ * Initialize DAS
* @return
* @throws DASServiceException
*/
@@ -46,17 +42,17 @@
if(config == null){
throw new DASServiceException("Missing configuration information");
}
-
+
if(this.das != null){
this.das.releaseResources();
this.das = null;
}
-
+
this.das = DAS.FACTORY.createDAS(config);
}
-
+
/**
- * Get a DAS instance based on the configuration
+ * Get a DAS instance based on the configuration
* @return
* @throws DASServiceException
*/
@@ -67,9 +63,9 @@
return this.das;
}
-
+
/**
- * Set DAS configuration file to be used
+ * Set DAS configuration file to be used
* @param configStream
* @throws DASServiceException
*/
@@ -77,7 +73,7 @@
this.initDAS(configStream);
}
-
+
/**
* Execute an existing command. The commands are defined in the DAS Configuration file being used by the service
@@ -88,7 +84,7 @@
*/
public DataObject executeCommand(String commandName, Vector commandArguments) throws DASServiceException{
Command command = this.getDAS().getCommand(commandName);
-
+
if(command == null){
throw new DASServiceException("Invalid command: " + commandName);
}
@@ -104,7 +100,7 @@
}
DataObject root = command.executeQuery();
-
+
return root;
}
@@ -132,12 +128,12 @@
}
}
DataObject root = command.executeQuery();
-
- return root;
+
+ return root;
}
/**
- * Apply all changes on the graph back to the persistent repository.
+ * Apply all changes on the graph back to the persistent repository.
* This would save the changes on the SDO ChangeSummary back to the database
* Note: Your SDO ojects should have been created with ChangeSummary support
* @throws DASServiceException
Modified: incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/client/DASServiceClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/client/DASServiceClient.java?view=diff&rev=475532&r1=475531&r2=475532
==============================================================================
--- incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/client/DASServiceClient.java (original)
+++ incubator/tuscany/java/das/samples/das.service/src/main/java/org/apache/tuscany/samples/das/service/client/DASServiceClient.java Wed Nov 15 18:11:48 2006
@@ -21,11 +21,6 @@
import org.apache.tuscany.samples.das.service.DASService;
import org.osoa.sca.annotations.Reference;
-/**
- *
- * @author lresende
- *
- */
public class DASServiceClient {
@Reference DASService das;
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org