summaryrefslogtreecommitdiffstats
path: root/das-cpp/trunk/samples/CompanySample/Readme.html
blob: 335b6b1543627dd9cfdf491097e35c45592cda72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE>Tuscany RDB DAS Sample</TITLE>
	<META NAME="GENERATOR" CONTENT="BrOffice.org 2.0  (Win32)">
	<META NAME="CREATED" CONTENT="20070623;3134782">
	<META NAME="CHANGEDBY" CONTENT="a a">
	<META NAME="CHANGED" CONTENT="20070625;523460">
	<META NAME="ProgId" CONTENT="Word.Document">
	<META NAME="Originator" CONTENT="Microsoft Word 10">
	<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
	<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>IBM_USER</o:Author>
  <o:LastAuthor>IBM_USER</o:LastAuthor>
  <o:Revision>5</o:Revision>
  <o:TotalTime>25</o:TotalTime>
  <o:Created>2006-10-19T16:54:00Z</o:Created>
  <o:LastSaved>2006-10-24T16:41:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>739</o:Words>
  <o:Characters>4216</o:Characters>
  <o:Company>IBM</o:Company>
  <o:Lines>35</o:Lines>
  <o:Paragraphs>9</o:Paragraphs>
  <o:CharactersWithSpaces>4946</o:CharactersWithSpaces>
  <o:Version>10.6735</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
	<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
	<!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
	<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
	<!--[if gte mso 9]><xml>
 <u1:shapelayout u2:ext="edit">
  <u1:idmap u2:ext="edit" data="1"/>
 </u1:shapelayout>
</xml><![endif]-->
	<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="3074"/>
</xml><![endif]-->
	<!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
	<!-- <p class=MsoNormal><span style="font-size: 9pt">&nbsp;</span></p>
<pre><a name="header-text">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
&quot;License&quot;); 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
&quot;AS IS&quot; 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.   </a></pre>
<p class=MsoNormal><span style="font-size: 9pt"><br>
&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:9.0pt'>
<o:p>&nbsp;</o:p></span></p>

-->
	<STYLE>
	<!--
		H1 { color: #000000 }
		P { color: #000000; font-family: "Verdana", "Helvetica", "Arial", sans-serif; font-size: 12pt }
		H2 { background: #dddddd; border: 1px solid #999999; padding-top: 0.11cm; padding-bottom: 0.11cm; padding-left: 0.16cm; padding-right: 0.11cm; color: #990000 }
		A:visited { color: #800080 }
		A:link { color: #3366aa; text-decoration: none }
	-->
	</STYLE>
</HEAD>
<BODY LANG="en-US" TEXT="#000000" LINK="#3366aa" VLINK="#800080" DIR="LTR" STYLE="border: none; padding: 0cm">
<H1 LANG="pt-BR">Tuscany RDB DAS Sample (CompanySample)&nbsp;</H1>
<P LANG="pt-BR">This sample shows how to load data from a RDB
					source, using RDB DAS, into a SDO graph, then retrieve data
					from it, modify the graph and update the data source based on the modified graph.</P>
<H2 LANG="pt-BR">Setup</H2>
<UL>
	<LI><P LANG="pt-BR"><SPAN STYLE="text-decoration: none"><FONT COLOR="#000000">Follow
	the
	<A HREF="https://svn.apache.org/repos/asf/incubator/tuscany/cpp/das/GettingStarted.html">https://svn.apache.org/repos/asf/incubator/tuscany/cpp/das/GettingStarted.html</A>
	document to download, compile and install Tuscany DAS for C++.</FONT></SPAN></P>
	<LI><P  ><SPAN STYLE="text-decoration: none">Download
			the latest version of Postgres Core and ODBC Driver. You can find it
			here: <A HREF="http://www.postgresql.org/download/">http://www.postgresql.org/download/</A>.</SPAN></P>
			<LI><P  ><SPAN STYLE="text-decoration: none">Install both, Postgres Core and ODBC Driver, on your OS.</SPAN></P>

</UL>
<H2 LANG="pt-BR">Compiling the Sample</H2>
<P LANG="pt-BR">Compile the sample source using Visual Studio Express
solution under &lt;tuscany_das_cpp&gt;/samples/CompanySample/VSExpress/.</P>
<H2 LANG="pt-BR">Running the Sample</H2>
<P LANG="pt-BR">To run the sample execute the file
&lt;tuscany_das_cpp&gt;/samples/CompanySample/VSExpress/debug/CompanySample.exe</P>
<P LANG="pt-BR"><B>Requirements</B>:</P>
<UL>
	<LI><P LANG="pt-BR">Postgres server must be running accepting connection from localhost.</P>
				<LI><P  >The sample access a data source using DSN, it by default access a DSN named "DAStestcases" using "postgres" user with "tuscany" password. However this settings can be modified on main function defined on &lt;tuscany_das_cpp&gt;/samples/CompanySample/src/main.cpp:
<P STYLE="margin-left: 2cm; margin-bottom: 0cm"><FONT SIZE=2>...<BR>std::string
		dsn = <FONT COLOR="#800000">&quot;DASCompanySample&quot;</FONT><FONT COLOR="#000000">;</FONT><BR><FONT COLOR="#000000">std::string
		user = <FONT COLOR="#800000">&quot;postgres&quot;</FONT><FONT COLOR="#000000">;</FONT><BR><FONT COLOR="#000000">std::string
		password = <FONT COLOR="#800000">&quot;tuscany&quot;</FONT<FONT COLOR="#000000">;</FONT><BR><FONT COLOR="#000000">...</FONT></FONT></FONT></P>
</UL>
<H2 LANG="pt-BR"><FONT SIZE=5><B>Sample Architecture</B></FONT></H2>
<P LANG="pt-BR"><FONT SIZE=2>The sample files are located under
&lt;tuscany_das_cpp&gt;/samples/CompanySample/.</FONT></P>
<P LANG="pt-BR"><FONT SIZE=2><B>Contents</B>:</FONT></P>

<UL>
	<LI><P LANG="pt-BR"><FONT SIZE=2>/src/main.cpp: This file contains the sample source code.</FONT></P>
</UL>

</BODY>
</HTML>