You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/09/24 07:09:57 UTC
svn commit: r1000710 [40/44] - in /incubator/oodt/site/components/maven:
apidocs/org/apache/oodt/grid/ apidocs/org/apache/oodt/grid/class-use/
apidocs/org/apache/oodt/profile/handlers/cas/
apidocs/org/apache/oodt/profile/handlers/cas/class-use/ apidocs...
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReader.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReader.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReader.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReader.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,206 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>MappingReader xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/xmlps/mapping/MappingReader.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//OODT imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.commons.xml.XMLUtils;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.funcs.MappingFunc;
+<a name="23" href="#23" id="23">23</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.util.GenericCDEObjectFactory;
+<a name="24" href="#24" id="24">24</a>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_comment">//JDK imports</em>
+<a name="26" href="#26" id="26">26</a> <strong class="jxr_keyword">import</strong> java.io.FileInputStream;
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> java.io.InputStream;
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> java.net.URL;
+<a name="29" href="#29" id="29">29</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="30" href="#30" id="30">30</a> <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">import</strong> java.util.Vector;
+<a name="32" href="#32" id="32">32</a> <strong class="jxr_keyword">import</strong> org.w3c.dom.Document;
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">import</strong> org.w3c.dom.Element;
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">import</strong> org.w3c.dom.NamedNodeMap;
+<a name="35" href="#35" id="35">35</a> <strong class="jxr_keyword">import</strong> org.w3c.dom.Node;
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">import</strong> org.w3c.dom.NodeList;
+<a name="37" href="#37" id="37">37</a>
+<a name="38" href="#38" id="38">38</a> <em class="jxr_javadoccomment">/**</em>
+<a name="39" href="#39" id="39">39</a> <em class="jxr_javadoccomment"> * </em>
+<a name="40" href="#40" id="40">40</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="41" href="#41" id="41">41</a> <em class="jxr_javadoccomment"> * A static final reader class for reading {@link Mapping}s.</em>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_javadoccomment"> * </p></em>
+<a name="43" href="#43" id="43">43</a> <em class="jxr_javadoccomment"> * .</em>
+<a name="44" href="#44" id="44">44</a> <em class="jxr_javadoccomment"> */</em>
+<a name="45" href="#45" id="45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingReader.html">MappingReader</a> implements <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html">MappingReaderMetKeys</a> {
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingReader.html">MappingReader</a>() <strong class="jxr_keyword">throws</strong> InstantiationException {
+<a name="48" href="#48" id="48">48</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> InstantiationException(<span class="jxr_string">"Don't construct reader objects!"</span>);
+<a name="49" href="#49" id="49">49</a> }
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> getMapping(InputStream is) <strong class="jxr_keyword">throws</strong> Exception {
+<a name="52" href="#52" id="52">52</a> Document mappingDoc = XMLUtils.getDocumentRoot(is);
+<a name="53" href="#53" id="53">53</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> map = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a>();
+<a name="54" href="#54" id="54">54</a>
+<a name="55" href="#55" id="55">55</a> Element rootElem = mappingDoc.getDocumentElement();
+<a name="56" href="#56" id="56">56</a>
+<a name="57" href="#57" id="57">57</a> map.setId(rootElem.getAttribute(<span class="jxr_string">"id"</span>));
+<a name="58" href="#58" id="58">58</a> map.setName(rootElem.getAttribute(<span class="jxr_string">"name"</span>));
+<a name="59" href="#59" id="59">59</a> readTables(rootElem, map);
+<a name="60" href="#60" id="60">60</a> readFields(rootElem, map);
+<a name="61" href="#61" id="61">61</a>
+<a name="62" href="#62" id="62">62</a> <strong class="jxr_keyword">return</strong> map;
+<a name="63" href="#63" id="63">63</a>
+<a name="64" href="#64" id="64">64</a> }
+<a name="65" href="#65" id="65">65</a>
+<a name="66" href="#66" id="66">66</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> getMapping(URL mappingUrl) <strong class="jxr_keyword">throws</strong> Exception {
+<a name="67" href="#67" id="67">67</a> <strong class="jxr_keyword">return</strong> getMapping(mappingUrl.openStream());
+<a name="68" href="#68" id="68">68</a> }
+<a name="69" href="#69" id="69">69</a>
+<a name="70" href="#70" id="70">70</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> getMapping(String filePath) <strong class="jxr_keyword">throws</strong> Exception {
+<a name="71" href="#71" id="71">71</a> <strong class="jxr_keyword">return</strong> getMapping(<strong class="jxr_keyword">new</strong> FileInputStream(filePath));
+<a name="72" href="#72" id="72">72</a>
+<a name="73" href="#73" id="73">73</a> }
+<a name="74" href="#74" id="74">74</a>
+<a name="75" href="#75" id="75">75</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> readTables(Element rootElem, <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> map)
+<a name="76" href="#76" id="76">76</a> <strong class="jxr_keyword">throws</strong> Exception {
+<a name="77" href="#77" id="77">77</a> Element tblsElem = XMLUtils.getFirstElement(TABLES_OUTER_TAG, rootElem);
+<a name="78" href="#78" id="78">78</a> <strong class="jxr_keyword">if</strong> (tblsElem == <strong class="jxr_keyword">null</strong>) {
+<a name="79" href="#79" id="79">79</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Unable to parse mapping XML file: ["</span> + map.getName()
+<a name="80" href="#80" id="80">80</a> + <span class="jxr_string">"]: reason: no defined tables tag element!"</span>);
+<a name="81" href="#81" id="81">81</a>
+<a name="82" href="#82" id="82">82</a> }
+<a name="83" href="#83" id="83">83</a>
+<a name="84" href="#84" id="84">84</a> String defaultTbl = tblsElem.getAttribute(<span class="jxr_string">"default"</span>);
+<a name="85" href="#85" id="85">85</a> <em class="jxr_comment">// make sure that the default attribute is set</em>
+<a name="86" href="#86" id="86">86</a> <strong class="jxr_keyword">if</strong> (defaultTbl == <strong class="jxr_keyword">null</strong> || (defaultTbl != <strong class="jxr_keyword">null</strong> && defaultTbl.equals(<span class="jxr_string">""</span>))) {
+<a name="87" href="#87" id="87">87</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Unable to parse mapping XML file: ["</span> + map.getName()
+<a name="88" href="#88" id="88">88</a> + <span class="jxr_string">"]: reason: there needs to be a default table defined "</span>
+<a name="89" href="#89" id="89">89</a> + <span class="jxr_string">"by the \"default\" attribute!"</span>);
+<a name="90" href="#90" id="90">90</a> }
+<a name="91" href="#91" id="91">91</a>
+<a name="92" href="#92" id="92">92</a> map.setDefaultTable(defaultTbl);
+<a name="93" href="#93" id="93">93</a>
+<a name="94" href="#94" id="94">94</a> <em class="jxr_comment">// get a list of all the tables, and process them one by one</em>
+<a name="95" href="#95" id="95">95</a> NodeList tableNodes = tblsElem.getElementsByTagName(TABLE_TAG);
+<a name="96" href="#96" id="96">96</a> <strong class="jxr_keyword">if</strong> (tableNodes != <strong class="jxr_keyword">null</strong> && tableNodes.getLength() > 0) {
+<a name="97" href="#97" id="97">97</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < tableNodes.getLength(); i++) {
+<a name="98" href="#98" id="98">98</a> Element tableElem = (Element) tableNodes.item(i);
+<a name="99" href="#99" id="99">99</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a> tbl = readTable(tableElem);
+<a name="100" href="#100" id="100">100</a> map.addTable(tbl.getName(), tbl);
+<a name="101" href="#101" id="101">101</a> }
+<a name="102" href="#102" id="102">102</a> }
+<a name="103" href="#103" id="103">103</a> }
+<a name="104" href="#104" id="104">104</a>
+<a name="105" href="#105" id="105">105</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a> readTable(Element tableElem) {
+<a name="106" href="#106" id="106">106</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a> tbl = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/DatabaseTable.html">DatabaseTable</a>();
+<a name="107" href="#107" id="107">107</a> tbl.setJoinFieldName(tableElem.getAttribute(TABLE_ATTR_JOIN_FLD));
+<a name="108" href="#108" id="108">108</a> tbl.setName(tableElem.getAttribute(TABLE_ATTR_NAME));
+<a name="109" href="#109" id="109">109</a> tbl.setDefaultTableJoinFieldName(tableElem
+<a name="110" href="#110" id="110">110</a> .getAttribute(TABLE_ATTR_BASE_TBL_JOIN_FLD));
+<a name="111" href="#111" id="111">111</a> tbl.setDefaultTableJoin(tableElem
+<a name="112" href="#112" id="112">112</a> .getAttribute(TABLE_ATTR_BASE_TBL_JOIN_TABLE));
+<a name="113" href="#113" id="113">113</a> <strong class="jxr_keyword">return</strong> tbl;
+<a name="114" href="#114" id="114">114</a> }
+<a name="115" href="#115" id="115">115</a>
+<a name="116" href="#116" id="116">116</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> readFields(Element rootElem, <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> map) {
+<a name="117" href="#117" id="117">117</a> NodeList fldNodes = rootElem.getElementsByTagName(FIELD_TAG);
+<a name="118" href="#118" id="118">118</a>
+<a name="119" href="#119" id="119">119</a> <strong class="jxr_keyword">if</strong> (fldNodes != <strong class="jxr_keyword">null</strong> && fldNodes.getLength() > 0) {
+<a name="120" href="#120" id="120">120</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < fldNodes.getLength(); i++) {
+<a name="121" href="#121" id="121">121</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingField.html">MappingField</a> fld = readField((Element) fldNodes.item(i));
+<a name="122" href="#122" id="122">122</a> map.addField(fld.getName(), fld);
+<a name="123" href="#123" id="123">123</a> }
+<a name="124" href="#124" id="124">124</a> }
+<a name="125" href="#125" id="125">125</a>
+<a name="126" href="#126" id="126">126</a> }
+<a name="127" href="#127" id="127">127</a>
+<a name="128" href="#128" id="128">128</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingField.html">MappingField</a> readField(Element fldElem) {
+<a name="129" href="#129" id="129">129</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingField.html">MappingField</a> field = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingField.html">MappingField</a>();
+<a name="130" href="#130" id="130">130</a> field.setTableName(fldElem.getAttribute(FIELD_ATTR_TABLE));
+<a name="131" href="#131" id="131">131</a> field.setName(fldElem.getAttribute(FIELD_ATTR_NAME));
+<a name="132" href="#132" id="132">132</a> field
+<a name="133" href="#133" id="133">133</a> .setType(fldElem.getAttribute(FIELD_ATTR_TYPE).equals(<span class="jxr_string">"dynamic"</span>) ? FieldType.DYNAMIC
+<a name="134" href="#134" id="134">134</a> : FieldType.CONSTANT);
+<a name="135" href="#135" id="135">135</a> field.setString(Boolean.valueOf(fldElem.getAttribute(FIELD_ATTR_STRING)));
+<a name="136" href="#136" id="136">136</a> field.setConstantValue(fldElem.getAttribute(FIELD_ATTR_VALUE));
+<a name="137" href="#137" id="137">137</a> field.setDbName(fldElem.getAttribute(FIELD_ATTR_DBNAME));
+<a name="138" href="#138" id="138">138</a> <strong class="jxr_keyword">if</strong> (fldElem.getAttribute(FIELD_ATTR_SCOPE) != <strong class="jxr_keyword">null</strong>
+<a name="139" href="#139" id="139">139</a> && !fldElem.getAttribute(FIELD_ATTR_SCOPE).equals(<span class="jxr_string">""</span>)) {
+<a name="140" href="#140" id="140">140</a>
+<a name="141" href="#141" id="141">141</a> field
+<a name="142" href="#142" id="142">142</a> .setScope(fldElem.getAttribute(FIELD_ATTR_SCOPE).equals(<span class="jxr_string">"query"</span>) ? FieldScope.QUERY
+<a name="143" href="#143" id="143">143</a> : FieldScope.RETURN);
+<a name="144" href="#144" id="144">144</a> }
+<a name="145" href="#145" id="145">145</a>
+<a name="146" href="#146" id="146">146</a> field.setFuncs(getTranslateFuncs(fldElem));
+<a name="147" href="#147" id="147">147</a> field.setAppendTableName(Boolean.valueOf(fldElem
+<a name="148" href="#148" id="148">148</a> .getAttribute(FIELD_ATTR_APPEND_TABLE_NAME)));
+<a name="149" href="#149" id="149">149</a>
+<a name="150" href="#150" id="150">150</a> <strong class="jxr_keyword">return</strong> field;
+<a name="151" href="#151" id="151">151</a>
+<a name="152" href="#152" id="152">152</a> }
+<a name="153" href="#153" id="153">153</a>
+<a name="154" href="#154" id="154">154</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> List<MappingFunc> getTranslateFuncs(Element fldElem) {
+<a name="155" href="#155" id="155">155</a> Element translateElem = XMLUtils.getFirstElement(FIELD_TRANSLATE_TAG,
+<a name="156" href="#156" id="156">156</a> fldElem);
+<a name="157" href="#157" id="157">157</a>
+<a name="158" href="#158" id="158">158</a> List<MappingFunc> funcs = <strong class="jxr_keyword">new</strong> Vector<MappingFunc>();
+<a name="159" href="#159" id="159">159</a>
+<a name="160" href="#160" id="160">160</a> <strong class="jxr_keyword">if</strong> (translateElem != <strong class="jxr_keyword">null</strong>) {
+<a name="161" href="#161" id="161">161</a> <em class="jxr_comment">// check for func tags</em>
+<a name="162" href="#162" id="162">162</a> NodeList funcNodes = translateElem.getElementsByTagName(FUNC_TAG);
+<a name="163" href="#163" id="163">163</a> <strong class="jxr_keyword">if</strong> (funcNodes != <strong class="jxr_keyword">null</strong> && funcNodes.getLength() > 0) {
+<a name="164" href="#164" id="164">164</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < funcNodes.getLength(); i++) {
+<a name="165" href="#165" id="165">165</a> Element funcElem = (Element) funcNodes.item(i);
+<a name="166" href="#166" id="166">166</a> funcs.add(getFunc(funcElem));
+<a name="167" href="#167" id="167">167</a> }
+<a name="168" href="#168" id="168">168</a> }
+<a name="169" href="#169" id="169">169</a> }
+<a name="170" href="#170" id="170">170</a>
+<a name="171" href="#171" id="171">171</a> <strong class="jxr_keyword">return</strong> funcs;
+<a name="172" href="#172" id="172">172</a> }
+<a name="173" href="#173" id="173">173</a>
+<a name="174" href="#174" id="174">174</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">MappingFunc</a> getFunc(Element funcElem) {
+<a name="175" href="#175" id="175">175</a> String funcClass = funcElem.getAttribute(FUNC_ATTR_CLASS);
+<a name="176" href="#176" id="176">176</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">MappingFunc</a> func = <a href="../../../../../org/apache/oodt/xmlps/util/GenericCDEObjectFactory.html">GenericCDEObjectFactory</a>
+<a name="177" href="#177" id="177">177</a> .getMappingFuncFromClassName(funcClass);
+<a name="178" href="#178" id="178">178</a>
+<a name="179" href="#179" id="179">179</a> <strong class="jxr_keyword">if</strong> (func != <strong class="jxr_keyword">null</strong>) {
+<a name="180" href="#180" id="180">180</a> func.configure(getPropsFromElementAttrs(funcElem.getAttributes()));
+<a name="181" href="#181" id="181">181</a> }
+<a name="182" href="#182" id="182">182</a>
+<a name="183" href="#183" id="183">183</a> <strong class="jxr_keyword">return</strong> func;
+<a name="184" href="#184" id="184">184</a> }
+<a name="185" href="#185" id="185">185</a>
+<a name="186" href="#186" id="186">186</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Properties getPropsFromElementAttrs(NamedNodeMap map) {
+<a name="187" href="#187" id="187">187</a> Properties props = <strong class="jxr_keyword">new</strong> Properties();
+<a name="188" href="#188" id="188">188</a>
+<a name="189" href="#189" id="189">189</a> <strong class="jxr_keyword">if</strong> (map != <strong class="jxr_keyword">null</strong>) {
+<a name="190" href="#190" id="190">190</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < map.getLength(); i++) {
+<a name="191" href="#191" id="191">191</a> Node mapNode = map.item(i);
+<a name="192" href="#192" id="192">192</a> props.setProperty(mapNode.getNodeName(), mapNode.getNodeValue());
+<a name="193" href="#193" id="193">193</a> }
+<a name="194" href="#194" id="194">194</a> }
+<a name="195" href="#195" id="195">195</a>
+<a name="196" href="#196" id="196">196</a> <strong class="jxr_keyword">return</strong> props;
+<a name="197" href="#197" id="197">197</a> }
+<a name="198" href="#198" id="198">198</a>
+<a name="199" href="#199" id="199">199</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>MappingReaderMetKeys xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a>
+<a name="19" href="#19" id="19">19</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping;
+<a name="20" href="#20" id="20">20</a>
+<a name="21" href="#21" id="21">21</a> <em class="jxr_javadoccomment">/**</em>
+<a name="22" href="#22" id="22">22</a> <em class="jxr_javadoccomment"> * </em>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_javadoccomment"> * Met Keys for the {@link MappingReader}</em>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_javadoccomment"> * </p>.</em>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment"> */</em>
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingReaderMetKeys.html">MappingReaderMetKeys</a> {
+<a name="28" href="#28" id="28">28</a>
+<a name="29" href="#29" id="29">29</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_TAG = <span class="jxr_string">"field"</span>;
+<a name="30" href="#30" id="30">30</a>
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLES_OUTER_TAG = <span class="jxr_string">"tables"</span>;
+<a name="32" href="#32" id="32">32</a>
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLE_TAG = <span class="jxr_string">"table"</span>;
+<a name="34" href="#34" id="34">34</a>
+<a name="35" href="#35" id="35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLE_ATTR_JOIN_FLD = <span class="jxr_string">"join"</span>;
+<a name="36" href="#36" id="36">36</a>
+<a name="37" href="#37" id="37">37</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLE_ATTR_BASE_TBL_JOIN_TABLE = <span class="jxr_string">"to"</span>;
+<a name="38" href="#38" id="38">38</a>
+<a name="39" href="#39" id="39">39</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLE_ATTR_BASE_TBL_JOIN_FLD = <span class="jxr_string">"tofld"</span>;
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String TABLE_ATTR_NAME = <span class="jxr_string">"name"</span>;
+<a name="42" href="#42" id="42">42</a>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_TYPE = <span class="jxr_string">"type"</span>;
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_NAME = <span class="jxr_string">"name"</span>;
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_DBNAME = <span class="jxr_string">"dbname"</span>;
+<a name="48" href="#48" id="48">48</a>
+<a name="49" href="#49" id="49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_SCOPE = <span class="jxr_string">"scope"</span>;
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_VALUE = <span class="jxr_string">"value"</span>;
+<a name="52" href="#52" id="52">52</a>
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_TABLE = <span class="jxr_string">"table"</span>;
+<a name="54" href="#54" id="54">54</a>
+<a name="55" href="#55" id="55">55</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_STRING = <span class="jxr_string">"string"</span>;
+<a name="56" href="#56" id="56">56</a>
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_TRANSLATE_TAG = <span class="jxr_string">"translate"</span>;
+<a name="58" href="#58" id="58">58</a>
+<a name="59" href="#59" id="59">59</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FUNC_TAG = <span class="jxr_string">"func"</span>;
+<a name="60" href="#60" id="60">60</a>
+<a name="61" href="#61" id="61">61</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FUNC_ATTR_CLASS = <span class="jxr_string">"class"</span>;
+<a name="62" href="#62" id="62">62</a>
+<a name="63" href="#63" id="63">63</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FIELD_ATTR_APPEND_TABLE_NAME = <span class="jxr_string">"appendTableName"</span>;
+<a name="64" href="#64" id="64">64</a>
+<a name="65" href="#65" id="65">65</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,71 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>MappingFunc xref</title><link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping.funcs;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//JDK imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="22" href="#22" id="22">22</a>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_comment">//OODT imports</em>
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDEValue;
+<a name="25" href="#25" id="25">25</a>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment">/**</em>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_javadoccomment"> * </em>
+<a name="28" href="#28" id="28">28</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment"> * A function to convert {@link CDEValue}s from a CDE domain vocabulary into a</em>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment"> * SDE domain vocabulary</em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * </p>.</em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> */</em>
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../../org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">MappingFunc</a> {
+<a name="34" href="#34" id="34">34</a>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment">/**</em>
+<a name="36" href="#36" id="36">36</a> <em class="jxr_javadoccomment"> * Translates the original CDE {@link CDEValue} into a local site's SDE</em>
+<a name="37" href="#37" id="37">37</a> <em class="jxr_javadoccomment"> * {@link CDEValue}.</em>
+<a name="38" href="#38" id="38">38</a> <em class="jxr_javadoccomment"> * </em>
+<a name="39" href="#39" id="39">39</a> <em class="jxr_javadoccomment"> * @param orig</em>
+<a name="40" href="#40" id="40">40</a> <em class="jxr_javadoccomment"> * The original {@link CDEValue} to translate.</em>
+<a name="41" href="#41" id="41">41</a> <em class="jxr_javadoccomment"> * @return The translated {@link CDEValue}.</em>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_javadoccomment"> */</em>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> translate(<a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> orig);
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_javadoccomment">/**</em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_javadoccomment"> * Translates the local site's SDE {@link CDEValue} back into its CDE</em>
+<a name="47" href="#47" id="47">47</a> <em class="jxr_javadoccomment"> * {@link CDEValue}.</em>
+<a name="48" href="#48" id="48">48</a> <em class="jxr_javadoccomment"> * </em>
+<a name="49" href="#49" id="49">49</a> <em class="jxr_javadoccomment"> * @param orig</em>
+<a name="50" href="#50" id="50">50</a> <em class="jxr_javadoccomment"> * The local site's SDE {@link CDEValue} to translate back into</em>
+<a name="51" href="#51" id="51">51</a> <em class="jxr_javadoccomment"> * a CDE.</em>
+<a name="52" href="#52" id="52">52</a> <em class="jxr_javadoccomment"> * @return The translated {@link CDEValue}.</em>
+<a name="53" href="#53" id="53">53</a> <em class="jxr_javadoccomment"> */</em>
+<a name="54" href="#54" id="54">54</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> inverseTranslate(<a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> orig);
+<a name="55" href="#55" id="55">55</a>
+<a name="56" href="#56" id="56">56</a> <em class="jxr_javadoccomment">/**</em>
+<a name="57" href="#57" id="57">57</a> <em class="jxr_javadoccomment"> * Configures the MappingFunc with the appropriate {@link Properties}.</em>
+<a name="58" href="#58" id="58">58</a> <em class="jxr_javadoccomment"> * </em>
+<a name="59" href="#59" id="59">59</a> <em class="jxr_javadoccomment"> * @param props</em>
+<a name="60" href="#60" id="60">60</a> <em class="jxr_javadoccomment"> * The {@link Properties} to use to configure the MappingFunc.</em>
+<a name="61" href="#61" id="61">61</a> <em class="jxr_javadoccomment"> */</em>
+<a name="62" href="#62" id="62">62</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> configure(Properties props);
+<a name="63" href="#63" id="63">63</a>
+<a name="64" href="#64" id="64">64</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ReplaceFunc xref</title><link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping.funcs;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//JDK imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="22" href="#22" id="22">22</a>
+<a name="23" href="#23" id="23">23</a> <em class="jxr_comment">//OODT imports</em>
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDEValue;
+<a name="25" href="#25" id="25">25</a>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment">/**</em>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_javadoccomment"> * </em>
+<a name="28" href="#28" id="28">28</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment"> * Describe your class here</em>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment"> * </p>.</em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> */</em>
+<a name="32" href="#32" id="32">32</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html">ReplaceFunc</a> implements <a href="../../../../../../org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">MappingFunc</a> {
+<a name="33" href="#33" id="33">33</a>
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">private</strong> String orig;
+<a name="35" href="#35" id="35">35</a>
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">private</strong> String with;
+<a name="37" href="#37" id="37">37</a>
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/xmlps/mapping/funcs/ReplaceFunc.html">ReplaceFunc</a>() {
+<a name="39" href="#39" id="39">39</a>
+<a name="40" href="#40" id="40">40</a> }
+<a name="41" href="#41" id="41">41</a>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_comment">/*</em>
+<a name="43" href="#43" id="43">43</a> <em class="jxr_comment"> * (non-Javadoc)</em>
+<a name="44" href="#44" id="44">44</a> <em class="jxr_comment"> * </em>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_comment"> * @see org.apache.oodt.xmlps.mapping.funcs.MappingFunc#translate(org.apache.oodt.xmlps.structs.CDEValue)</em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_comment"> */</em>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> translate(<a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> orig) {
+<a name="48" href="#48" id="48">48</a> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> cdeVal = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a>(orig.getCdeName(), orig.getVal());
+<a name="49" href="#49" id="49">49</a> String newVal = orig.getVal().equals(<strong class="jxr_keyword">this</strong>.orig) ? with : orig.getVal();
+<a name="50" href="#50" id="50">50</a> cdeVal.setVal(newVal);
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">return</strong> cdeVal;
+<a name="52" href="#52" id="52">52</a> }
+<a name="53" href="#53" id="53">53</a>
+<a name="54" href="#54" id="54">54</a> <em class="jxr_comment">/*</em>
+<a name="55" href="#55" id="55">55</a> <em class="jxr_comment"> * (non-Javadoc)</em>
+<a name="56" href="#56" id="56">56</a> <em class="jxr_comment"> * </em>
+<a name="57" href="#57" id="57">57</a> <em class="jxr_comment"> * @see org.apache.oodt.xmlps.mapping.funcs.MappingFunc#configure(java.util.Properties)</em>
+<a name="58" href="#58" id="58">58</a> <em class="jxr_comment"> */</em>
+<a name="59" href="#59" id="59">59</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> configure(Properties props) {
+<a name="60" href="#60" id="60">60</a> orig = props.getProperty(<span class="jxr_string">"orig"</span>);
+<a name="61" href="#61" id="61">61</a> with = props.getProperty(<span class="jxr_string">"with"</span>);
+<a name="62" href="#62" id="62">62</a> }
+<a name="63" href="#63" id="63">63</a>
+<a name="64" href="#64" id="64">64</a> <em class="jxr_comment">/*</em>
+<a name="65" href="#65" id="65">65</a> <em class="jxr_comment"> * (non-Javadoc)</em>
+<a name="66" href="#66" id="66">66</a> <em class="jxr_comment"> * </em>
+<a name="67" href="#67" id="67">67</a> <em class="jxr_comment"> * @see org.apache.oodt.xmlps.mapping.funcs.MappingFunc#inverseTranslate(org.apache.oodt.xmlps.structs.CDEValue)</em>
+<a name="68" href="#68" id="68">68</a> <em class="jxr_comment"> */</em>
+<a name="69" href="#69" id="69">69</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> inverseTranslate(<a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> orig) {
+<a name="70" href="#70" id="70">70</a> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> cdeVal = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a>(orig.getCdeName(), orig.getVal());
+<a name="71" href="#71" id="71">71</a> String newVal = orig.getVal().equals(<strong class="jxr_keyword">this</strong>.with) ? <strong class="jxr_keyword">this</strong>.orig : orig
+<a name="72" href="#72" id="72">72</a> .getVal();
+<a name="73" href="#73" id="73">73</a> cdeVal.setVal(newVal);
+<a name="74" href="#74" id="74">74</a> <strong class="jxr_keyword">return</strong> cdeVal;
+<a name="75" href="#75" id="75">75</a> }
+<a name="76" href="#76" id="76">76</a>
+<a name="77" href="#77" id="77">77</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping.funcs</title><link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.mapping.funcs</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="MappingFunc.html" target="classFrame">MappingFunc</a>
+ </li>
+ <li>
+ <a href="ReplaceFunc.html" target="classFrame">ReplaceFunc</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/funcs/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,44 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping.funcs</title><link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.mapping.funcs</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="MappingFunc.html" target="classFrame">MappingFunc</a>
+ </td>
+ </tr><tr><td>
+ <a href="ReplaceFunc.html" target="classFrame">ReplaceFunc</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,47 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.mapping</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="FieldType.html" target="classFrame">ConstantFieldType</a>
+ </li>
+ <li>
+ <a href="DatabaseTable.html" target="classFrame">DatabaseTable</a>
+ </li>
+ <li>
+ <a href="DatabaseTableGroup.html" target="classFrame">DatabaseTableGroup</a>
+ </li>
+ <li>
+ <a href="FieldType.html" target="classFrame">DynamicFieldType</a>
+ </li>
+ <li>
+ <a href="FieldScope.html" target="classFrame">FieldScope</a>
+ </li>
+ <li>
+ <a href="FieldType.html" target="classFrame">FieldType</a>
+ </li>
+ <li>
+ <a href="Mapping.html" target="classFrame">Mapping</a>
+ </li>
+ <li>
+ <a href="MappingField.html" target="classFrame">MappingField</a>
+ </li>
+ <li>
+ <a href="MappingReader.html" target="classFrame">MappingReader</a>
+ </li>
+ <li>
+ <a href="MappingReaderMetKeys.html" target="classFrame">MappingReaderMetKeys</a>
+ </li>
+ <li>
+ <a href="FieldScope.html" target="classFrame">QueryFieldScope</a>
+ </li>
+ <li>
+ <a href="FieldScope.html" target="classFrame">ReturnFieldScope</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/mapping/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,74 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.mapping</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="FieldType.html" target="classFrame">ConstantFieldType</a>
+ </td>
+ </tr><tr><td>
+ <a href="DatabaseTable.html" target="classFrame">DatabaseTable</a>
+ </td>
+ </tr><tr><td>
+ <a href="DatabaseTableGroup.html" target="classFrame">DatabaseTableGroup</a>
+ </td>
+ </tr><tr><td>
+ <a href="FieldType.html" target="classFrame">DynamicFieldType</a>
+ </td>
+ </tr><tr><td>
+ <a href="FieldScope.html" target="classFrame">FieldScope</a>
+ </td>
+ </tr><tr><td>
+ <a href="FieldType.html" target="classFrame">FieldType</a>
+ </td>
+ </tr><tr><td>
+ <a href="Mapping.html" target="classFrame">Mapping</a>
+ </td>
+ </tr><tr><td>
+ <a href="MappingField.html" target="classFrame">MappingField</a>
+ </td>
+ </tr><tr><td>
+ <a href="MappingReader.html" target="classFrame">MappingReader</a>
+ </td>
+ </tr><tr><td>
+ <a href="MappingReaderMetKeys.html" target="classFrame">MappingReaderMetKeys</a>
+ </td>
+ </tr><tr><td>
+ <a href="FieldScope.html" target="classFrame">QueryFieldScope</a>
+ </td>
+ </tr><tr><td>
+ <a href="FieldScope.html" target="classFrame">ReturnFieldScope</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/product/DBMSExecutor.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/product/DBMSExecutor.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/product/DBMSExecutor.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/xmlps/product/DBMSExecutor.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,152 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DBMSExecutor xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/oodt/xmlps/product/DBMSExecutor.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.product;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//OODT imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.commons.database.DatabaseConnectionBuilder;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.Mapping;
+<a name="23" href="#23" id="23">23</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.FieldType;
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.MappingField;
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.funcs.MappingFunc;
+<a name="26" href="#26" id="26">26</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDEResult;
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDERow;
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDEValue;
+<a name="29" href="#29" id="29">29</a>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_comment">//JDK imports</em>
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">import</strong> java.sql.Connection;
+<a name="32" href="#32" id="32">32</a> <strong class="jxr_keyword">import</strong> java.sql.ResultSet;
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">import</strong> java.sql.SQLException;
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">import</strong> java.sql.Statement;
+<a name="35" href="#35" id="35">35</a> <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="37" href="#37" id="37">37</a> <strong class="jxr_keyword">import</strong> java.util.logging.Level;
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">import</strong> java.util.logging.Logger;
+<a name="39" href="#39" id="39">39</a> <strong class="jxr_keyword">import</strong> javax.sql.DataSource;
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <em class="jxr_javadoccomment">/**</em>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_javadoccomment"> * </em>
+<a name="43" href="#43" id="43">43</a> <em class="jxr_javadoccomment"> * <p></em>
+<a name="44" href="#44" id="44">44</a> <em class="jxr_javadoccomment"> * Executes CDE Queries against an underlying JDBC database, backed by Apache</em>
+<a name="45" href="#45" id="45">45</a> <em class="jxr_javadoccomment"> * commons-pool and commons-dbcp.</em>
+<a name="46" href="#46" id="46">46</a> <em class="jxr_javadoccomment"> * </p></em>
+<a name="47" href="#47" id="47">47</a> <em class="jxr_javadoccomment"> * .</em>
+<a name="48" href="#48" id="48">48</a> <em class="jxr_javadoccomment"> */</em>
+<a name="49" href="#49" id="49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/product/DBMSExecutor.html">DBMSExecutor</a> {
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">private</strong> DataSource dataSource;
+<a name="52" href="#52" id="52">52</a>
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOG = Logger.getLogger(DBMSExecutor.<strong class="jxr_keyword">class</strong>
+<a name="54" href="#54" id="54">54</a> .getName());
+<a name="55" href="#55" id="55">55</a>
+<a name="56" href="#56" id="56">56</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/product/DBMSExecutor.html">DBMSExecutor</a>() {
+<a name="57" href="#57" id="57">57</a> String jdbcUrl = System.getProperty(<span class="jxr_string">"xmlps.datasource.jdbc.url"</span>);
+<a name="58" href="#58" id="58">58</a> String user = System.getProperty(<span class="jxr_string">"xmlps.datasource.jdbc.user"</span>);
+<a name="59" href="#59" id="59">59</a> String pass = System.getProperty(<span class="jxr_string">"xmlps.datasource.jdbc.pass"</span>);
+<a name="60" href="#60" id="60">60</a> String driver = System.getProperty(<span class="jxr_string">"xmlps.datasource.jdbc.driver"</span>);
+<a name="61" href="#61" id="61">61</a> dataSource = DatabaseConnectionBuilder.buildDataSource(user, pass, driver,
+<a name="62" href="#62" id="62">62</a> jdbcUrl);
+<a name="63" href="#63" id="63">63</a> }
+<a name="64" href="#64" id="64">64</a>
+<a name="65" href="#65" id="65">65</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEResult.html">CDEResult</a> executeLocalQuery(<a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> map, String sql,
+<a name="66" href="#66" id="66">66</a> List<String> returnNames) <strong class="jxr_keyword">throws</strong> SQLException {
+<a name="67" href="#67" id="67">67</a> Connection conn = <strong class="jxr_keyword">null</strong>;
+<a name="68" href="#68" id="68">68</a> Statement statement = <strong class="jxr_keyword">null</strong>;
+<a name="69" href="#69" id="69">69</a>
+<a name="70" href="#70" id="70">70</a> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEResult.html">CDEResult</a> result = <strong class="jxr_keyword">null</strong>;
+<a name="71" href="#71" id="71">71</a>
+<a name="72" href="#72" id="72">72</a> <strong class="jxr_keyword">try</strong> {
+<a name="73" href="#73" id="73">73</a> conn = dataSource.getConnection();
+<a name="74" href="#74" id="74">74</a> statement = conn.createStatement();
+<a name="75" href="#75" id="75">75</a> ResultSet rs = statement.executeQuery(sql);
+<a name="76" href="#76" id="76">76</a>
+<a name="77" href="#77" id="77">77</a> result = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEResult.html">CDEResult</a>();
+<a name="78" href="#78" id="78">78</a>
+<a name="79" href="#79" id="79">79</a> <strong class="jxr_keyword">while</strong> (rs.next()) {
+<a name="80" href="#80" id="80">80</a> <a href="../../../../../org/apache/oodt/xmlps/structs/CDERow.html">CDERow</a> row = toCDERow(rs, map, returnNames);
+<a name="81" href="#81" id="81">81</a> result.getRows().add(row);
+<a name="82" href="#82" id="82">82</a> }
+<a name="83" href="#83" id="83">83</a>
+<a name="84" href="#84" id="84">84</a> } <strong class="jxr_keyword">catch</strong> (SQLException e) {
+<a name="85" href="#85" id="85">85</a> e.printStackTrace();
+<a name="86" href="#86" id="86">86</a> <strong class="jxr_keyword">throw</strong> e;
+<a name="87" href="#87" id="87">87</a> } <strong class="jxr_keyword">finally</strong> {
+<a name="88" href="#88" id="88">88</a> <strong class="jxr_keyword">if</strong> (statement != <strong class="jxr_keyword">null</strong>) {
+<a name="89" href="#89" id="89">89</a> <strong class="jxr_keyword">try</strong> {
+<a name="90" href="#90" id="90">90</a> statement.close();
+<a name="91" href="#91" id="91">91</a> } <strong class="jxr_keyword">catch</strong> (Exception ignore) {
+<a name="92" href="#92" id="92">92</a> }
+<a name="93" href="#93" id="93">93</a>
+<a name="94" href="#94" id="94">94</a> statement = <strong class="jxr_keyword">null</strong>;
+<a name="95" href="#95" id="95">95</a> }
+<a name="96" href="#96" id="96">96</a>
+<a name="97" href="#97" id="97">97</a> <strong class="jxr_keyword">if</strong> (conn != <strong class="jxr_keyword">null</strong>) {
+<a name="98" href="#98" id="98">98</a> <strong class="jxr_keyword">try</strong> {
+<a name="99" href="#99" id="99">99</a> conn.close();
+<a name="100" href="#100" id="100">100</a> } <strong class="jxr_keyword">catch</strong> (Exception ignore) {
+<a name="101" href="#101" id="101">101</a> }
+<a name="102" href="#102" id="102">102</a>
+<a name="103" href="#103" id="103">103</a> conn = <strong class="jxr_keyword">null</strong>;
+<a name="104" href="#104" id="104">104</a> }
+<a name="105" href="#105" id="105">105</a> }
+<a name="106" href="#106" id="106">106</a>
+<a name="107" href="#107" id="107">107</a> <strong class="jxr_keyword">return</strong> result;
+<a name="108" href="#108" id="108">108</a>
+<a name="109" href="#109" id="109">109</a> }
+<a name="110" href="#110" id="110">110</a>
+<a name="111" href="#111" id="111">111</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/oodt/xmlps/structs/CDERow.html">CDERow</a> toCDERow(ResultSet rs, <a href="../../../../../org/apache/oodt/xmlps/mapping/Mapping.html">Mapping</a> map, List<String> returnNames) {
+<a name="112" href="#112" id="112">112</a> <a href="../../../../../org/apache/oodt/xmlps/structs/CDERow.html">CDERow</a> row = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/structs/CDERow.html">CDERow</a>();
+<a name="113" href="#113" id="113">113</a> <strong class="jxr_keyword">if</strong> (returnNames != <strong class="jxr_keyword">null</strong> && returnNames.size() > 0) {
+<a name="114" href="#114" id="114">114</a> <strong class="jxr_keyword">for</strong> (Iterator<String> i = returnNames.iterator(); i.hasNext();) {
+<a name="115" href="#115" id="115">115</a> String retName = i.next();
+<a name="116" href="#116" id="116">116</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/MappingField.html">MappingField</a> fld = map.getFieldByLocalName(retName);
+<a name="117" href="#117" id="117">117</a> <em class="jxr_comment">// only handle dynamic fields here</em>
+<a name="118" href="#118" id="118">118</a> <em class="jxr_comment">// if it was a constant field, then it will be dealt with</em>
+<a name="119" href="#119" id="119">119</a> <em class="jxr_comment">// later</em>
+<a name="120" href="#120" id="120">120</a> <strong class="jxr_keyword">if</strong> (fld.getType().equals(FieldType.DYNAMIC)) {
+<a name="121" href="#121" id="121">121</a> <em class="jxr_comment">// go ahead and add it in</em>
+<a name="122" href="#122" id="122">122</a> <strong class="jxr_keyword">try</strong> {
+<a name="123" href="#123" id="123">123</a> String elemDbVal = rs.getString(retName);
+<a name="124" href="#124" id="124">124</a> <strong class="jxr_keyword">for</strong> (Iterator<MappingFunc> j = fld.getFuncs().iterator(); j
+<a name="125" href="#125" id="125">125</a> .hasNext();) {
+<a name="126" href="#126" id="126">126</a> <a href="../../../../../org/apache/oodt/xmlps/mapping/funcs/MappingFunc.html">MappingFunc</a> func = j.next();
+<a name="127" href="#127" id="127">127</a> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> origVal = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a>(fld.getName(), elemDbVal);
+<a name="128" href="#128" id="128">128</a> <a href="../../../../../org/apache/oodt/xmlps/structs/CDEValue.html">CDEValue</a> newVal = func.inverseTranslate(origVal);
+<a name="129" href="#129" id="129">129</a> elemDbVal = newVal.getVal();
+<a name="130" href="#130" id="130">130</a> }
+<a name="131" href="#131" id="131">131</a>
+<a name="132" href="#132" id="132">132</a> row.getVals().add(<strong class="jxr_keyword">new</strong> CDEValue(fld.getName(), elemDbVal));
+<a name="133" href="#133" id="133">133</a> } <strong class="jxr_keyword">catch</strong> (SQLException e) {
+<a name="134" href="#134" id="134">134</a> LOG.log(Level.WARNING, <span class="jxr_string">"Unable to obtain field: ["</span> + retName
+<a name="135" href="#135" id="135">135</a> + <span class="jxr_string">"] from result set: message: "</span> + e.getMessage());
+<a name="136" href="#136" id="136">136</a> }
+<a name="137" href="#137" id="137">137</a> }
+<a name="138" href="#138" id="138">138</a> }
+<a name="139" href="#139" id="139">139</a> }
+<a name="140" href="#140" id="140">140</a>
+<a name="141" href="#141" id="141">141</a> <strong class="jxr_keyword">return</strong> row;
+<a name="142" href="#142" id="142">142</a>
+<a name="143" href="#143" id="143">143</a> }
+<a name="144" href="#144" id="144">144</a>
+<a name="145" href="#145" id="145">145</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file