summaryrefslogtreecommitdiffstats
path: root/das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml
diff options
context:
space:
mode:
Diffstat (limited to 'das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml')
-rw-r--r--das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml67
1 files changed, 67 insertions, 0 deletions
diff --git a/das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml b/das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml
new file mode 100644
index 0000000000..a8b1a0010e
--- /dev/null
+++ b/das-java/branches/das-java-beta1/samples/customer/src/main/resources/Customers.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ 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.
+ -->
+ <Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd">
+
+ <!--Uncomment below for derby test-->
+ <ConnectionInfo>
+ <ConnectionProperties
+ driverClass="org.apache.derby.jdbc.EmbeddedDriver"
+ databaseURL="jdbc:derby:target/dastest; create = true"
+ loginTimeout="600000"/>
+ </ConnectionInfo>
+
+ <!--Uncomment below for db2 test-->
+ <!--<ConnectionInfo dataSource="java:comp/env/jdbc/dastest"
+ contextAvailable="false">
+ <ConnectionProperties
+ dataSourceClass="COM.ibm.db2.jdbc.DB2DataSource"
+ user="amita"
+ password="14-174-58-79-82-202-237-108-121-203-238-10-54-180-181-42"
+ key="193-155-248-97-234-56-100-241"
+ databaseName="DASTEST"
+ loginTimeout="600000">
+ </ConnectionProperties>
+ </ConnectionInfo>-->
+
+ <!--Uncomment below for MySQL test-->
+ <!--<ConnectionInfo dataSource="java:comp/env/jdbc/dastest"
+ contextAvailable="false">
+ <ConnectionProperties
+ dataSourceClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
+ user="root"
+ password="192-8-16-141-148-100-119-119"
+ key="193-155-248-97-234-56-100-241"
+ databaseName="DASTEST"
+ loginTimeout="600000">
+ </ConnectionProperties>
+ </ConnectionInfo>-->
+
+ <Command name="AllCustomers" SQL="select * from CUSTOMER" kind="Select"/>
+
+ <Table tableName="CUSTOMER">
+ <Column columnName="ID" primaryKey="true"/>
+ </Table>
+
+ <Command name="NamedCustomers" SQL="{call GETNAMEDCUSTOMERS(?,?)}" kind="procedure">
+ <Parameter direction="IN" index="1" columnType="commonj.sdo.String"/>
+ <Parameter direction="OUT" index="2" columnType="commonj.sdo.IntObject"/>
+ </Command>
+
+</Config>