cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r441230 [4/10] - in /incubator/cayenne/soc/trunk/cayenne-ropwsdl: cayenne-axis-dist/ cayenne-axis-server/ cayenne-axis-server/.externalToolBuilders/ cayenne-axis-server/.settings/ cayenne-axis-server/ant/ cayenne-axis-server/ant/lib/ cayenn...
Date Thu, 07 Sep 2006 21:28:15 GMT
Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/deploy.wsdd
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/deploy.wsdd?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/deploy.wsdd (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/deploy.wsdd Thu Sep  7 14:28:04 2006
@@ -0,0 +1,399 @@
+<!--*************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ **************************************************************************-->
+
+
+<deployment
+    xmlns="http://xml.apache.org/axis/wsdd/"
+    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+    
+<!--
+	Cayenne Web Service Descriptor for AXIS.
+	
+	Michael Victorov(m_victorov@mail.ru)
+-->
+
+  <service name="CayenneROP" provider="java:RPC" style="rpc" use="encoded">
+	 <requestFlow> 
+       <handler type="soapmonitor"/> 
+     </requestFlow> 
+     <responseFlow> 
+       <handler type="soapmonitor"/> 
+     </responseFlow> 
+  
+  
+      <parameter name="wsdlTargetNamespace" value="http://cayenne.apache.org"/>
+      <parameter name="wsdlServiceElement" value="CayenneROPService"/>
+      <parameter name="schemaUnqualified" value="http://cayenne.apache.org"/>
+      <parameter name="wsdlServicePort" value="CayenneROP"/>
+      <parameter name="className" value="org.apache.cayenne.remote.axis.service.AxisService"/>
+      <parameter name="wsdlPortType" value="CayenneROP"/>
+      <parameter name="typeMappingVersion" value="1.2"/>
+      
+      <operation name="processQuery" qname="operNS:processQuery" xmlns:operNS="http://cayenne.apache.org" returnQName="processQueryReturn" returnType="rtns:QueryResponse" xmlns:rtns="http://cayenne.apache.org" soapAction="" >
+        <parameter qname="query" type="tns:Query" xmlns:tns="http://cayenne.apache.org"/>
+      </operation>          
+      <operation name="processSync" qname="operNS:processSync" xmlns:operNS="http://cayenne.apache.org" returnQName="processSyncReturn" returnType="rtns:GraphDiff" xmlns:rtns="http://cayenne.apache.org" soapAction="" >
+        <parameter qname="syncType" type="xsd:integer"/>
+        <parameter qname="changes" type="tns:GraphDiff" xmlns:tns="http://cayenne.apache.org"/>
+      </operation>
+      
+      <!-- <parameter name="allowedMethods" value="processQuery processSync"/> -->
+      <parameter name="scope" value="Application"/>
+      
+      <!--
+      Type mappings, serializer definitions.
+      -->
+      
+      
+      <typeMapping 
+      	qname="ns:ToManyList" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.access.ToManyList"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:Expression" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.exp.Expression"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:Fault" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.Fault"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:Query" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.Query"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:AbstractQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.AbstractQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:QualifiedQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.QualifiedQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:SelectQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.SelectQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:DeleteQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.DeleteQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:UpdateQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.UpdateQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:RelationshipQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.RelationshipQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:QueryChain" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.QueryChain"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:IndirectQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.IndirectQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:NamedQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.NamedQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:ObjectIdQuery" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.ObjectIdQuery"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      
+	 <typeMapping 
+      	qname="ns:QueryResponse" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.QueryResponse"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      
+      <typeMapping 
+      	qname="ns:ListResponse" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.util.ListResponse"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:GenericResponse" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.util.GenericResponse"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:DataRow" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.DataRow"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />  
+      
+      <typeMapping 
+      	qname="ns:ObjectId" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.ObjectId"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />      
+      
+      <typeMapping 
+      	qname="ns:Persistent" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.Persistent"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />     
+      
+      
+          
+      <typeMapping 
+      	qname="ns:GraphDiff" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.GraphDiff"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:NodeDiff" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.NodeDiff"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:CompoundDiff" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.CompoundDiff"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+
+      
+      <typeMapping 
+      	qname="ns:ArcCreateOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.ArcCreateOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:ArcDeleteOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.ArcDeleteOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+
+	 <typeMapping 
+      	qname="ns:NodeCreateOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.NodeCreateOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+	 <typeMapping 
+      	qname="ns:NodeDeleteOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.NodeDeleteOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+
+	 <typeMapping 
+      	qname="ns:NodeIdChangeOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.NodeIdChangeOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+
+	 <typeMapping 
+      	qname="ns:NodePropertyChangeOperation" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.NodePropertyChangeOperation"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <typeMapping 
+      	qname="ns:DataMap" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.map.DataMap"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />     
+      
+      <typeMapping 
+      	qname="ns:EntityResolver" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.map.EntityResolver"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />  
+      
+      <typeMapping 
+      	qname="ns:QueryMetadata" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.QueryMetadata"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      
+      	
+      <typeMapping 
+      	qname="ns:dateTime" 
+      	xmlns:ns="http://www.w3.org/2001/XMLSchema"
+      	languageSpecificType="java:java.util.Date"
+      	serializer="org.apache.cayenne.remote.axis.ser.CayenneSerializerFactory"
+      	deserializer="org.apache.cayenne.remote.axis.ser.CayenneDeserializerFactory"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <arrayMapping 
+      	qname="ns:ArrayOfPersistent" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.Persistent[]"
+      	innerType="ns:Persistent"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      
+      <arrayMapping 
+      	qname="ns:ArrayOfQueryResults" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.Persistent[][]"
+      	innerType="ns:ArrayOfPersistent"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <arrayMapping 
+      	qname="ns:ArrayOfGraphDiffs" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.graph.GraphDiff[]"
+      	innerType="ns:GraphDiff"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+      
+      <arrayMapping 
+      	qname="ns:ArrayOfQueries" 
+      	xmlns:ns="http://cayenne.apache.org"
+      	languageSpecificType="java:org.apache.cayenne.query.Query[]"
+      	innerType="ns:Query"
+      	encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
+      />
+
+  </service>
+</deployment>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/hsqldb.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/hsqldb.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/hsqldb.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/jaxrpc.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/jaxrpc.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/jaxrpc.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/log4j-1.2.8.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/log4j-1.2.8.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/log4j-1.2.8.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/saaj.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/saaj.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/saaj.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/undeploy.wsdd
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/undeploy.wsdd?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/undeploy.wsdd (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/undeploy.wsdd Thu Sep  7 14:28:04 2006
@@ -0,0 +1,23 @@
+<!--*************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ **************************************************************************-->
+
+<undeployment
+    xmlns="http://xml.apache.org/axis/wsdd/">
+
+  <!-- Services from CayenneService WSDL service -->
+
+  <service name="Cayenne"/>
+</undeployment>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/wsdl4j-1.5.1.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/wsdl4j-1.5.1.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/lib/wsdl4j-1.5.1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/readme.html
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/readme.html?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/readme.html (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-server/readme.html Thu Sep  7 14:28:04 2006
@@ -0,0 +1,40 @@
+<html><head><title>Cayenne-AXIS Example Server Web Application</title></head><body>
+<h2>Cayenne-AXIS Example Server Web Application</h2>
+
+<p>See Cayenne-AXIS readme.html file for more info...</p>
+
+<h3>Quick start</h3>
+<p>
+See ant/readme.html for instructions to quickly build and run demo web app.</p>
+
+
+<h3>How to use...</h3>
+
+<p>This project can be used as base (pattern) for creating Cayenne-AXIS servers.</p>
+
+Common algorithm for creating Cayenne-AXIS server web application based on this project:
+<ul type="disc">
+<li>Create Cayenne configuration files with Cayenne Modeller and place them at the cayenne-config folder. <br /> (org.apache.cayenne.CayenneDataObject must be assigned as className to all entities. See readme.html in cayenne-axis project)</li>
+<li>Configure ant/properties/*.properties.xml files (see ant/readme.html).</li>
+<li>Generate database structure by ant/dbgen.xml or by Cayenne Modeller.</li>
+<li>Add custom needed files to web app. (Or maybe fully reorganize it for custom needs.)</li>
+<li>Use ant/build.xml to build project.</li>
+</ul>
+Clients can be created by using auto-generated client-side libraries (see ant/readme.txt).
+
+
+<h3>Directory structure</h3>
+<table>
+<tr><td>ant</td><td>	Ant build scripts. See ant/readme.txt</td></tr>
+<tr><td>build	</td><td>Web app build directory. Contains fully the same as war archive.</td></tr>
+<tr><td>build/clients/java</td><td>Auto generated libraries needed for creating clients.</td></tr>
+<tr><td>build/WEB-INF/server-config.wsdd</td><td>AXIS service deployment configuration. Service definition must be 
+									the same as in deploy.wsdd at cayenne-axis distributive.</td></tr>
+<tr><td>cayenne-config</td><td>Cayenne configuration files. Used on serverside only. Different config
+									file will be generated for client use.</td></tr>
+<tr><td>i18n</td><td>Internationalisation property files.</td></tr>
+<tr><td>lib</td><td>Project libraries.</td></tr>
+<tr><td>war</td><td>Web Application Archive will be placed there after generation.</td></tr>
+</table>
+
+</body></html>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.classpath
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.classpath?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.classpath (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.classpath Thu Sep  7 14:28:04 2006
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="lib" path="lib/axis.jar"/>
+	<classpathentry kind="lib" path="lib/cayenne.jar"/>
+	<classpathentry kind="lib" path="lib/cayenne-axis.jar"/>
+	<classpathentry kind="lib" path="lib/client-lib.jar"/>
+	<classpathentry kind="lib" path="lib/commons-discovery-0.2.jar"/>
+	<classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
+	<classpathentry kind="lib" path="lib/jaxrpc.jar"/>
+	<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
+	<classpathentry kind="lib" path="lib/saaj.jar"/>
+	<classpathentry kind="lib" path="lib/wsdl4j-1.5.1.jar"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.project
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.project?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.project (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.project Thu Sep  7 14:28:04 2006
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cayenne-axis-test-client</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.settings/org.eclipse.jdt.ui.prefs?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.settings/org.eclipse.jdt.ui.prefs (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/.settings/org.eclipse.jdt.ui.prefs Thu Sep  7 14:28:04 2006
@@ -0,0 +1,5 @@
+#Wed Aug 23 18:36:58 MSD 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.ui.exception.name=e
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.overrideannotation=true

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/axis.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/axis.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/axis.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne-axis.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne-axis.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne-axis.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/cayenne.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/client-lib.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/client-lib.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/client-lib.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-discovery-0.2.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-discovery-0.2.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-discovery-0.2.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-logging-1.0.4.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-logging-1.0.4.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/commons-logging-1.0.4.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/jaxrpc.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/jaxrpc.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/jaxrpc.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/log4j-1.2.8.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/log4j-1.2.8.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/log4j-1.2.8.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/saaj.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/saaj.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/saaj.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/wsdl4j-1.5.1.jar
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/wsdl4j-1.5.1.jar?view=auto&rev=441230
==============================================================================
Binary file - no diff available.

Propchange: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/lib/wsdl4j-1.5.1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultithreadedSelectUpdate.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultithreadedSelectUpdate.java?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultithreadedSelectUpdate.java (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultithreadedSelectUpdate.java Thu Sep  7 14:28:04 2006
@@ -0,0 +1,116 @@
+/****************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ ****************************************************************************/
+
+package test1;
+
+import java.net.MalformedURLException;
+import java.util.Collections;
+import java.util.Date;
+
+import javax.xml.rpc.ServiceException;
+
+import org.apache.cayenne.CayenneContext;
+import org.apache.cayenne.CayenneException;
+import org.apache.cayenne.exp.ExpressionFactory;
+import org.apache.cayenne.query.NamedQuery;
+import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.remote.axis.CayenneAxisContextFactory;
+
+import examples.gallery.Artist;
+import examples.gallery.Painting;
+
+/**
+ * Use main() to start.
+ * 
+ * Few threads will be started. Half of them will try to add Artists. Others
+ * will execute select queries to check out added artists.
+ * 
+ * @author Michael Victorov (m_victorov@mail.ru)
+ * 
+ */
+public class MultithreadedSelectUpdate {
+
+	private CayenneContext ctxt;
+
+	private class SomePrinter extends test1.util.SomeActor {
+
+		public SomePrinter(String id) throws MalformedURLException,
+				ServiceException, CayenneException {
+			super(id);
+		}
+
+		@Override
+		public void doSomething() {
+			SelectQuery sel = new SelectQuery(Artist.class, ExpressionFactory
+					.likeIgnoreCaseExp(Painting.NAME_PROPERTY, "dali%"));
+
+			for (Object obj : context.performQuery(sel)) {
+				Artist artist = (Artist) obj;
+				System.out.println(artist.getName());
+			}
+		}
+
+	}
+
+	private class SomeWriter extends test1.util.SomeActor {
+
+		public SomeWriter(String id) throws MalformedURLException,
+				ServiceException, CayenneException {
+			super(id);
+		}
+
+		@Override
+		public void doSomething() {
+			System.out.println(id + "--- {");
+			Artist artist = (Artist) context.newObject(Artist.class);
+			artist.setName("dali " + new Date().toString());
+			System.out.println("Created object " + artist.getName());
+			context.commitChanges();
+			System.out.println("} --- " + id + " ");
+
+		}
+
+	}
+
+	public static void main(String[] args) throws MalformedURLException,
+			ServiceException, CayenneException {
+		new MultithreadedSelectUpdate().start();
+
+	}
+
+	public MultithreadedSelectUpdate() throws MalformedURLException,
+			ServiceException, CayenneException {
+		this.ctxt = CayenneAxisContextFactory
+				.createClientContext("http://localhost:8080/Cayenne/services/CayenneROP");
+		ctxt.performGenericQuery(new NamedQuery("DeleteAll", Collections
+				.singletonMap("table", "Artist")));
+
+	}
+
+	public void start() throws MalformedURLException, ServiceException,
+			CayenneException {
+		Artist artist = (Artist) ctxt.newObject(Artist.class);
+		artist.setName("dali " + new Date().toString());
+		System.out.println("Created object " + artist.getName());
+		ctxt.commitChanges();
+
+		for (int i = 0; i < 5; i++) {
+			new Thread(new SomePrinter(String.valueOf(i))).start();
+			new Thread(new SomeWriter(String.valueOf(i))).start();
+		}
+	}
+
+}
\ No newline at end of file

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultythreadedAttributeChanging.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultythreadedAttributeChanging.java?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultythreadedAttributeChanging.java (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/MultythreadedAttributeChanging.java Thu Sep  7 14:28:04 2006
@@ -0,0 +1,106 @@
+/****************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ ****************************************************************************/
+
+package test1;
+
+import java.net.MalformedURLException;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+
+import javax.xml.rpc.ServiceException;
+
+import org.apache.cayenne.CayenneContext;
+import org.apache.cayenne.CayenneException;
+import org.apache.cayenne.query.NamedQuery;
+import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.remote.axis.CayenneAxisContextFactory;
+
+import examples.gallery.Artist;
+
+/**
+ * Use main() to start.
+ * 
+ * One remote instance of Artist will be created. Few threads will be started.
+ * They will try to concurently change attribute of this remote instance.
+ * 
+ * @author Michael Victorov (m_victorov@mail.ru)
+ * 
+ */
+public class MultythreadedAttributeChanging {
+	private CayenneContext ctxt;
+
+	private class SomeChanger extends test1.util.SomeActor {
+
+		private Collection artists;
+
+		private String myName = "nothing";
+
+		public SomeChanger(String id) throws MalformedURLException,
+				ServiceException, CayenneException {
+			super(id);
+			SelectQuery sel = new SelectQuery(Artist.class);
+			artists = context.performQuery(sel);
+			myName = "Artist" + id;
+		}
+
+		@Override
+		public void doSomething() {
+			
+			for (Object obj : artists) {
+				Artist artist = (Artist) obj;
+				
+				if (!artist.getName().equals(myName)) {
+					System.out.print(artist.getName());
+					artist.setName(myName);
+					System.out.println(" changed to " + artist.getName());
+				} else {
+					System.out.println("Name ok.");
+				}
+			}
+			context.commitChanges();
+		}
+
+	}
+
+	public static void main(String[] args) throws MalformedURLException,
+			ServiceException, CayenneException {
+		new MultythreadedAttributeChanging().start();
+
+	}
+
+	public MultythreadedAttributeChanging() throws MalformedURLException,
+			ServiceException, CayenneException {
+		this.ctxt = CayenneAxisContextFactory
+				.createClientContext("http://localhost:8080/Cayenne/services/CayenneROP");
+		ctxt.performGenericQuery(new NamedQuery("DeleteAll", Collections
+				.singletonMap("table", "Artist")));
+
+	}
+
+	public void start() throws MalformedURLException, ServiceException,
+			CayenneException {
+		Artist artist = (Artist) ctxt.newObject(Artist.class);
+		artist.setName("dali " + new Date().toString());
+		System.out.println("Created object " + artist.getName());
+		ctxt.commitChanges();
+
+		for (int i = 0; i < 2; i++) {
+			new Thread(new SomeChanger(String.valueOf(i))).start();
+		}
+	}
+
+}

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/PrintEverything.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/PrintEverything.java?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/PrintEverything.java (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/PrintEverything.java Thu Sep  7 14:28:04 2006
@@ -0,0 +1,118 @@
+/****************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ ****************************************************************************/
+
+
+package test1;
+
+import java.net.MalformedURLException;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.rpc.ServiceException;
+
+import org.apache.cayenne.CayenneContext;
+import org.apache.cayenne.CayenneException;
+import org.apache.cayenne.map.Attribute;
+import org.apache.cayenne.map.ObjEntity;
+import org.apache.cayenne.map.Relationship;
+import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.remote.axis.CayenneAxisContextFactory;
+import org.apache.cayenne.remote.axis.client.ClientPersistentObject;
+
+import examples.gallery.Artist;
+
+
+/**
+ * Use main() to start.
+ * 
+ * Print all attributes of all entities.
+ * 
+ * @author Michael Victorov (m_victorov@mail.ru)
+ * 
+ */
+public class PrintEverything {
+	private CayenneContext ctxt;
+
+	/**
+	 * @param args
+	 * @throws CayenneException 
+	 * @throws ServiceException 
+	 * @throws MalformedURLException 
+	 */
+	public static void main(String[] args) throws MalformedURLException, ServiceException, CayenneException {
+		new PrintEverything().printEverything();
+
+	}
+
+	public PrintEverything() throws MalformedURLException, ServiceException,
+			CayenneException {
+		super();
+		this.ctxt = CayenneAxisContextFactory
+				.createClientContext("http://localhost:8080/Cayenne/services/CayenneROP");
+
+	}
+
+	private void printEverything() {
+		Collection entities = ctxt.getEntityResolver().getObjEntities();
+		for (Iterator iter = entities.iterator(); iter.hasNext();) {
+			ObjEntity element = (ObjEntity) iter.next();
+			SelectQuery sel = new SelectQuery(element, null);
+			List list = ctxt.performQuery(sel);
+			for (Iterator iterator = list.iterator(); iterator.hasNext();) {
+				ClientPersistentObject obj = (ClientPersistentObject) iterator
+						.next();
+				System.out.println(obj.getObjEntity().getName() + " "
+						+ obj.toString() + ": ");
+
+				if (obj instanceof Artist)
+					System.out.println("DateOfBirth ========== "
+							+ ((Artist) obj).getDateOfBirth());
+
+				Collection attrs = element.getAttributes();
+				for (Iterator attrIter = attrs.iterator(); attrIter.hasNext();) {
+					Attribute attr = (Attribute) attrIter.next();
+					System.out.println("   " + attr.getName() + ": "
+							+ obj.readPropertyDirectly(attr.getName()));
+
+				}
+				Collection rels = element.getRelationships();
+				for (Iterator relIter = rels.iterator(); relIter.hasNext();) {
+					Relationship rel = (Relationship) relIter.next();
+					Object relRes = obj.readProperty(rel.getName());
+					System.out.print("   " + rel.getName() + ": ");
+					if (relRes instanceof List) {
+						System.out.println("");
+						List relList = (List) relRes;
+						for (Iterator relListIter = relList.iterator(); relListIter
+								.hasNext();) {
+							Object relListElem = (Object) relListIter.next();
+							System.out.println("       " + rel.getName() + ": "
+									+ relListElem);
+						}
+					} else {
+
+						System.out.println(relRes);
+					}
+
+				}
+
+			}
+
+		}
+	}
+
+}

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/util/SomeActor.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/util/SomeActor.java?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/util/SomeActor.java (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test1/util/SomeActor.java Thu Sep  7 14:28:04 2006
@@ -0,0 +1,63 @@
+/****************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ ****************************************************************************/
+
+
+package test1.util;
+
+import java.net.MalformedURLException;
+
+import javax.xml.rpc.ServiceException;
+
+import org.apache.cayenne.CayenneException;
+import org.apache.cayenne.ObjectContext;
+import org.apache.cayenne.remote.axis.CayenneAxisContextFactory;
+
+public abstract class SomeActor implements Runnable {
+	protected String id;
+
+	protected long timeout;
+	
+	protected ObjectContext context;
+
+	public SomeActor(String id) throws MalformedURLException, ServiceException, CayenneException {
+		this.id = id;
+		timeout = Math.round(1000 + Math.random() * 3000);
+		System.out.println("Created thread " + id + ". Wait timeout is "
+				+ String.valueOf(timeout) + ".");
+		this.context = CayenneAxisContextFactory
+		.createClientContext("http://localhost:8080/Cayenne/services/CayenneROP");
+
+	}
+
+	public void run() {
+		try {
+			while (true) {
+				Thread.sleep(timeout);
+				System.out.println("{{{{{ --- " + id);				
+				doSomething();
+				System.out.println("}}}}} --- " + id);
+				System.out.println("");
+			}
+		} catch (Exception e) {
+			System.out.println("Exception in thread " + id + ":");
+			e.printStackTrace();
+
+		}
+	}
+
+	public abstract void doSomething();
+
+}

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test2/TutorialApp.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test2/TutorialApp.java?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test2/TutorialApp.java (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis-test-client/src/test2/TutorialApp.java Thu Sep  7 14:28:04 2006
@@ -0,0 +1,146 @@
+/****************************************************************************
+ *  Copyright 2006 The Apache Software Foundation
+ *
+ *  Licensed 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.
+ ****************************************************************************/
+
+
+package test2;
+
+import java.net.MalformedURLException;
+import java.util.Calendar;
+import java.util.Collections;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.rpc.ServiceException;
+
+import org.apache.cayenne.CayenneException;
+import org.apache.cayenne.DataObjectUtils;
+import org.apache.cayenne.ObjectContext;
+import org.apache.cayenne.exp.Expression;
+import org.apache.cayenne.exp.ExpressionFactory;
+import org.apache.cayenne.query.NamedQuery;
+import org.apache.cayenne.query.QueryChain;
+import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.remote.axis.CayenneAxisContextFactory;
+
+import examples.gallery.Artist;
+import examples.gallery.Gallery;
+import examples.gallery.Painting;
+
+public class TutorialApp {
+
+	public static void main(String[] args) throws MalformedURLException,
+			ServiceException, CayenneException {
+				
+		ObjectContext context = CayenneAxisContextFactory
+				.createClientContext("http://localhost:8080/Cayenne/services/CayenneROP");
+
+		// cleans up all data, so that we start with empty database on each
+		// tutorial run
+		mappingQueriesChapter(context);
+
+		// persists an artist, a gallery and a few paintings
+		dataObjectsChapter(context);
+
+		// selects previously saved data
+		selectQueryChapter(context);
+
+		// deletes objects
+		deleteChapter(context);
+	}
+
+	static void dataObjectsChapter(ObjectContext context) {
+		Artist picasso = (Artist) context.newObject(Artist.class);
+		picasso.setName("Pablo Picasso");
+		picasso.setDateOfBirth(new Date());
+
+		Gallery metropolitan = (Gallery) context.newObject(Gallery.class);
+		metropolitan.setName("Metropolitan Museum of Art");
+
+		Painting girl = (Painting) context.newObject(Painting.class);
+		girl.setName("Girl Reading at a Table");
+
+		Painting stein = (Painting) context.newObject(Painting.class);
+		stein.setName("Gertrude Stein");
+
+		picasso.addToPaintings(girl);
+		picasso.addToPaintings(stein);
+
+		girl.setGallery(metropolitan);
+		stein.setGallery(metropolitan);
+
+		context.commitChanges();
+	}
+
+	static void mappingQueriesChapter(ObjectContext context) {
+
+		QueryChain chain = new QueryChain();
+		chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+				"table", "PAINTING")));
+		chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+				"table", "ARTIST")));
+		chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+				"table", "GALLERY")));
+
+		context.performGenericQuery(chain);
+
+	}
+
+	static void selectQueryChapter(ObjectContext context) {
+
+		// select all paintings
+		SelectQuery select1 = new SelectQuery(Painting.class);
+		List paintings1 = context.performQuery(select1);
+
+		// select paintings that start with "Gi*"
+		Expression qualifier2 = ExpressionFactory.likeIgnoreCaseExp(
+				Painting.NAME_PROPERTY, "gi%");
+		SelectQuery select2 = new SelectQuery(Painting.class, qualifier2);
+		List paintings2 = context.performQuery(select2);
+
+		// select all paintings done by artists who were born more than a 100
+		// years ago
+		Calendar c = new GregorianCalendar();
+		c.set(c.get(Calendar.YEAR) - 100, 0, 1, 0, 0, 0);
+
+		Expression qualifier3 = Expression
+				.fromString("artist.dateOfBirth < $date");
+		qualifier3 = qualifier3.expWithParameters(Collections.singletonMap(
+				"date", c.getTime()));
+
+		// /////////////////////////////////////////////////////////////////
+		// Exception error here
+		// SelectQuery select3 = new SelectQuery(Painting.class, qualifier3);
+		// /////////////////////////////////////////////////////////////////
+
+		SelectQuery select3 = new SelectQuery(Painting.class);
+		List paintings3 = context.performQuery(select3);
+	}
+
+	static void deleteChapter(ObjectContext context) {
+		Expression qualifier = ExpressionFactory.matchExp(Artist.NAME_PROPERTY,
+				"Pablo Picasso");
+		SelectQuery select = new SelectQuery(Artist.class, qualifier);
+
+		Artist picasso = (Artist) DataObjectUtils.objectForQuery(context,
+				select);
+		if (picasso != null) {
+
+			context.deleteObject(picasso);
+			context.commitChanges();
+		}
+	}
+}

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.classpath
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.classpath?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.classpath (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.classpath Thu Sep  7 14:28:04 2006
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry sourcepath="lib-src/axis-1_4.zip" kind="lib" path="lib/axis.jar"/>
+	<classpathentry sourcepath="/cayenne-java/src/cayenne/java/" kind="lib" path="lib/cayenne.jar"/>
+	<classpathentry kind="lib" path="lib/jaxrpc.jar"/>
+	<classpathentry kind="lib" path="lib/saaj.jar"/>
+	<classpathentry kind="lib" path="lib/ant-1.6.5.jar"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.externalToolBuilders/Ant builder - cayenne-axis.launch
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.externalToolBuilders/Ant%20builder%20-%20cayenne-axis.launch?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.externalToolBuilders/Ant builder - cayenne-axis.launch (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.externalToolBuilders/Ant builder - cayenne-axis.launch Thu Sep  7 14:28:04 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="true"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/>
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="clean,"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_06"/>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID" value="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jdk1.5.0_06"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="cayenne-axis"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/cayenne-axis/ant/build.xml"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/cayenne-axis/ant/build.xml}"/>
+</launchConfiguration>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.factorypath
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.factorypath?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.factorypath (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.factorypath Thu Sep  7 14:28:04 2006
@@ -0,0 +1,2 @@
+<factorypath>
+</factorypath>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.project
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.project?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.project (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.project Thu Sep  7 14:28:04 2006
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cayenne-axis</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+				<dictionary>
+					<key>LaunchConfigHandle</key>
+					<value>&lt;project&gt;/.externalToolBuilders/Ant builder - cayenne-axis.launch</value>
+				</dictionary>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.core.resources.prefs
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.core.resources.prefs?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.core.resources.prefs (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.core.resources.prefs Thu Sep  7 14:28:04 2006
@@ -0,0 +1,3 @@
+#Tue Aug 22 09:44:43 MSD 2006
+eclipse.preferences.version=1
+encoding/<project>=UTF-8

Added: incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.jdt.apt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.jdt.apt.core.prefs?view=auto&rev=441230
==============================================================================
--- incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.jdt.apt.core.prefs (added)
+++ incubator/cayenne/soc/trunk/cayenne-ropwsdl/cayenne-axis/.settings/org.eclipse.jdt.apt.core.prefs Thu Sep  7 14:28:04 2006
@@ -0,0 +1,4 @@
+#Mon Aug 07 18:58:04 MSD 2006
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
+org.eclipse.jdt.apt.genSrcDir=.apt_generated



Mime
View raw message