[teiid-commits] teiid SVN: r1935 - in trunk/build: assembly and 7 other directories.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Mon Mar 8 16:03:21 EST 2010


Author: rareddy
Date: 2010-03-08 16:03:19 -0500 (Mon, 08 Mar 2010)
New Revision: 1935

Added:
   trunk/build/kit-jboss-container/COPYRIGHT.txt
   trunk/build/kit-jboss-container/LICENSE-lgpl-2.1.txt
   trunk/build/kit-jboss-container/teiid-examples/
   trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/
   trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/README.txt
   trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/portfolio-dynamic-vdb.xml
   trunk/build/kit-jboss-container/teiid-examples/portfolio/
   trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/
   trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/AccountView.xmi
   trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Accounts.xmi
   trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/MarketData.xmi
   trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Portfolio.vdb
   trunk/build/kit-jboss-container/teiid-examples/portfolio/README.txt
   trunk/build/kit-jboss-container/teiid-examples/portfolio/customer-schema.sql
   trunk/build/kit-jboss-container/teiid-examples/portfolio/derby-connector-ds.xml
   trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-def.txt
   trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-price.txt
   trunk/build/kit-jboss-container/teiid-examples/portfolio/portfolio-ds.xml
   trunk/build/kit-jboss-container/teiid-examples/portfolio/text-connector-ds.xml
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.class
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.java
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/readme.txt
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.bat
   trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.sh
Removed:
   trunk/build/assembly/cdk/
   trunk/build/kit-cdk/
   trunk/build/kit-jboss-container/deploy/teiid/teiid-bindings-ds.xml
   trunk/build/kit-jboss-container/deploy/teiid/teiidsources-xa-ds.xml
   trunk/build/kit-runtime/
Log:
TEIID-864: CDK and runtime builds to support old deployment are no longer supported.  Moved the examples to new deployment.

Copied: trunk/build/kit-jboss-container/COPYRIGHT.txt (from rev 1930, trunk/build/kit-runtime/COPYRIGHT.txt)
===================================================================
--- trunk/build/kit-jboss-container/COPYRIGHT.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/COPYRIGHT.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,4 @@
+Portions Copyright (C) 2008-2009 Red Hat, Inc.
+Portions Copyright (C) 2000-2007 MetaMatrix, Inc.
+Portions Copyright (c) 2000, 2003, 2008 IBM Corporation and others.
+Portions Copyright (c) 1997-2000 Sun Microsystems, Inc.
\ No newline at end of file


Property changes on: trunk/build/kit-jboss-container/COPYRIGHT.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/LICENSE-lgpl-2.1.txt (from rev 1930, trunk/build/kit-runtime/LICENSE-lgpl-2.1.txt)
===================================================================
--- trunk/build/kit-jboss-container/LICENSE-lgpl-2.1.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/LICENSE-lgpl-2.1.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,504 @@
+		  GNU LESSER GENERAL PUBLIC LICENSE
+		       Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+  To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard.  To achieve this, non-free programs must be
+allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library".  The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+		  GNU LESSER GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+  A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The "Library", below, refers to any such software library or work
+which has been distributed under these terms.  A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+  "Source code" for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library.  To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License.  (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.)  Do not make any other change in
+these notices.
+
+  Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+  This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+  4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+  If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library".  Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+  However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library".  The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+  When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library.  The
+threshold for this to be true is not precisely defined by law.
+
+  If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work.  (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+  Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+  6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+  You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License.  You must supply a copy of this License.  If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License.  Also, you must do one
+of these things:
+
+    a) Accompany the work with the complete corresponding
+    machine-readable source code for the Library including whatever
+    changes were used in the work (which must be distributed under
+    Sections 1 and 2 above); and, if the work is an executable linked
+    with the Library, with the complete machine-readable "work that
+    uses the Library", as object code and/or source code, so that the
+    user can modify the Library and then relink to produce a modified
+    executable containing the modified Library.  (It is understood
+    that the user who changes the contents of definitions files in the
+    Library will not necessarily be able to recompile the application
+    to use the modified definitions.)
+
+    b) Use a suitable shared library mechanism for linking with the
+    Library.  A suitable mechanism is one that (1) uses at run time a
+    copy of the library already present on the user's computer system,
+    rather than copying library functions into the executable, and (2)
+    will operate properly with a modified version of the library, if
+    the user installs one, as long as the modified version is
+    interface-compatible with the version that the work was made with.
+
+    c) Accompany the work with a written offer, valid for at
+    least three years, to give the same user the materials
+    specified in Subsection 6a, above, for a charge no more
+    than the cost of performing this distribution.
+
+    d) If distribution of the work is made by offering access to copy
+    from a designated place, offer equivalent access to copy the above
+    specified materials from the same place.
+
+    e) Verify that the user has already received a copy of these
+    materials or that you have already sent this user a copy.
+
+  For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it.  However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+  It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system.  Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+  7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+    a) Accompany the combined library with a copy of the same work
+    based on the Library, uncombined with any other library
+    facilities.  This must be distributed under the terms of the
+    Sections above.
+
+    b) Give prominent notice with the combined library of the fact
+    that part of it is a work based on the Library, and explaining
+    where to find the accompanying uncombined form of the same work.
+
+  8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.  Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License.  However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+  9. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Library or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+  10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+  11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded.  In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+  13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation.  If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+  14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission.  For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this.  Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+			    NO WARRANTY
+
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the library's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  <signature of Ty Coon>, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+


Property changes on: trunk/build/kit-jboss-container/LICENSE-lgpl-2.1.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Deleted: trunk/build/kit-jboss-container/deploy/teiid/teiid-bindings-ds.xml
===================================================================
--- trunk/build/kit-jboss-container/deploy/teiid/teiid-bindings-ds.xml	2010-03-06 17:26:23 UTC (rev 1934)
+++ trunk/build/kit-jboss-container/deploy/teiid/teiid-bindings-ds.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<connection-factories>
-
-   <no-tx-connection-factory>
-      <jndi-name>mysql-connector-binding</jndi-name>
-      <rar-name>connector-jdbc-7.0.0-SNAPSHOT.rar</rar-name>
-      <connection-definition>org.teiid.connector.api.Connector</connection-definition>
-      
-      <config-property name="CapabilitiesClass" type="java.lang.String">org.teiid.connector.jdbc.mysql.MySQLCapabilities</config-property>
-      <config-property name="XaCapable" type="java.lang.Boolean">true</config-property>
-
-      <config-property name="ExtensionTranslationClassName" type="java.lang.String">org.teiid.connector.jdbc.mysql.MySQLTranslator</config-property>
-      <config-property name="SourceJNDIName" type="java.lang.String">java:MySQLDS</config-property>
-            
-      <max-pool-size>20</max-pool-size>
-      <!--  security-domain-and-application>teiid-security</security-domain-and-application--> 
-    </no-tx-connection-factory>
-    
-    
-   <no-tx-connection-factory>
-      <jndi-name>derby-connector-binding</jndi-name>
-      <rar-name>connector-jdbc-7.0.0-SNAPSHOT.rar</rar-name>
-      <connection-definition>org.teiid.connector.api.Connector</connection-definition>
-      
-      <config-property name="CapabilitiesClass" type="java.lang.String">org.teiid.connector.jdbc.derby.DerbyCapabilities</config-property>
-      <config-property name="XaCapable" type="java.lang.Boolean">true</config-property>
-
-      <config-property name="ExtensionTranslationClassName" type="java.lang.String">org.teiid.connector.jdbc.derby.DerbySQLTranslator</config-property>
-      <config-property name="SourceJNDIName" type="java.lang.String">java:DerbyDS</config-property>
-            
-      <max-pool-size>20</max-pool-size>
-      <!-- security-domain-and-application>teiid-security</security-domain-and-application--> 
-    </no-tx-connection-factory>    
-
-</connection-factories>

Deleted: trunk/build/kit-jboss-container/deploy/teiid/teiidsources-xa-ds.xml
===================================================================
--- trunk/build/kit-jboss-container/deploy/teiid/teiidsources-xa-ds.xml	2010-03-06 17:26:23 UTC (rev 1934)
+++ trunk/build/kit-jboss-container/deploy/teiid/teiidsources-xa-ds.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  JBoss DataSource Configuration                                       -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<!-- $Id: derby-xa-ds.xml 77479 2008-08-26 10:33:09Z alex.loubyansky at jboss.com $ -->
-
-<datasources>
-   <xa-datasource>
-      <jndi-name>DerbyDS</jndi-name>
-
-      <!-- uncomment to enable interleaving <interleaving/> -->
-
-        <isSameRM-override-value>false</isSameRM-override-value>
-        <xa-datasource-class>org.apache.derby.jdbc.ClientXADataSource</xa-datasource-class>
-        <xa-datasource-property name="DatabaseName">teiid/txntest</xa-datasource-property>
-        <xa-datasource-property name="User">rareddy</xa-datasource-property>
-        <xa-datasource-property name="Password">mm</xa-datasource-property>
-        <xa-datasource-property name="PortNumber">1527</xa-datasource-property>
-        <xa-datasource-property name="ServerName">localhost</xa-datasource-property>
-
-        <track-connection-by-tx>true</track-connection-by-tx>
-        <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
-
-        <max-pool-size>5</max-pool-size>
-        <min-pool-size>1</min-pool-size>
-      <metadata>
-         <type-mapping>Derby</type-mapping>
-      </metadata>
-   </xa-datasource>
-
-    <xa-datasource>
-        <jndi-name>MySQLDS</jndi-name>
-
-        <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
-        <xa-datasource-property name="DatabaseName">txntest</xa-datasource-property>
-        <xa-datasource-property name="PortNumber">3306</xa-datasource-property>
-        <xa-datasource-property name="ServerName">localhost</xa-datasource-property>
-        <user-name>rareddy</user-name>
-        <password>mm</password>
-
-        <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
-
-        <max-pool-size>5</max-pool-size>
-        <min-pool-size>1</min-pool-size>
-
-        <blocking-timeout-millis>2000</blocking-timeout-millis>
-        <idle-timeout-minutes>2</idle-timeout-minutes>
-        <track-connection-by-tx>true</track-connection-by-tx>
-        <new-connection-sql>set autocommit=1</new-connection-sql>
-        <no-tx-separate-pools>true</no-tx-separate-pools>
-        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
-      <metadata>
-         <type-mapping>mySQL</type-mapping>
-      </metadata>
-    </xa-datasource>
-
-
-</datasources>

Copied: trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/README.txt (from rev 1930, trunk/build/kit-runtime/examples/dynamicvdb-portfolio/README.txt)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/README.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/README.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,17 @@
+Follow the same derby setup instructions as the portfolio example.
+
+Copy the followng files to the <jboss.home>/server/default/deploy directory.
+	- portfolio-dynamic-vdb.xml
+	- ../portfolio/derby-connector-ds.xml
+	- ../portfolio/text-connector-ds.xml
+	- ../portfolio/portfolio-ds.xml 
+
+Start the JBoss Container
+
+Use the simple client example run script i.e. 
+
+$run.sh dynamicportfolio "select * from product, price where product.symbol=price.symbol"
+
+That will execute the query against both Derby and the text file using the 
+connector supplied metadata running in Teiid embedded mode. 
+


Property changes on: trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/README.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/portfolio-dynamic-vdb.xml (from rev 1930, trunk/build/kit-runtime/examples/dynamicvdb-portfolio/dynamic.def)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/portfolio-dynamic-vdb.xml	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/dynamicvdb-portfolio/portfolio-dynamic-vdb.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<vdb name="DynamicPortfolio" version="1">
+
+    <description>A VDB to test transactions</description>
+    
+    <!-- 
+      Setting to use connector supplied metadata. Can be "true" or "cached".  
+      "true" will obtain metadata once for every launch of Teiid. 
+      "cached" will save a file containing the metadata into 
+      the deploy/<vdb name>/<vdb version/META-INF directory
+    -->
+    <property name="UseConnectorMetadata" value="cached" />
+
+
+    <!-- 
+      Each model represents a access to one or more sources.
+      The name of the model will be used as a top level schema name
+      for all of the metadata imported from the connector.
+    
+      NOTE: Multiple model, with different import settings, can be bound to 
+      the same connector binding and will be treated as the same source at
+      runtime. 
+    --> 
+    <model name="MarketData">
+        <!-- 
+            Each of source represents data source that are defined for reading and writing data. 
+            Connectors in Teiid are defined using "xxx-ds.xml" files. The below jndi name refers
+            to one such connector.  Connectors are defined using "connection factory" templates in
+            JBoss. (ex: look at text-connector-ds.xml file)
+        -->
+        <source name="text-connector" jndi-name="java:text-connector"/>
+    </model>
+
+    <model name="Accounts">
+        <!-- 
+          JDBC Import settings 
+          
+          importer.useFullSchemaName directs the importer to drop the source 
+          schema from the Teiid object name, so that the Teiid fully qualified name
+          will be in the form of <model name>.<table name>
+        -->
+        <property name="importer.useFullSchemaName" value="false"/>
+           
+         <!--
+            This connector is defined in the "derby-connector-ds.xml" 
+          -->
+        <source name="derby-connector" jndi-name="java:derby-connector"/>
+    </model>
+
+</vdb>
\ No newline at end of file

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/AccountView.xmi (from rev 1930, trunk/build/kit-runtime/examples/portfolio/PortfolioModel/AccountView.xmi)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/AccountView.xmi	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/AccountView.xmi	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="ASCII"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:diagram="http://www.metamatrix.com/metamodels/Diagram" xmlns:mmcore="http://www.metamatrix.com/metamodels/Core" xmlns:relational="http://www.metamatrix.com/metamodels/Relational" xmlns:transformation="http://www.metamatrix.com/metamodels/Transformation">
+  <mmcore:ModelAnnotation xmi:uuid="mmuuid:0ed93040-daa2-1105-b511-c9cb83fb3e5e" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational" modelType="VIRTUAL" ProducerName="Teiid Designer" ProducerVersion="6.1.0">
+    <modelImports xmi:uuid="mmuuid:c22619c1-db7d-1105-b511-c9cb83fb3e5e" name="Accounts" modelLocation="Accounts.xmi" uuid="mmuuid:077908c0-da11-1105-b511-c9cb83fb3e5e" modelType="PHYSICAL" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational"/>
+    <modelImports xmi:uuid="mmuuid:c3d158c0-db7d-1105-b511-c9cb83fb3e5e" name="XMLSchema" modelLocation="http://www.w3.org/2001/XMLSchema" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/>
+    <modelImports xmi:uuid="mmuuid:88b29fc1-db81-1105-b511-c9cb83fb3e5e" name="MarketData" modelLocation="MarketData.xmi" uuid="mmuuid:891f1b80-da34-1105-b511-c9cb83fb3e5e" modelType="PHYSICAL" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational"/>
+  </mmcore:ModelAnnotation>
+  <diagram:DiagramContainer xmi:uuid="mmuuid:4553b8c0-daa2-1105-b511-c9cb83fb3e5e">
+    <diagram xmi:uuid="mmuuid:4553b8c1-daa2-1105-b511-c9cb83fb3e5e" type="packageDiagramType" target="mmuuid/0ed93040-daa2-1105-b511-c9cb83fb3e5e">
+      <diagramEntity xmi:uuid="mmuuid:0c594c00-db7a-1105-b511-c9cb83fb3e5e" name="CustomerAccount" modelObject="mmuuid/9b93ab00-db79-1105-b511-c9cb83fb3e5e" xPosition="80" yPosition="50"/>
+      <diagramEntity xmi:uuid="mmuuid:1b037940-ddc0-1105-b511-c9cb83fb3e5e" name="buyStock" modelObject="mmuuid/36ab0d84-ddbf-1105-b511-c9cb83fb3e5e" xPosition="352" yPosition="77"/>
+    </diagram>
+    <diagram xmi:uuid="mmuuid:cbfb4d40-db7c-1105-b511-c9cb83fb3e5e" type="transformationDiagramType" target="mmuuid/9b93ab00-db79-1105-b511-c9cb83fb3e5e">
+      <diagramEntity xmi:uuid="mmuuid:ccef7140-db7c-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/9b93ab00-db79-1105-b511-c9cb83fb3e5e" xPosition="30" yPosition="50"/>
+      <diagramEntity xmi:uuid="mmuuid:ccfeb380-db7c-1105-b511-c9cb83fb3e5e" name="T" modelObject="mmuuid/fa592480-db79-1105-b511-c9cb83fb3e5e" xPosition="276" yPosition="50"/>
+      <diagramEntity xmi:uuid="mmuuid:c900dc80-db7d-1105-b511-c9cb83fb3e5e" xPosition="326" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:55e8a380-db7e-1105-b511-c9cb83fb3e5e" xPosition="561" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:f8271000-db7e-1105-b511-c9cb83fb3e5e" xPosition="794" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:fdc1e340-db7f-1105-b511-c9cb83fb3e5e" xPosition="1053" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:8e993e80-db81-1105-b511-c9cb83fb3e5e" xPosition="1309" yPosition="50">
+        <modelObject href="MarketData.xmi#mmuuid/c9bda180-da38-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+    </diagram>
+    <diagram xmi:uuid="mmuuid:65907000-ddd7-1105-b511-c9cb83fb3e5e" type="transformationDiagramType" target="mmuuid/36ab0d84-ddbf-1105-b511-c9cb83fb3e5e">
+      <diagramEntity xmi:uuid="mmuuid:663848c0-ddd7-1105-b511-c9cb83fb3e5e" name="buyStock" modelObject="mmuuid/36ab0d84-ddbf-1105-b511-c9cb83fb3e5e" xPosition="30" yPosition="50"/>
+      <diagramEntity xmi:uuid="mmuuid:66478b00-ddd7-1105-b511-c9cb83fb3e5e" name="T" modelObject="mmuuid/075812c0-ddc0-1105-b511-c9cb83fb3e5e" xPosition="275" yPosition="50"/>
+      <diagramEntity xmi:uuid="mmuuid:100c1140-dddf-1105-b511-c9cb83fb3e5e" xPosition="325" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:09649280-ddea-1105-b511-c9cb83fb3e5e" xPosition="541" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+      <diagramEntity xmi:uuid="mmuuid:303c0640-ddfe-1105-b511-c9cb83fb3e5e" xPosition="773" yPosition="50">
+        <modelObject href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+      </diagramEntity>
+    </diagram>
+  </diagram:DiagramContainer>
+  <mmcore:AnnotationContainer xmi:uuid="mmuuid:d0d04840-daa8-1105-b511-c9cb83fb3e5e"/>
+  <transformation:TransformationContainer xmi:uuid="mmuuid:d0df8a80-daa8-1105-b511-c9cb83fb3e5e">
+    <transformationMappings xsi:type="transformation:SqlTransformationMappingRoot" xmi:uuid="mmuuid:fa592480-db79-1105-b511-c9cb83fb3e5e" outputs="mmuuid/9b93ab00-db79-1105-b511-c9cb83fb3e5e" target="mmuuid/9b93ab00-db79-1105-b511-c9cb83fb3e5e">
+      <helper xsi:type="transformation:SqlTransformation" xmi:uuid="mmuuid:fa77a900-db79-1105-b511-c9cb83fb3e5e" selectSql="SELECT mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e AS ID, mmuuid:0d7e2c01-da11-1105-b511-c9cb83fb3e5e, mmuuid:0d7e2c02-da11-1105-b511-c9cb83fb3e5e, mmuuid:0e90d484-da11-1105-b511-c9cb83fb3e5e, mmuuid:10a6e341-da11-1105-b511-c9cb83fb3e5e, mmuuid:10a6e342-da11-1105-b511-c9cb83fb3e5e, mmuuid:022d57c0-da90-1105-b511-c9cb83fb3e5e, (mmuuid:0e90d484-da11-1105-b511-c9cb83fb3e5e * mmuuid:022d57c0-da90-1105-b511-c9cb83fb3e5e) AS CURRENT_VALUE FROM mmuuid:08c8ba40-da11-1105-b511-c9cb83fb3e5e, mmuuid:0cf4d7c0-da11-1105-b511-c9cb83fb3e5e, mmuuid:0e078040-da11-1105-b511-c9cb83fb3e5e, mmuuid:104b55c0-da11-1105-b511-c9cb83fb3e5e, mmuuid:c9bda180-da38-1105-b511-c9cb83fb3e5e WHERE (mmuuid:0b2b1440-da11-1105-b511-c9cb83fb3e5e = mmuuid:0d7e2c00-da11-1105-b511-c9cb83fb3e5e) AND (mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e = mmuuid:0e90d481-da11-1105-b511-c9cb83fb3e5e) AND !
 (mmuuid:0e90d482-da11-1105-b511-c9cb83fb3e5e = mmuuid:10a6e340-da11-1105-b511-c9cb83fb3e5e) AND (mmuuid:10a6e341-da11-1105-b511-c9cb83fb3e5e = mmuuid:fa987b80-da89-1105-b511-c9cb83fb3e5e)">
+        <nested xsi:type="transformation:SqlTransformation" xmi:uuid="mmuuid:fa77a901-db79-1105-b511-c9cb83fb3e5e" selectSql="SELECT Accounts.ACCOUNT.ACCOUNT_ID AS ID, Accounts.CUSTOMER.FIRSTNAME, Accounts.CUSTOMER.LASTNAME, Accounts.HOLDINGS.SHARES_COUNT, Accounts.PRODUCT.SYMBOL, Accounts.PRODUCT.COMPANY_NAME, MarketData.Price.PRICE, (Accounts.HOLDINGS.SHARES_COUNT * MarketData.Price.PRICE) AS CURRENT_VALUE FROM Accounts.ACCOUNT, Accounts.CUSTOMER, Accounts.HOLDINGS, Accounts.PRODUCT, MarketData.Price WHERE (Accounts.ACCOUNT.SSN = Accounts.CUSTOMER.SSN) AND (Accounts.ACCOUNT.ACCOUNT_ID = Accounts.HOLDINGS.ACCOUNT_ID) AND (Accounts.HOLDINGS.PRODUCT_ID = Accounts.PRODUCT.ID) AND (Accounts.PRODUCT.SYMBOL = MarketData.Price.SYMBOL)"/>
+        <aliases xmi:uuid="mmuuid:c22619c0-db7d-1105-b511-c9cb83fb3e5e" alias="ACCOUNT">
+          <aliasedObject href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:4c6e7dc0-db7e-1105-b511-c9cb83fb3e5e" alias="CUSTOMER">
+          <aliasedObject href="Accounts.xmi#mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:f1f42600-db7e-1105-b511-c9cb83fb3e5e" alias="HOLDINGS">
+          <aliasedObject href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:f6e72080-db7f-1105-b511-c9cb83fb3e5e" alias="PRODUCT">
+          <aliasedObject href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:88b29fc0-db81-1105-b511-c9cb83fb3e5e" alias="Price">
+          <aliasedObject href="MarketData.xmi#mmuuid/c9bda180-da38-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+      </helper>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:c45aad00-db7d-1105-b511-c9cb83fb3e5e" outputs="mmuuid/c3b2d440-db7d-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/0afd4d80-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:500204c0-db7e-1105-b511-c9cb83fb3e5e" outputs="mmuuid/4f1d2300-db7e-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/0d7e2c01-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:500204c1-db7e-1105-b511-c9cb83fb3e5e" outputs="mmuuid/4f3ba780-db7e-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/0d7e2c02-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:5b372b80-db7f-1105-b511-c9cb83fb3e5e" outputs="mmuuid/5aeae040-db7f-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/0e90d484-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:50ba1f41-db80-1105-b511-c9cb83fb3e5e" outputs="mmuuid/507d1640-db80-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/10a6e341-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:50c96180-db80-1105-b511-c9cb83fb3e5e" outputs="mmuuid/508c5880-db80-1105-b511-c9cb83fb3e5e">
+        <inputs href="Accounts.xmi#mmuuid/10a6e342-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:e74a5281-db81-1105-b511-c9cb83fb3e5e" outputs="mmuuid/e71c8bc0-db81-1105-b511-c9cb83fb3e5e">
+        <inputs href="MarketData.xmi#mmuuid/022d57c0-da90-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:16f28040-dbd0-1105-b511-c9cb83fb3e5e" outputs="mmuuid/16d3fbc0-dbd0-1105-b511-c9cb83fb3e5e">
+        <inputs href="MarketData.xmi#mmuuid/022d57c0-da90-1105-b511-c9cb83fb3e5e"/>
+        <inputs href="Accounts.xmi#mmuuid/0e90d484-da11-1105-b511-c9cb83fb3e5e"/>
+      </nested>
+      <inputs href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="MarketData.xmi#mmuuid/c9bda180-da38-1105-b511-c9cb83fb3e5e"/>
+    </transformationMappings>
+    <transformationMappings xsi:type="transformation:SqlTransformationMappingRoot" xmi:uuid="mmuuid:075812c0-ddc0-1105-b511-c9cb83fb3e5e" outputs="mmuuid/36ab0d84-ddbf-1105-b511-c9cb83fb3e5e" target="mmuuid/36ab0d84-ddbf-1105-b511-c9cb83fb3e5e">
+      <helper xsi:type="transformation:SqlTransformation" xmi:uuid="mmuuid:075812c1-ddc0-1105-b511-c9cb83fb3e5e" selectSql="CREATE VIRTUAL PROCEDURE&#xa;BEGIN&#xa;DECLARE boolean VARIABLES.valid = FALSE;&#xa;IF(mmuuid:3ee64340-ddc2-1105-b511-c9cb83fb3e5e IS NOT NULL)&#xa;BEGIN&#xa;DECLARE integer VARIABLES.acct = SELECT mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e FROM mmuuid:08c8ba40-da11-1105-b511-c9cb83fb3e5e WHERE mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e = mmuuid:3ee64340-ddc2-1105-b511-c9cb83fb3e5e;&#xa;DECLARE integer VARIABLES.product = SELECT mmuuid:10a6e340-da11-1105-b511-c9cb83fb3e5e FROM mmuuid:104b55c0-da11-1105-b511-c9cb83fb3e5e WHERE mmuuid:10a6e341-da11-1105-b511-c9cb83fb3e5e = mmuuid:5d2fb940-ddc6-1105-b511-c9cb83fb3e5e;&#xa;IF((VARIABLES.acct IS NOT NULL) AND (VARIABLES.product IS NOT NULL))&#xa;BEGIN&#xa;VARIABLES.valid = TRUE;&#xa;INSERT INTO mmuuid:0e078040-da11-1105-b511-c9cb83fb3e5e (mmuuid:0e90d481-da11-1105-b511-c9cb83fb3e5e, mmuuid:0e90d482-da11-1!
 105-b511-c9cb83fb3e5e, mmuuid:0e90d483-da11-1105-b511-c9cb83fb3e5e, mmuuid:0e90d484-da11-1105-b511-c9cb83fb3e5e) VALUES (VARIABLES.acct, VARIABLES.product, now(), AccountView.buyStock.shareCount);&#xa;END&#xa;END&#xa;IF(VARIABLES.valid = FALSE)&#xa;BEGIN&#xa;ERROR 'Invalid Account';&#xa;END&#xa;SELECT VARIABLES.valid AS sucess;&#xa;END">
+        <nested xsi:type="transformation:SqlTransformation" xmi:uuid="mmuuid:075812c2-ddc0-1105-b511-c9cb83fb3e5e" selectSql="CREATE VIRTUAL PROCEDURE BEGIN DECLARE boolean VARIABLES.valid = FALSE; IF(AccountView.buyStock.accountID IS NOT NULL) BEGIN DECLARE integer VARIABLES.acct = SELECT Accounts.ACCOUNT.ID FROM Accounts.ACCOUNT WHERE Accounts.ACCOUNT.ID = AccountView.buyStock.accountID; DECLARE integer VARIABLES.product = SELECT Accounts.PRODUCT.ID FROM Accounts.PRODUCT WHERE Accounts.PRODUCT.SYMBOL = AccountView.buyStock.symbol; IF((VARIABLES.acct IS NOT NULL) AND (VARIABLES.product IS NOT NULL)) BEGIN VARIABLES.valid = TRUE; INSERT INTO Accounts.HOLDINGS (Accounts.HOLDINGS.ACCOUNT_ID, Accounts.HOLDINGS.PRODUCT_ID, Accounts.HOLDINGS.PURCHASE_DATE, Accounts.HOLDINGS.SHARES_COUNT) VALUES (VARIABLES.acct, VARIABLES.product, now(), AccountView.buyStock.shareCount); END END IF(VARIABLES.valid = FALSE) BEGIN ERROR 'Invalid Account'; END SELECT VARIABLES.valid AS sucess; END"/>
+        <aliases xmi:uuid="mmuuid:0912ca00-dddf-1105-b511-c9cb83fb3e5e" alias="ACCOUNT">
+          <aliasedObject href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:fd5a4c00-dde9-1105-b511-c9cb83fb3e5e" alias="PRODUCT">
+          <aliasedObject href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+        <aliases xmi:uuid="mmuuid:09318480-ddfe-1105-b511-c9cb83fb3e5e" alias="HOLDINGS">
+          <aliasedObject href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+        </aliases>
+      </helper>
+      <nested xsi:type="transformation:TransformationMapping" xmi:uuid="mmuuid:181084c0-ddd0-1105-b511-c9cb83fb3e5e" outputs="mmuuid/9f8b3f40-ddcf-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+      <inputs href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+    </transformationMappings>
+  </transformation:TransformationContainer>
+  <relational:BaseTable xmi:uuid="mmuuid:9b93ab00-db79-1105-b511-c9cb83fb3e5e" name="CustomerAccount" supportsUpdate="false">
+    <columns xmi:uuid="mmuuid:c3b2d440-db7d-1105-b511-c9cb83fb3e5e" name="ID" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" uniqueKeys="mmuuid/e433a0e2-2ac2-41e5-b53d-47a231754236">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:4f1d2300-db7e-1105-b511-c9cb83fb3e5e" name="FIRSTNAME" length="64">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:4f3ba780-db7e-1105-b511-c9cb83fb3e5e" name="LASTNAME" length="64">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:5aeae040-db7f-1105-b511-c9cb83fb3e5e" name="SHARES_COUNT" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:507d1640-db80-1105-b511-c9cb83fb3e5e" name="SYMBOL" length="16">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:508c5880-db80-1105-b511-c9cb83fb3e5e" name="COMPANY_NAME" length="256">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:e71c8bc0-db81-1105-b511-c9cb83fb3e5e" name="PRICE">
+      <type href="http://www.w3.org/2001/XMLSchema#double"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:16d3fbc0-dbd0-1105-b511-c9cb83fb3e5e" name="CURRENT_VALUE">
+      <type href="http://www.w3.org/2001/XMLSchema#double"/>
+    </columns>
+    <primaryKey xmi:uuid="mmuuid:e433a0e2-2ac2-41e5-b53d-47a231754236" name="CUSTOMERACCOUNT_PK" columns="mmuuid/c3b2d440-db7d-1105-b511-c9cb83fb3e5e"/>
+  </relational:BaseTable>
+  <relational:Procedure xmi:uuid="mmuuid:36ab0d84-ddbf-1105-b511-c9cb83fb3e5e" name="buyStock" updateCount="ZERO">
+    <parameters xmi:uuid="mmuuid:3ee64340-ddc2-1105-b511-c9cb83fb3e5e" name="accountID">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </parameters>
+    <parameters xmi:uuid="mmuuid:5d2fb940-ddc6-1105-b511-c9cb83fb3e5e" name="symbol">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </parameters>
+    <parameters xmi:uuid="mmuuid:e6583180-ddca-1105-b511-c9cb83fb3e5e" name="shareCount">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </parameters>
+    <result xmi:uuid="mmuuid:07675501-ddc0-1105-b511-c9cb83fb3e5e" name="NewProcedureResult">
+      <columns xmi:uuid="mmuuid:9f8b3f40-ddcf-1105-b511-c9cb83fb3e5e" name="sucess">
+        <type href="http://www.w3.org/2001/XMLSchema#boolean"/>
+      </columns>
+    </result>
+  </relational:Procedure>
+</xmi:XMI>


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/AccountView.xmi
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Accounts.xmi (from rev 1930, trunk/build/kit-runtime/examples/portfolio/PortfolioModel/Accounts.xmi)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Accounts.xmi	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Accounts.xmi	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="ASCII"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:diagram="http://www.metamatrix.com/metamodels/Diagram" xmlns:jdbc="http://www.metamatrix.com/metamodels/JDBC" xmlns:mmcore="http://www.metamatrix.com/metamodels/Core" xmlns:relational="http://www.metamatrix.com/metamodels/Relational">
+  <mmcore:ModelAnnotation xmi:uuid="mmuuid:077908c0-da11-1105-b511-c9cb83fb3e5e" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational" modelType="PHYSICAL" ProducerName="Teiid Designer" ProducerVersion="6.1.0">
+    <modelImports xmi:uuid="mmuuid:a11d5b47-bc0b-4dc7-ac95-322a2cade68e" name="SimpleDatatypes-instance" modelLocation="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/>
+    <modelImports xmi:uuid="mmuuid:5b401a8b-76e1-4ace-a885-80465d678056" name="XMLSchema" modelLocation="http://www.w3.org/2001/XMLSchema" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/>
+  </mmcore:ModelAnnotation>
+  <relational:BaseTable xmi:uuid="mmuuid:08c8ba40-da11-1105-b511-c9cb83fb3e5e" name="ACCOUNT" nameInSource="&quot;ACCOUNT&quot;">
+    <columns xmi:uuid="mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e" name="ACCOUNT_ID" nameInSource="&quot;ACCOUNT_ID&quot;" nativeType="INTEGER" fixedLength="true" precision="10" nullable="NO_NULLS" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" uniqueKeys="mmuuid/4b6488b5-f375-4a2d-a27b-359757046afa" indexes="mmuuid/91ad43c4-2b5b-4833-a165-2e597500fa1f">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0b2b1440-da11-1105-b511-c9cb83fb3e5e" name="SSN" nameInSource="&quot;SSN&quot;" nativeType="CHAR" length="10" fixedLength="true" indexes="mmuuid/716988d5-867c-4bcf-b11a-30acc6d09764" foreignKeys="mmuuid/4d9b9899-f484-42d9-938e-35a1a83bae1d">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0b2b1441-da11-1105-b511-c9cb83fb3e5e" name="STATUS" nameInSource="&quot;STATUS&quot;" nativeType="CHAR" length="10" fixedLength="true">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0b2b1442-da11-1105-b511-c9cb83fb3e5e" name="TYPE" nameInSource="&quot;TYPE&quot;" nativeType="CHAR" length="10" fixedLength="true">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0b2b1443-da11-1105-b511-c9cb83fb3e5e" name="DATEOPENED" nameInSource="&quot;DATEOPENED&quot;" nativeType="TIMESTAMP" fixedLength="true" precision="26" scale="6" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+      <type href="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance#timestamp"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0b2b1444-da11-1105-b511-c9cb83fb3e5e" name="DATECLOSED" nameInSource="&quot;DATECLOSED&quot;" nativeType="TIMESTAMP" fixedLength="true" precision="26" scale="6" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+      <type href="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance#timestamp"/>
+    </columns>
+    <foreignKeys xmi:uuid="mmuuid:4d9b9899-f484-42d9-938e-35a1a83bae1d" name="CUSTOMER_FK" nameInSource="&quot;CUSTOMER_FK&quot;" foreignKeyMultiplicity="UNSPECIFIED" primaryKeyMultiplicity="UNSPECIFIED" columns="mmuuid/0b2b1440-da11-1105-b511-c9cb83fb3e5e" uniqueKey="mmuuid/a58b3060-586b-490b-8197-6dbd064afb43"/>
+    <primaryKey xmi:uuid="mmuuid:4b6488b5-f375-4a2d-a27b-359757046afa" name="ACCOUNT_PK" nameInSource="&quot;ACCOUNT_PK&quot;" columns="mmuuid/0afd4d80-da11-1105-b511-c9cb83fb3e5e" foreignKeys="mmuuid/322606e6-1297-4a49-a6cc-ff9d5807690a"/>
+  </relational:BaseTable>
+  <relational:BaseTable xmi:uuid="mmuuid:0cf4d7c0-da11-1105-b511-c9cb83fb3e5e" name="CUSTOMER" nameInSource="&quot;CUSTOMER&quot;">
+    <columns xmi:uuid="mmuuid:0d7e2c00-da11-1105-b511-c9cb83fb3e5e" name="SSN" nameInSource="&quot;SSN&quot;" nativeType="CHAR" length="10" fixedLength="true" nullable="NO_NULLS" uniqueKeys="mmuuid/a58b3060-586b-490b-8197-6dbd064afb43" indexes="mmuuid/24cf356c-76b0-4da4-9ca7-4664b20c9ef8">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c01-da11-1105-b511-c9cb83fb3e5e" name="FIRSTNAME" nameInSource="&quot;FIRSTNAME&quot;" nativeType="VARCHAR" length="64">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c02-da11-1105-b511-c9cb83fb3e5e" name="LASTNAME" nameInSource="&quot;LASTNAME&quot;" nativeType="VARCHAR" length="64">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c03-da11-1105-b511-c9cb83fb3e5e" name="ST_ADDRESS" nameInSource="&quot;ST_ADDRESS&quot;" nativeType="VARCHAR" length="256">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c04-da11-1105-b511-c9cb83fb3e5e" name="APT_NUMBER" nameInSource="&quot;APT_NUMBER&quot;" nativeType="VARCHAR" length="32">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c05-da11-1105-b511-c9cb83fb3e5e" name="CITY" nameInSource="&quot;CITY&quot;" nativeType="VARCHAR" length="64">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c06-da11-1105-b511-c9cb83fb3e5e" name="STATE" nameInSource="&quot;STATE&quot;" nativeType="VARCHAR" length="32">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c07-da11-1105-b511-c9cb83fb3e5e" name="ZIPCODE" nameInSource="&quot;ZIPCODE&quot;" nativeType="VARCHAR" length="10">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0d7e2c08-da11-1105-b511-c9cb83fb3e5e" name="PHONE" nameInSource="&quot;PHONE&quot;" nativeType="VARCHAR" length="15">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <primaryKey xmi:uuid="mmuuid:a58b3060-586b-490b-8197-6dbd064afb43" name="CUSTOMER_PK" nameInSource="&quot;CUSTOMER_PK&quot;" columns="mmuuid/0d7e2c00-da11-1105-b511-c9cb83fb3e5e" foreignKeys="mmuuid/4d9b9899-f484-42d9-938e-35a1a83bae1d"/>
+  </relational:BaseTable>
+  <relational:BaseTable xmi:uuid="mmuuid:0e078040-da11-1105-b511-c9cb83fb3e5e" name="HOLDINGS" nameInSource="&quot;HOLDINGS&quot;">
+    <columns xmi:uuid="mmuuid:0e90d480-da11-1105-b511-c9cb83fb3e5e" name="TRANSACTION_ID" nameInSource="&quot;TRANSACTION_ID&quot;" nativeType="INTEGER" fixedLength="true" precision="10" nullable="NO_NULLS" defaultValue="AUTOINCREMENT: start 2000 increment 1" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" uniqueKeys="mmuuid/35680eaa-99d0-41dd-9737-bb8b5276f274" indexes="mmuuid/6178e998-0494-4fa7-8988-8987917480d1">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0e90d481-da11-1105-b511-c9cb83fb3e5e" name="ACCOUNT_ID" nameInSource="&quot;ACCOUNT_ID&quot;" nativeType="INTEGER" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" indexes="mmuuid/af8532e8-41ae-4d57-a6f3-7a9a7eab67bc" foreignKeys="mmuuid/322606e6-1297-4a49-a6cc-ff9d5807690a">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0e90d482-da11-1105-b511-c9cb83fb3e5e" name="PRODUCT_ID" nameInSource="&quot;PRODUCT_ID&quot;" nativeType="INTEGER" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" indexes="mmuuid/cae2ef07-ad18-4231-88bb-e91305822e3f" foreignKeys="mmuuid/3aba1558-eb1b-4cff-ba70-a61df99d7b44">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0e90d483-da11-1105-b511-c9cb83fb3e5e" name="PURCHASE_DATE" nameInSource="&quot;PURCHASE_DATE&quot;" nativeType="TIMESTAMP" fixedLength="true" precision="26" scale="6" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+      <type href="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance#timestamp"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:0e90d484-da11-1105-b511-c9cb83fb3e5e" name="SHARES_COUNT" nameInSource="&quot;SHARES_COUNT&quot;" nativeType="INTEGER" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <foreignKeys xmi:uuid="mmuuid:3aba1558-eb1b-4cff-ba70-a61df99d7b44" name="PRODUCT_FK" nameInSource="&quot;PRODUCT_FK&quot;" foreignKeyMultiplicity="UNSPECIFIED" primaryKeyMultiplicity="UNSPECIFIED" columns="mmuuid/0e90d482-da11-1105-b511-c9cb83fb3e5e" uniqueKey="mmuuid/ac6c8a1a-939d-408d-b836-e253cc047fb3"/>
+    <foreignKeys xmi:uuid="mmuuid:322606e6-1297-4a49-a6cc-ff9d5807690a" name="ACCOUNT_FK" nameInSource="&quot;ACCOUNT_FK&quot;" foreignKeyMultiplicity="UNSPECIFIED" primaryKeyMultiplicity="UNSPECIFIED" columns="mmuuid/0e90d481-da11-1105-b511-c9cb83fb3e5e" uniqueKey="mmuuid/4b6488b5-f375-4a2d-a27b-359757046afa"/>
+    <primaryKey xmi:uuid="mmuuid:35680eaa-99d0-41dd-9737-bb8b5276f274" name="HOLDINGS_PK" nameInSource="&quot;HOLDINGS_PK&quot;" columns="mmuuid/0e90d480-da11-1105-b511-c9cb83fb3e5e"/>
+  </relational:BaseTable>
+  <relational:BaseTable xmi:uuid="mmuuid:104b55c0-da11-1105-b511-c9cb83fb3e5e" name="PRODUCT" nameInSource="&quot;PRODUCT&quot;">
+    <columns xmi:uuid="mmuuid:10a6e340-da11-1105-b511-c9cb83fb3e5e" name="ID" nameInSource="&quot;ID&quot;" nativeType="INTEGER" fixedLength="true" precision="10" nullable="NO_NULLS" caseSensitive="false" searchability="ALL_EXCEPT_LIKE" uniqueKeys="mmuuid/ac6c8a1a-939d-408d-b836-e253cc047fb3" indexes="mmuuid/5542d838-24f8-4202-8abe-ad8e43c6e066">
+      <type href="http://www.w3.org/2001/XMLSchema#int"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:10a6e341-da11-1105-b511-c9cb83fb3e5e" name="SYMBOL" nameInSource="&quot;SYMBOL&quot;" nativeType="VARCHAR" length="16">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:10a6e342-da11-1105-b511-c9cb83fb3e5e" name="COMPANY_NAME" nameInSource="&quot;COMPANY_NAME&quot;" nativeType="VARCHAR" length="256">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <primaryKey xmi:uuid="mmuuid:ac6c8a1a-939d-408d-b836-e253cc047fb3" name="PRODUCT_PK" nameInSource="&quot;PRODUCT_PK&quot;" columns="mmuuid/10a6e340-da11-1105-b511-c9cb83fb3e5e" foreignKeys="mmuuid/3aba1558-eb1b-4cff-ba70-a61df99d7b44"/>
+  </relational:BaseTable>
+  <relational:Index xmi:uuid="mmuuid:91ad43c4-2b5b-4833-a165-2e597500fa1f" name="SQL090601093247180" nameInSource="&quot;ACCOUNT&quot;" unique="true" columns="mmuuid/0afd4d80-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:716988d5-867c-4bcf-b11a-30acc6d09764" name="SQL090601093247181" nameInSource="&quot;ACCOUNT&quot;" unique="true" columns="mmuuid/0b2b1440-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:24cf356c-76b0-4da4-9ca7-4664b20c9ef8" name="SQL090601093247030" nameInSource="&quot;CUSTOMER&quot;" unique="true" columns="mmuuid/0d7e2c00-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:6178e998-0494-4fa7-8988-8987917480d1" name="SQL090601093247350" nameInSource="&quot;HOLDINGS&quot;" unique="true" columns="mmuuid/0e90d480-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:af8532e8-41ae-4d57-a6f3-7a9a7eab67bc" name="SQL090601093247351" nameInSource="&quot;HOLDINGS&quot;" unique="true" columns="mmuuid/0e90d481-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:cae2ef07-ad18-4231-88bb-e91305822e3f" name="SQL090601093247352" nameInSource="&quot;HOLDINGS&quot;" unique="true" columns="mmuuid/0e90d482-da11-1105-b511-c9cb83fb3e5e"/>
+  <relational:Index xmi:uuid="mmuuid:5542d838-24f8-4202-8abe-ad8e43c6e066" name="SQL090601093247280" nameInSource="&quot;PRODUCT&quot;" unique="true" columns="mmuuid/10a6e340-da11-1105-b511-c9cb83fb3e5e"/>
+  <mmcore:AnnotationContainer xmi:uuid="mmuuid:07d49640-da11-1105-b511-c9cb83fb3e5e"/>
+  <diagram:DiagramContainer xmi:uuid="mmuuid:07f31ac0-da11-1105-b511-c9cb83fb3e5e">
+    <diagram xmi:uuid="mmuuid:67acb840-da11-1105-b511-c9cb83fb3e5e" type="packageDiagramType" target="mmuuid/077908c0-da11-1105-b511-c9cb83fb3e5e">
+      <diagramEntity xmi:uuid="mmuuid:6fa965c0-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e" xPosition="30" yPosition="200"/>
+      <diagramEntity xmi:uuid="mmuuid:71ddf900-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e" xPosition="358" yPosition="352"/>
+      <diagramEntity xmi:uuid="mmuuid:71ed3b40-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e" xPosition="345" yPosition="30"/>
+      <diagramEntity xmi:uuid="mmuuid:71ed3b41-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e" xPosition="690" yPosition="198"/>
+      <diagramEntity xmi:uuid="mmuuid:30265a0f-b257-488d-9907-4a376c95aafa" modelObject="mmuuid/91ad43c4-2b5b-4833-a165-2e597500fa1f" xPosition="30" yPosition="740"/>
+      <diagramEntity xmi:uuid="mmuuid:356735fa-b594-490d-a4b3-d495d4fa2258" modelObject="mmuuid/716988d5-867c-4bcf-b11a-30acc6d09764" xPosition="30" yPosition="888"/>
+      <diagramEntity xmi:uuid="mmuuid:6368d133-4077-44b5-8418-130988467078" modelObject="mmuuid/24cf356c-76b0-4da4-9ca7-4664b20c9ef8" xPosition="290" yPosition="814"/>
+      <diagramEntity xmi:uuid="mmuuid:0c3b6ea1-ecd5-49e3-b57e-f25ab56ac35d" modelObject="mmuuid/6178e998-0494-4fa7-8988-8987917480d1" xPosition="550" yPosition="740"/>
+      <diagramEntity xmi:uuid="mmuuid:72802e91-f27c-4f65-bbaf-82b7a67fdd1b" modelObject="mmuuid/af8532e8-41ae-4d57-a6f3-7a9a7eab67bc" xPosition="290" yPosition="740"/>
+      <diagramEntity xmi:uuid="mmuuid:489f5aa2-e209-49cb-864e-d18562bda587" modelObject="mmuuid/cae2ef07-ad18-4231-88bb-e91305822e3f" xPosition="550" yPosition="814"/>
+      <diagramEntity xmi:uuid="mmuuid:d0c9e683-7e6e-4356-8da1-93cdbbf102b4" modelObject="mmuuid/5542d838-24f8-4202-8abe-ad8e43c6e066" xPosition="30" yPosition="814"/>
+    </diagram>
+  </diagram:DiagramContainer>
+  <jdbc:JdbcSource xmi:uuid="mmuuid:192a4adc-4b14-4816-b74e-a9ed990adfbb" name="Accounts" driverName="Apache Derby Network" driverClass="org.apache.derby.jdbc.ClientDriver" url="jdbc:derby://localhost:1527/teiid/accounts">
+    <importSettings xmi:uuid="mmuuid:3345b6d3-7ab1-4adb-875f-1ff39724bf06" createSchemasInModel="false">
+      <includedSchemaPaths>/APP</includedSchemaPaths>
+      <includedTableTypes>SYNONYM</includedTableTypes>
+      <includedTableTypes>SYSTEM TABLE</includedTableTypes>
+      <includedTableTypes>TABLE</includedTableTypes>
+      <includedTableTypes>VIEW</includedTableTypes>
+    </importSettings>
+  </jdbc:JdbcSource>
+</xmi:XMI>


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Accounts.xmi
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/MarketData.xmi (from rev 1930, trunk/build/kit-runtime/examples/portfolio/PortfolioModel/MarketData.xmi)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/MarketData.xmi	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/MarketData.xmi	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="ASCII"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:diagram="http://www.metamatrix.com/metamodels/Diagram" xmlns:mmcore="http://www.metamatrix.com/metamodels/Core" xmlns:relational="http://www.metamatrix.com/metamodels/Relational">
+  <mmcore:ModelAnnotation xmi:uuid="mmuuid:891f1b80-da34-1105-b511-c9cb83fb3e5e" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational" modelType="PHYSICAL" ProducerName="Teiid Designer" ProducerVersion="6.1.0">
+    <modelImports xmi:uuid="mmuuid:4a2cf640-da8e-1105-b511-c9cb83fb3e5e" name="XMLSchema" modelLocation="http://www.w3.org/2001/XMLSchema" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/>
+  </mmcore:ModelAnnotation>
+  <diagram:DiagramContainer xmi:uuid="mmuuid:b50cd5c0-da34-1105-b511-c9cb83fb3e5e">
+    <diagram xmi:uuid="mmuuid:b50cd5c1-da34-1105-b511-c9cb83fb3e5e" type="packageDiagramType" target="mmuuid/891f1b80-da34-1105-b511-c9cb83fb3e5e">
+      <diagramEntity xmi:uuid="mmuuid:bdd25f40-da39-1105-b511-c9cb83fb3e5e" name="Price" modelObject="mmuuid/c9bda180-da38-1105-b511-c9cb83fb3e5e" xPosition="20" yPosition="20"/>
+    </diagram>
+  </diagram:DiagramContainer>
+  <mmcore:AnnotationContainer xmi:uuid="mmuuid:a1b03940-da39-1105-b511-c9cb83fb3e5e"/>
+  <relational:BaseTable xmi:uuid="mmuuid:c9bda180-da38-1105-b511-c9cb83fb3e5e" name="Price">
+    <columns xmi:uuid="mmuuid:fa987b80-da89-1105-b511-c9cb83fb3e5e" name="SYMBOL" uniqueKeys="mmuuid/3ee00405-9eca-4913-9897-f03c77291926">
+      <type href="http://www.w3.org/2001/XMLSchema#string"/>
+    </columns>
+    <columns xmi:uuid="mmuuid:022d57c0-da90-1105-b511-c9cb83fb3e5e" name="PRICE">
+      <type href="http://www.w3.org/2001/XMLSchema#double"/>
+    </columns>
+    <primaryKey xmi:uuid="mmuuid:3ee00405-9eca-4913-9897-f03c77291926" name="PRICE_PK" nameInSource="" columns="mmuuid/fa987b80-da89-1105-b511-c9cb83fb3e5e"/>
+  </relational:BaseTable>
+</xmi:XMI>


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/MarketData.xmi
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Portfolio.vdb (from rev 1930, trunk/build/kit-runtime/examples/portfolio/PortfolioModel/Portfolio.vdb)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Portfolio.vdb	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/PortfolioModel/Portfolio.vdb	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,159 @@
+PK
+I´AvöŒ?tÛRÕ­[U÷¹oõöÕ_îV‘ò‰¦Y˜Ä/NfSíD¡±—øa¼|qòÃÕ[Õ>Q²œÄ>‰’˜¾8‰““¿üù‹¯þMUåU²¾OÃåM®<óž+º¦i*ü3W.hN.Hž†wå<ö¦Šò2ŠV2SRšÑôõ§Šª¡»ì,ónèŠ(ÀHœ­VÔÏ_œÜäùúìôôöövºj+Fmê%«SláôÇUtÉj¾‰sš®Ó0£¯INòû5ÍN
+RwYƒÎ­1MÒ%ÖŸþxñŽ×?Qr’.iþž¬h¶&ÝÕ4û3ñi”^†«u´mR
+c$žüù~X·X‘+øZa:ûá‡ó×/NV«Í&ôÏLè„ˆÄ™«3ªkª£Ï\•ÂnsÃ^8'EÅtçኵ†ä^œdÀR¼ìøúmxGý'‰2z¢Äб'ï/®>ü×›÷w%‡$Žè
+¿_±rÊ:Mü‡*a,0$Ø2ÈŠè]è‘hK>§œÇƒy¨ˆƒÆxrIVŒq‹¤=ýêT˜Ö­œœv
+ŠÌ1p͹Â&^œÀ‡Œæ‰(7·7aN/Ù °9{qâ%QDÖ ¥)[ƒlÐ4.‹þìý©^ŠqUk½@ÝivCÑLcPtgÆèPŒ“tE¢ðê_òªcc²Ý`
+œ‚ø°9*$w[¯”Í©p	¡¹&bî'P\D$HpN@ʱšGÒ4$K
+\琇gÿ~÷úùD‰ÂôÞàƒ—Ï±ULN\üÖy®x7$%ÈS&‡è£tÙò(ÖoñÜ€°Œ?ÎÔÀ`ÎÚ2Z–ÑbÁŸ£ÁÔ0õ¹çÚšêÛ¦YÀTÓªK-_÷×v
+2LÛZllrÝ^·–øÎk—}a° #•Q[™mȨQIç„S¼!ŸPe
+ÖNIáïŒO‘ ¬kÏð-›$Btéb„'ýÇœQš±>Þ&Šä«$-¢Û²ÁÙm|Y—êfÿàˆ¬°¾ô4"NC‰TÓÖ&됯¬w˜o0¨:ñMß±5OS©¥VßötK%ša{õó…5œ:‰H¼Ü€]£”
+Õ•JLÀêHªlèC¹0Ab’)>Ywï•ëïß¾RfËúXS<r™E‘ÚRlè"á_b$‰
+
+˘’cín…
+ó°à¤
+ãw|~CiõñI©fãÅÁ¾a‰ÀF×
+óÙs	
+¥R¹Ö‘Ï[ßïòw_µÝK\ðé0|b¬Øvue܈kM’ȵ''Ì"Šd
+ðV\pšCÛà¶W–þXaÛvg†¹¨…¦ƒG
+}a
+åemPBvêŒäÉ*ô
+¸ÑhQË-§r…›ñùö¹ØW˯|hV‰m]P~l…8f¶‹û¿<“ô%üdãF}öÃŽ‘'àMuç	Z
+“)G^§¦-³¡%bÝT–‡(GQipNkÚòí(‘i˶vœ
+í(*SA[j‹9«á,´êQªÀÄÎïSt´ùè4ôånýØ©|š:p‡~”ŒK—¾ìòÈ×cÕ¡0w(HÈ…¹CA
+dºf1àGא‚n(K?¶Š4\ÛÑg6S‘‹¾*ÿêó¢Kx„[ž±‘FLŒJ7-Io‡b¥YØ
+܆2á'åi&~èIŒR!º
+.§Õ½.3ÇqÀn«º…~M54Ґ°Ñ™ZM4õ>]ÃwXغIn•‰ïᗍ$“ã.Hdû†žKhJQYöс¤›ßã#šÅöéY$[õ-máP—ÎÍï®ô
+Nñ Ú=÷²ø]Á—ß½3µço.¯^^|ËEzªœç˜£á‰F˜À
+ÒØ<šç©”'Ó ®¡wŽÔݪŸþãÅ»w ÌÒ#øéÛ¦ÚOfâüà B«Ûà*ÎQÕ”%â‰ê
+T-umË°ƒÀ×gÃíi.³Çã§0‹†êVŒÊREú\žÉ,…2Yx§úP5Î
+ǃUã«‹èzxI’ú€™œí^€LîªÒmzT¹§$(+š›	f
+Ÿ4Å»5”g@ç9X‚¸¤ÉeÝ“øzníøK‚¡WÄ6òð4ìŠíNe=ª5jB’%{Ö1ܲò“¿L¬‘¶¡ ‡Ï;Þ¢c;²›dùXk“—0°Ü÷sâRŠ©Ô¦nOÇ›(£ˆªC"_䣆U0y×ß¿}%ÐÑ
+ÇúÈÜBª’Š¾0ô¡ó‚„•¥h”ºsŸ½°l{Æè@û®õõ88c­´–ð„ùÇc@üŠdM~Ÿ'´;½o`t3å׸|î›Ñ›€bÇ€~MÒü·êYDÌ
+í
+ЈÎ-‰â»âpé«S¦æ%šKñõ]û}sôâ$‘¶p<ˆ¾G|O†Ú¾7:DÞ¸zyuþáýè()Ú÷ŽqUn„wŒ+Ú51ebÐñ´š ä2h¢ˆ£M†Ør ³í›ÆÅn5Œ¦ÐÐe^—3­¨K2“8•óCpAspØØrÁ*ñiô¥’v? ¬6™äæyÚzŽßEǍ!ÛJ˜C—I–£Ã(Ô¦1Ìm±´ÀxäÅi×ê+ß9·*ìbggÚ£ÀøÛ©.Ë?6¼}ÇqlöØ°ë–K³ÆÌQmJˆãêúÂò¼î†Þ;pÆÆwÕÒA›Î±¸
+ž[Â<!^³]·mê³o†+šL¼œæCG9²1*ÒçšžãàcÔõ¬Ñ¥¯±ll¬7¶K¿få*áÛŠd_1l48$*o!hjæ¼€4F))-Ê‹	…<¥„]OPvl“•7ŒòU^ñ]fêUJâ)õ
+Ödé½mâá’r鶦6sËXÄ¢™ó¡½±Q7üfÿüÅÿPKØÁà
+¸a5Ox9\gòÌÌm›¬?ýÀçzÌÅD—¤,“Lpr e—È›­Öðr0^~ìÆÁl‘Hø÷¿þ\ÌÒÆå‡UNÉÙd1KÇ<TD±ç|íu·½÷›Á^|9ŒJ£¯zÉsw0îüÚ¹¨×Âè^«žŽoÒÛózš,ò•¨eTK¨~ñb2ÉX:¯†×ƒË^/¨×$PèxeW<¯‡|2‡‰sÍyËE4‰Òð°×»î|iuFãë^÷„uG.ô'ý0_!nA	cÂE¡ã¹b¶BÜör\ßs=È3B‚D±Ò÷z3Ë·¸"Ž$È.,;æ8ˆ[ÔE¶Î¦ar+,Ⱥ³åV»Mtx8Šât½8EœFMØÂ"fɃòp¡,N­MÒ¤ˆOŽ’€=¦Ç³¨Ï˜‚…J=‰ˆ!–Å‘ƒ¹”Taߣ.KJàn8”/|æû($Œ b+ùÓ…À\[ê8bçP¹ã›c¹µŒ¸7Ç—A½¹íX†ß
+=²Ò`°ZÊTi„ŸÒhªáÏéݱS†[½a°á¥ýÈðV½|ʲQá,Xn]ãa¿sqý˧rš·¬xÞ|y1I£»I$s^.Á¨ÓêþÒÍBVȦýƒ
+Pë’o¶{­·îõ<î2á`Š‘Ë(ìÁ>è_fù¢J(L	qÖTn<+¡ÎH슞QsûŠ¸'p$VÙÞšžbª)²l€I8ñ§R¢0ô•Ë°G}ÌW´Le>G~ʐ(ïЉi7›ö§’©
+T§¥ò=ÇCBÀ¡Çöhh{ä©V¥–Ç´ï3„‰‰‚Le>cÙÏ·< _Y¯Øâ\†ÜH¨¾Zcú¸=&š‡ÌulÍ 2\áÀõàX:Èã>÷4Ôò;„¯"#=º¶/[Õ!Ú؈I®mÂ.Εq²1&Ò¾å`—Ù¶vŠqÁ-×eH6†HpCœ,Âzô9Rp}GˆŒ£Ël×
+:×íJÕµ3äؐ;ijÑé$
+Ì‚ñiÛu$p=˜º&r?s&»Á£-²Š¹ýÕ˜;°µ?eΨmkÒÿ5ÓG»:¶RÜo
+¨÷&òõe$º…‰p]³>n±Zö.%CnaNµcv2¨’
+Çì_Ç~A8û÷"S8FB¢Ž]U×v%Þ4F•¿±ý”öæ1ØÖ,Nyë¤ìImE|jtÙâQ÷Óâ!ö½
+‹ÁÅÞZ\µdy{FÚêÒ\Üqù¿Ñ…g™8
+Ç£ÒwyþxU™Ÿfê­:;=ò:AŠ@©9P‘íßP¬'ÂAP\Û¹mg9U榙,«v“±g°IÊ”L(!ˆ@ #°¥Á6NêA–»i¦·¶Ü´EYÄÜO,A5·–ÀñµÄz…¶Ë…K¹t\UÚòÓu¿#ìÙ~hƒ
+
+¹5{ëíô7ø±TC%Mßæ„«le[Ì¢HxÀ<÷µ‚BÆU(ĺ¯*ål§ózM%Ñ×Õ_M·ºÖÖ‰x¨
+túm–ü±Ñšð9ȪYrsÂóa'*v’¹uÒšD:NÛù@PdÉ伞»›9m4&3É'·³yzj¹¶×H³Ë|åCÁE”¿]è4â›²¾1lB‚ª,qEö’•‚ÌòÜYaèøžMDˆ³{2‰æ©^ö'æÝ8³iÕ@[çFËÉBiµ6âéíü}£95Ê,gåûüm³÷ÁÕ`8¸êoæmÙöNƝ~mÜüÐë<wîQ“>w;ÿ­ž–î—Ùø(áÞ¿;ko~¾÷PK³{
+
+ù2µ¿ ”bã–4ãDvÑo[óεÙ5ÅšdÝ0fK!ËbŸÚº(=ÖÔr”oÎ}ž>ÌÑ+aP£|¨ýŽåÊk†Ãµmü]ÐÒZ¼ÌîúÕ"(§Ë‚4ÍÖ®ºày~k‚Æ:pØ»&¦§1Òs6¼„T)µÏ>ñm„}ô±±ZGÝõhçãé(îKˆ~ÂŒhdµ*eFÊm;pÒ°µ˜:Tw¼¤åæ
+Ž¶YÏDAہpÕë±y·ZF ·.³êíõìÜýÀIè$¶ömG§{6¢XLr²ßð4Êo•Ó‘È+Æ\µ†Á¨56èóbþ2½yT¿âôWEîɦØyábÛCU­aèxV„#+µ=4¹¡ºçÝ|Ôcg¼J’ö_ÒO…z›xÖ9¥™ôñ²]û£æ…vŸROñäîÿÐaQ)£Ž¡ÓωRjàIŠ½ø}vß®c>•Djß4ôy;N²S?V‡FNýyþõ^žýPK—èK•
+X"ø6ž½ÞóM:æÒ³€=Z<o·ßÆóÅr0é0·ž‹¶{S°&ض3¾}ï`/û-5¹[ˆ0Äʯ7®øedçeNƒÜ%2t™;€ÐÝ:Ÿè8qaÂú¢KÄw˜}æEcU2G¤’¿ƒùöËc<AŸ…Îâ¤HËf²õT¢¡iîá\ü¸Õ›1b¸²7>Ž„=ù(È÷¾#J\ªjòšÍ®z˜ý×
+ð~â`‚2°üUÅ«gq¦ΰ þS3|Ý«^ÊÑ»ÄÏ]%lè:°ÉÊ)ó%J’`ÆÖzx'Ì'R
+áêEq±ð'¸Ç‰f!?ä
+ðîqŠëQùžX§\+Ý	ìà¹Â‘AI!:h0ˆáÖÜ5ö’՝ÌáÌü†¹vš©	ÀŒj>ݺ¾Û’JâÚsþSbSSnVž3YAÑB&™¢zåÍí³¸ðgµÖ‚LtFªH$™Ö‚Äï©­(Ù
+ì%Z7™4-SDbÄl0‹ý
+DzôȈ_:f•}á9³ä°¯q*×GZ'CãXÑ”¤ž4kš€#s¬Évv¡	¬Ö
+Ú~"”‚ƒšI`Őz8ê("K«D†‰r¶(Bi§A–UŒ’¨:_&LUdYTT³‰ØÚ¨Â*’Êñ°!?Ù‹*ÒñÉËB.ŠÕÑq×û=£
+«É¢Æ‡Ë	áÃ9ênTO*¯â V€¬Í™EU”Ó]ï¢ÊžwÊ~”öS»%•|V³ÝB,bE5ÞÚÔ;Îë}_vµ_Ì©ÂRZ?D‚rŒ°ÙØÎ=ÙUûöU•C½2þ^-ªºÌ]7èTD^ª¤ÓÝ›mà·Ì¬OÚ<àÕ&äŽg%8EZ“š>^c%òúCŸèÓ®y`!©µFÊf<zŸuA
+&Ζ«ëRlÌÓ5Æ‹Ä0ìP4æX “|ŠN¤1¥<¤8ÑÕ…“÷Ì»J3ÿn#û"$|¸œÏõéâîÛ`²Ô™ÏóÙM&‚"äX(’öþ›=֥͎;kL“©1ÿù¢ÏõœW“79±^¦_°³ÚÖ„×é(—Ocùý‚iÖZ[A~Ü£Öärù‰¶ÐŸÆþsùÐT%.ª‡ÜÄÅnŒs°`tßĵõMY4‡³åt‘þ½R_”5.ÅìFŸw?çÆb:¸Ñ«^N¥w_f“Ñxú—Ñ5¾æºq°óþv>-‡‹®ñãæÓlRñb8»¹LÜÅrwv(·ž
+1i6’çïê$ž¡ºç!'Pä¦mȲúeÓõWbß0¦ÄÊ¤’ç‰IÖMX¿‚òüuQ@Ö$Q³ !å¾ÜqºHŸ­ñ›‹<å"VV6ðñá㙆ÚQԝd1œå“‰FgNíÃ40Qš†e¬ ØPNI`¤{$ŽVå¡–8,Îy¹©,”àHmèH­Òö¶8Ètð¬ÚPJp$&}Œvûª–0’ã­†‚O
+#\}Í ÎQâ©€qÝ‹³ììwS`«ÜYT7(J
+GRȆh|ˆê°KS¦x>8Ùâã\ÌDôÖÁɈ¼ƒõ½^’WðFÍò۝4ËkwúK¿Uuœb·:G ˜ó6©çu¯º†ý:nºó¯â2¡;ä;éÀòîWn§ˆ4œëƒ…Î$w8²‹ê£å\ÿ×Û'ðá“þ×xýßHNs1]w…Ã|ÌǃOÝèþ"[Äô™Ïƒ‰¡ˆ?§e7cYâ»P‡n…1cƒ™ÎÌt9™\Öv|O¸É‡ì…úÌõù¶Õá¤ÒsT!”ÿ‡¤›èÞl,Mt,Í¢ßÛ®j*!Þ2“‹or-Xb ï
+S¹kq±ªÌÀn›¢¥”
+r1_¦ö85ôù‚O³6Åûbqšò‡¢’]l,œíÀ炉ªŸSà÷}Ù Þ3Žûøî"+v~³ñc7½éÐõ€‡‡áó‹˜D}:ÚûKæð€(N>ŸÏæÌc'n•÷ǾØĶ‹"ão!öý¬õ¹Ëî‰ÇäOö˜L„˜¡õ”!°’y?ö׾ô&‡Xª1q•ñdÁWµïW[F¦ß‡mJN«¢(]P(yQT¨Tª®6×çµé®"ROö,	Õ<
+³ëMJ•øªâ|^¿¯:PÉK÷•o—óᗁ¡ßˆÍ5Ç¼ÈâgÈš‹þ«Yð	c‡zÔ½q‡­èŽX,XÀ6\*úí,$ø–;‡ü~ûò6«	œ]©».ô{œ6¼X}›S9VãÛ„ô›
+ÍRMÁŠ3¦ƒ†Üf›xæmì)ÛÄSç¯n“X|wè¢UÔ6ÿ’ïê±…0W¸<t˜|râo7ѧMË
+i`•ŸÝׂîj»v*?ç¢8ÝH†:Œe?a4ÁÎ}ðÚé6ú–C;ùp“í0à3°ÞÃû•©AràÁ`Ú+;x&3™Üé߇úíân2þªw˜­cÿ½Å_ñóN‘LÀbþ’$39ª& KQ¼À)’Èr¾q
+WN2ëM—½%©B>Ã	5MDQ|$De:Ì*¡JSÕ¼p±·×–â`"Ñ6½iñ)Kun(»›j¼˜5¾šQQ¤È£Ü3Ÿ$îHã?v’h
+ø©oÚ¹g“+ÌK¯«1U‘=Ñ8ºÀsœvÈÝgÞZ;ª’wÊç—Ð2ùº”¸ß
+iÜp¦h|%ÝmÜ~%+0©Ýyzò¥jUØ,ÆÓ[Ï…m½ŠxJW/-~^±h´óèwþ«ÏgiÝ
+
+”ȼt;œŒ¡ð¼íìyÈJ&"êÊI	
+¢,§f¬^¿Z÷µÜxç²glS…Èy
+E”Ê°Gæ8 at HXîŠç’i'D‘õ‰Qì|ºÍA4§ûÍÙùiÿª×ÜGœ©¨õÎÃvxgÝzôQH&9¼MðbñspNEh™S§¿ß_k¼†œt T]†Å¸fç
+Þ>¦0cž>ùnam7¶Îê³Ûö—/?mÿ‡9ÞžXƒ‹ÖÿUp/‡åí~o6™ŽGåfý³ÍÊVÙqÆ>È7,+DHk¡,§—¸Q°ˆ,&%Íf†¿1ä±D®xγߎÎ\ö.°${ƒí"’XInYOxËq¸y]¦ý0
+ûg7ÃT>ÌâWD)ï
+¾¤€·—€¿¹,T&“µÂs/fñ”!ÍâÞ
+Wõ±Zæ:
+¶ÌñÜ8`g”¡Rû¯«žÀ\«O:ŸŸžì]ö—%òÁ3¥,ɁÁáÄ¢ Á
+:±T8—L²I¢z¨n5ø0‰x»zŠ:Z(w¨|—ˆ¤6˜¤IæJÄH¥ùë%ª'0—ŒÈŒ¸Póô`Ãcú—둺Õà}]è‹$“m7¹ÚÖé’	¿\˜³j45­Úù¿\§9V·6ªÉ™Ll)W2™GÚnr»FÛºi-ëÕ)m´x¨ë%”¶4{¨o—(‘,%âŒ0$(8ntÁM£%—buk£3åšÉÛëUXÚX¥Âs–½¤^3­<^.Ó©[
+*•A©–è×Y´T«]#mÛ•jJ}üÐyþjð}é‡^ê
+í)K!<Íœp9”Pžî\€ÆsÁŒ’\èR¾WÃün§ws;åëùïƒo—ñÁïÔJÁ¸uÊDxš½Y&½WÍv¸d¨†>ôäϣݳƒÁÅÞîÅ.Â~ð÷Ï%kåL¡üq9zhEL0¹!Ñî˜ã Ë‘¿~“o÷ü­ß9½Æ\‹SI]€²˜¹CØuÞYf“íj½%¨mf^!‹½,n­?kwÖùw‡ÔA³eÔ	.
+´Ü‡¢„Þ‰ÑúJò’¸èá.ÐZN£Ë…­yª)RÙ…»u)Ú5Öu¥ß´Þ<Åg¿ÐUñ1Ÿ¤ˆ’ð ÀiVâ™V„çéåKiáY±:Y¤ÅÝ»œF«ëtÃ4fËÍÓølÂÊÅÓÎÚ¤ˆÕ&"´ýNP£NÔ-K‚­J¢Õ;ó“`µ³àµ³PÐJ’pYX¸&)'Ö‡L|²Ðƒ¢ÎTëÕiÌ"-úôRíZï†iðÚY<û]¨*
+ÍŒÍÎYB¥ƒÛ¾
+@ @ @ @ ÿ–ªøñèìõdŒÎf¯í·oF7³³æÄ]ŒÑÍ|v¦uÛƒŽa6‚	œú­‚@ @ @ @ ÊÕºj<_-UMëËlDƒøùªÕ\-ÇãÅbä=¦í¡Ç{2]÷l†©3-ԏ\ÅudnèpH@Ø’ëN7óY®%ŠL(bWveÇæßa¿N3økµÄßLðÓ$TgÂG-þÝÌÑ+4]-[†¥?×ûÉ59Îö<Î¥ëŽ"{u±LÝ‘¶®ˆŠ+ñû¡1°°Zžõ&Óùpr=št&º>Küs<JÀÞ­þ¦•Õ²òɺúsSµt­Ý5õ>‡užçwÄ—¶D‘Éþø˜˜vƒ§ÛðÍGc4›Ûã?VK«ÕÑMKíô’늞"Ó
+FhÓòŠuÅ¡åº'Ò’‚Äi¯´‡Â/ÖÕÇÝžnlããöÀ[¢È¤<|Â}À{H"ð+Ó4²ìvÍÜÀ…îA‹IhEtÂo6JÙ<\³ùttójµÔ^¨$Q¡èr<Æäò<ëcâ}Lø‚2KK®'pÈ‘
+a
+œ‰ø|º®>²Tk`f	1»Š¬Pá <NÜé8E.‘Pzh]öô,)vGR¡
+Ê*2J¡;£×Õ¦60­nGï7Ôžue:OS›
+íIˆué¢+®)ŠLRüÜ!ïIn!~tcc~B8¹“ß¹Ú?´w$/¿ÓZÖe–œ°+¹Ðå?JKäcZb89
+­Ð#ÂIzÖê›–¡vô,¬¢kX+e‰JÆåacO‰-åaǵÕ|tEµ1DÅÃòÀq§G<#ܾï½è[Ðä]¡EV¨àùP\ŒãRÂÉipE>V_oÔ_!©¢õWB*¯
+ÂÁ÷¤×ï6Z¿¢åFÂ/mŠ"“òøq§ä—öŽì¿ü 7õ«æÆ~,º
+B5‹³è	5Á¹iŒJOËÊ;:lÇÊM	ljÕW
+SÕ¬V×ÈIí¢¥^B2kŽÚ|ašÿ^·\XÝ–¡õõŽnXk8ȧó‹w»ÚèƝ"ÿŸÖ˜­•	²'µ£¢¡u;=Õ¸¼Ú8Ã1´-"®pc*ß•žR)Û¼#”EÜIË¢MIgïËTàFøŠnŒ/ˆÕt|FuïælÞÅùÁ¼ì<í¶³ˆŠ–=1¢Ø
+*&	*6œœ¨ÔŽ¼Šp}°®^œ·ô‹ÆÓÁ%®–µ—
+C¿À4½9èëx	´1‰–>Å(CÙá†~Èyîð]<ÏGèmÃYüeÎ'Þö¦y‹)ê£ÙâzÞ˜-\4›ï=^*%Q¿!æa‡‹òM•o‹Dg2¹FöMúbžËK"¶ƒÁâ²d°‡ÛØ•ˆíGëj7>ƒÄýôÜ%P eWýÍÇ‘ow8}9m1›OÆh½–1K¼S…³¿ƒáHÊ> Xd¬•¦„fîꊴ®þNîÿ¼jƒ~ïèWçj{ÚnEÿÞýÅËñöŒµM»‡[ú(}[Þz“…sÒ×b†Œì0¼hö¡i›q(Š´o×U~»YϏåBÑ^øR6E·[³þ8YºÝ©Çà¦
+—sX/¸‰íHÞ^Ä|c{ ºåXR¤P©•X¢T©*3b¶îfðCα%ù€Ø"&Ë­"·3ŽZ[÷20µG½~K#ȐÄàßA°šÉï,ír‘EöJ[ŤS­b‘#ÕO¹-ÁF6¢Ãt,V¼e‰mš-/1ïh¾91s›ñAbó!ВLjüeZ\|mä,!8K';3‰ëꏵÿR·šª¥†iÕØLVše=!ìµ+·óëØÓ7hÞ´çv£7¹h;C]ÅÁ'¯ WÃÉ»gèÍæR34åHN‚âsê7™sêÐVdÉ	ü’o…->ÛAu  ;vÈRC*(Q @ @ ô•ÿ÷ÿ)üxŒ‹ÿO
+­-ÅkÒlí¢I I±_%/¦±Ôƒ èÉ¢ülvÉÎÂÌæ:Ä:_
+/ïZ£ñä²%Ž(ײ¬
+âXNG²~âøž{s]7´[4÷jF
+hëV;Ëæ}Ö´>5Ñ7×s\ü±íêe»Ên®áÅdšçEÏGÌýÕ7ó_;¹¹Þùû²÷	NÎ0A“™ÿu%¿à¨×É?€Ôuý$òmØQl9Ä
+­Ú±…C;J$NjÓ>Ô
+u˜T…ë†?‚O O[<îïMÎöÅ»¯<«Ð×kçè_.{‹É<'gäü«r¯êäÜc×…	`ÜÃð.î•a[î•aƒûP¼Û1÷ªvÎ}—†ü4ƒÞ!XÐß›ÌÁùçÁ³*9ò
+Ó$ mg&:š
+-íîJ6{´ÄÆÙ¦Y©ò`‘Ùf„Æ@'Þ&Ï—•qê¡ëGnd³@÷•^š´I·¥‹í)˜Ÿõ_ÒŸÊ7íû’yY«Œi¬ÓĵÍAú!²-?ñéÈI± Í)VJÇÍ Á®°GÛ«Í×{ãøåCÄñ½ W"x–Á	Ê¿rþ•rævàQLó†OÄ`™zž£0Å	Ršan®…QûÇYXʨ~Íßé<cˆª%ñi>™Êaöñ«x­F‘=pÛ	bÓ¢Ì5»6±W3cÄ?Mû#ù^‡Ñ]«™ÿͲ÷ïõ¾ŽGÃÑðàD£ZVôT· óÉ9»¶ÚÅØH"ß-8ÛVŒ(l`{1
+	Ž‚(¼¹–fN‹Ö2ªOø;–M借/{‰šã—Ç`FZtLRš‚=FÐw<m×ÅÇãwZÑ{¶ìýe¸ÿîà•N²‚ºådz(IÒ(.ºXIPéD oÈ£
+œ€.uè'…aD€ :§¬Ìtº,KwBTºW2•%*¨¾^ÚÓËzr$aˆü=ÕT?Õ[’뉑Ž,{«9b´Å·M†˜Ícä)ñ­>D^´†Ü·
+áÛU†”Í?ß
+;€(×öÞb¯¤(Œtº*ÊvÂQ8W¬~_‘œ(7{†gÓ=§
+}ºPñ
+ª…%ÕÄs+&
+N	8çï><Ôšs6Âvl—ƒVƒ­jõ»V¾Ãx­Õ¢$\/SÇîuWnÙ.ŠŠ`°îÝ\[t¶ëp-븓e}xúט\u¶ÿVó-ú$IÊ#3ró­f§ÓçZñN¦N5ÿ*®õ"Û£Ín*¯/¹zÙ0ðÑ(VßØÆkÈ«wÿ°ì霠N³•›lJŽòÜÌ{l³-ÆÊÍ6fѪgMx,¿¹ÆEQó8{È#3éR<Ù~qׯ¸Œºž2¥™NGõèL6µvî¨[šÏ}¬b0!q1g¸ª0,MZÅIi"éf›.&ï‹À²F‚WsrF—ŸÈPÍ<›¿É“–F«ÕT$ì&n1ùŒ±§D{Ëz‹²å­¶Ë¨½ÊæÇ­ñëÇð|{qãšØ”r1…â'˜ë±¯q°Mä×4_YŸÚq+ô·Üsôb–L°[¢_“×9Ø.ô·š/ïâsj<ù™`1Zh	àW}‹éN}¯øû2t<卦ÛæO~8¼ÝäZvÿØ>QINºUX#qq¤“òôjmš¹e½E~«í~¤{¾Ìf…º§Õâ(B”²°%YnÓª§Ü¦Ãå]RäuÖ_tŸ÷¶+ßE3+À4DžŠýíòïg¬Ýß^lK.X43€Q;-{ïuÎÿónÎþóú¹¿c:<ÅìT0Rf®}æŸWçý+[…Åc~ç	>i^þ~©¹„½=¢é®Ž<ß
+¤ðpìû|¬·ÝÈ‚„®6E=@›WÚ<ù‡š·S,ÿ¹˜/&gs‚÷ôî9‰â'šãQÓ½˜¶¦iäÅV
+
+Õ0¸è.‚nÔ‹/f=õüÃŃ÷Í’†Év•närËÃ}j’æK¦ñþiÈ!;¹ozþÈÑlQ´´JlàZ†é|ñe yŸîv8Š=×ë#Ù¿¶?»VM at wí¡æ\O÷ëÚ³õm”³t&×qÃL½xþöÏJï~3óìçIõ±ç‰âÜÍ©ï¹v¥65§­9d5ýjÆÒÕ@xâ(áCõ}ß‘.kŠZ</²tŒš)G/첦äOáç<)Ó|¶Â¡öÕ‰¿¾®bN¥¬ûÈYžI»_ž)Ãd.’»8±“yt§”kMâè^~XÆy¦o7i²ŒÖe ˜ó­­æÙkÿE
+£{–î6†ÓRƒÂ£¤½;¶ZÜ9Ò°•´yû¹k£ëÆtèÿ¤¤§.¨còL5ÜßÍ@!Yvžö5lšçòTCÎ&¬aÄ‹y¡×*2]ž¼q”ÏðíÌ‹BåÒ;ùjâ;Ê““c5•NÜG‹"x’Ò2Záê@Η—è`óx•W—;ºúÒÜr.­åž$ýjtÛñ/å5ðoçÖ㔌y´]­›Íòå¼ü“o{dEçÇ4™N·–t•?žû'PK
+
+
+
\ No newline at end of file

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/README.txt (from rev 1930, trunk/build/kit-runtime/examples/portfolio/README.txt)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/README.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/README.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,21 @@
+Install a recent version of Derby - see http://db.apache.org/derby/derby_downloads.html
+
+Create the example dataset in Derby by running <derby home>/bin/ij customer-schema.sql
+
+Put the <derby home>/lib/derbyclient.jar to the "<jboss home>/server/default/lib" directory.
+
+Copy the PortfolioModel/Portolio.vdb file to the "<jboss home>/server/default/deploy" directory.
+
+Copy the Connectors for the example
+	- derby-connector-ds.xml
+	- text-connector-ds.xml
+	- portfolio-ds.xml 
+ 
+Start the JBoss Container
+
+Use the simple client example run script i.e. 
+
+$run.sh portfolio "select * from CustomerAccount"
+
+That will execute the query against the CustomerAccount view in the Portfolio VDB running in Teiid embedded mode. 
+


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/README.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/customer-schema.sql (from rev 1930, trunk/build/kit-runtime/examples/portfolio/customer-schema.sql)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/customer-schema.sql	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/customer-schema.sql	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,162 @@
+CONNECT 'jdbc:derby://localhost:1527/teiid/accounts;create=true;';
+
+DROP TABLE CUSTOMER;
+CREATE TABLE CUSTOMER
+(
+   SSN char(10),
+   FIRSTNAME varchar(64),
+   LASTNAME varchar(64),
+   ST_ADDRESS varchar(256),
+   APT_NUMBER varchar(32),
+   CITY varchar(64),
+   STATE varchar(32),
+   ZIPCODE varchar(10),
+   PHONE varchar(15),
+   CONSTRAINT CUSTOMER_PK PRIMARY KEY(SSN)
+);
+
+DROP TABLE ACCOUNT;
+CREATE TABLE ACCOUNT
+(
+   ACCOUNT_ID integer,
+   SSN char(10),
+   STATUS char(10),
+   TYPE char(10),
+   DATEOPENED timestamp,
+   DATECLOSED timestamp,
+   CONSTRAINT ACCOUNT_PK PRIMARY KEY(ACCOUNT_ID),
+   CONSTRAINT CUSTOMER_FK FOREIGN KEY (SSN) REFERENCES CUSTOMER (SSN)
+);
+
+DROP TABLE PRODUCT;
+CREATE TABLE PRODUCT (
+   ID integer,
+   SYMBOL varchar(16),
+   COMPANY_NAME varchar(256),
+   CONSTRAINT PRODUCT_PK PRIMARY KEY(ID)
+);
+
+DROP TABLE HOLDINGS;
+CREATE TABLE HOLDINGS
+(
+   TRANSACTION_ID integer GENERATED ALWAYS AS IDENTITY (start with 2000, increment by 1),
+   ACCOUNT_ID integer,
+   PRODUCT_ID integer,
+   PURCHASE_DATE timestamp,
+   SHARES_COUNT integer,
+   CONSTRAINT HOLDINGS_PK PRIMARY KEY (TRANSACTION_ID),
+   CONSTRAINT ACCOUNT_FK FOREIGN KEY (ACCOUNT_ID) REFERENCES ACCOUNT (ACCOUNT_ID),
+   CONSTRAINT PRODUCT_FK FOREIGN KEY (PRODUCT_ID) REFERENCES PRODUCT (ID)
+);
+
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01002','Joseph','Smith','1234 Main Street','Apartment 56','New York','New York','10174','(646)555-1776');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01003','Nicholas','Ferguson','202 Palomino Drive',null,'Pittsburgh','Pennsylvania','15071','(412)555-4327');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01004','Jane','Aire','15 State Street',null,'Philadelphia','Pennsylvania','19154','(814)555-6789');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01005','Charles','Jones','1819 Maple Street','Apartment 17F','Stratford','Connecticut','06614','(203)555-3947');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01006','Virginia','Jefferson','1710 South 51st Street','Apartment 3245','New York','New York','10175','(718)555-2693');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01007','Ralph','Bacon','57 Barn Swallow Avenue',null,'Charlotte','North Carolina','28205','(704)555-4576');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01008','Bonnie','Dragon','88 Cinderella Lane',null,'Jacksonville','Florida','32225','(904)555-6514');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01009','Herbert','Smith','12225 Waterfall Way','Building 100, Suite 9','Portland','Oregon','97220','(971)555-7803');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01015','Jack','Corby','1 Lone Star Way',null,'Dallas','Texas','75231','(469)555-8023');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01019','Robin','Evers','1814 Falcon Avenue',null,'Atlanta','Georgia','30355','(470)555-4390');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01020','Lloyd','Abercrombie','1954 Hughes Parkway',null,'Los Angeles','California','90099','(213)555-2312');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01021','Scott','Watters','24 Mariner Way',null,'Seattle','Washington','98124','(206)555-6790');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01022','Sandra','King','96 Lakefront Parkway',null,'Minneapolis','Minnesota','55426','(651)555-9017');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01027','Maryanne','Peters','35 Grand View Circle','Apartment 5F','Cincinnati','Ohio','45232','(513)555-9067');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01034','Corey','Snyder','1760 Boston Commons Avenue','Suite 543','Boston','Massachusetts','02136 ','(617)555-3546');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01035','Henry','Thomas','345 Hilltop Parkway',null,'San Francisco','California','94129','(415)555-2093');
+INSERT INTO CUSTOMER (SSN,FIRSTNAME,LASTNAME,ST_ADDRESS,APT_NUMBER,CITY,STATE,ZIPCODE,PHONE) VALUES ('CST01036','James','Drew','876 Lakefront Lane',null,'Cleveland','Ohio','44107','(216)555-6523');
+
+
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19980002,'CST01002','Personal  ','Active    ',{ts '1998-02-01 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19980003,'CST01003','Personal  ','Active    ',{ts '1998-03-06 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19980004,'CST01004','Personal  ','Active    ',{ts '1998-03-07 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19980005,'CST01005','Personal  ','Active    ',{ts '1998-06-15 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19980006,'CST01006','Personal  ','Active    ',{ts '1998-09-15 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19990007,'CST01007','Personal  ','Active    ',{ts '1999-01-20 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19990008,'CST01008','Personal  ','Active    ',{ts '1999-04-16 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (19990009,'CST01009','Business  ','Active    ',{ts '1999-06-25 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20000015,'CST01015','Personal  ','Closed    ',{ts '2000-04-20 00:00:00.000'},{ts '2001-06-22 00:00:00.000'});
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20000019,'CST01019','Personal  ','Active    ',{ts '2000-10-08 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20000020,'CST01020','Personal  ','Active    ',{ts '2000-10-20 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20000021,'CST01021','Personal  ','Active    ',{ts '2000-12-05 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20010022,'CST01022','Personal  ','Active    ',{ts '2001-01-05 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20010027,'CST01027','Personal  ','Active    ',{ts '2001-08-22 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20020034,'CST01034','Business  ','Active    ',{ts '2002-01-22 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20020035,'CST01035','Personal  ','Active    ',{ts '2002-02-12 00:00:00.000'},null);
+INSERT INTO ACCOUNT (ACCOUNT_ID,SSN,STATUS,TYPE,DATEOPENED,DATECLOSED) VALUES (20020036,'CST01036','Personal  ','Active    ',{ts '2002-03-22 00:00:00.000'},null);
+
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1002,'BA','The Boeing Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1003,'MON','Monsanto Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1004,'ORCL','Oracle Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1005,'SY','Sybase Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1006,'MSFT','Microsoft Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1007,'IBM','International Business Machines Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1008,'DELL','Dell Computer Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1010,'HPQ','Hewlett-Packard Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1011,'GTW','Gateway, Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1012,'GE','General Electric Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1013,'MRK','Merck and Company Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1014,'DIS','Walt Disney Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1015,'MCD','McDonalds Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1016,'DOW','Dow Chemical Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1018,'GM','General Motors Corporation');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1022,'JAVA','Sun Microsystems Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1024,'SBGI','Sinclair Broadcast Group Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1025,'COLM','Columbia Sportsware Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1026,'COLB','Columbia Banking System Incorporated');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1028,'BSY','British Sky Broadcasting Group PLC');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1029,'CSVFX','Columbia Strategic Value Fund');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1030,'CMTFX','Columbia Technology Fund');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1031,'F','Ford Motor Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1033,'FCZ','Ford Motor Credit Company');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1034,'SAP','SAP AG');
+INSERT INTO PRODUCT (ID,SYMBOL,COMPANY_NAME) VALUES(1036,'TM','Toyota Motor Corporation');
+
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980002,1008,{ts '1998-02-01 00:00:00.000'},50);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980002,1036,{ts '1998-02-01 00:00:00.000'},25);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980003,1002,{ts '1998-03-06 00:00:00.000'},100);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980003,1029,{ts '1998-03-06 00:00:00.000'},25);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980003,1016,{ts '1998-03-06 00:00:00.000'},51);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980004,1011,{ts '1998-03-07 00:00:00.000'},30);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980005,1024,{ts '1998-06-15 00:00:00.000'},18);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980006,1033,{ts '1998-09-15 00:00:00.000'},200);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990007,1031,{ts '1999-01-20 00:00:00.000'},65);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990008,1012,{ts '1999-04-16 00:00:00.000'},102);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990007,1008,{ts '1999-05-11 00:00:00.000'},85);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990008,1005,{ts '1999-05-21 00:00:00.000'},105);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990009,1004,{ts '1999-06-25 00:00:00.000'},120);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980003,1020,{ts '1999-07-22 00:00:00.000'},150);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000015,1018,{ts '2000-04-20 00:00:00.000'},135);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980006,1030,{ts '2000-06-12 00:00:00.000'},91);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000019,1029,{ts '2000-10-08 00:00:00.000'},351);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000020,1030,{ts '2000-10-20 00:00:00.000'},127);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000020,1018,{ts '2000-11-14 00:00:00.000'},100);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000019,1031,{ts '2000-11-15 00:00:00.000'},125);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000021,1028,{ts '2000-12-05 00:00:00.000'},400);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20010022,1006,{ts '2001-01-05 00:00:00.000'},237);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990008,1015,{ts '2001-01-23 00:00:00.000'},180);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980005,1025,{ts '2001-03-23 00:00:00.000'},125);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20010027,1020,{ts '2001-08-22 00:00:00.000'},70);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000020,1006,{ts '2001-11-14 00:00:00.000'},125);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980003,1029,{ts '2001-11-15 00:00:00.000'},100);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000021,1011,{ts '2001-12-18 00:00:00.000'},44);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20010027,1022,{ts '2001-12-19 00:00:00.000'},115);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020034,1024,{ts '2002-01-22 00:00:00.000'},189);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19990009,1022,{ts '2002-01-24 00:00:00.000'},30);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020035,1013,{ts '2002-02-12 00:00:00.000'},110);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020035,1034,{ts '2002-02-13 00:00:00.000'},70);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020034,1003,{ts '2002-02-22 00:00:00.000'},25);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000019,1013,{ts '2002-02-26 00:00:00.000'},195);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980004,1007,{ts '2002-03-05 00:00:00.000'},250);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20000021,1014,{ts '2002-03-12 00:00:00.000'},300);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20010027,1024,{ts '2002-03-14 00:00:00.000'},136);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020036,1012,{ts '2002-03-22 00:00:00.000'},54);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (20020036,1010,{ts '2002-03-26 00:00:00.000'},189);
+INSERT INTO HOLDINGS (ACCOUNT_ID,PRODUCT_ID,PURCHASE_DATE,SHARES_COUNT) VALUES (19980005,1010,{ts '2002-04-01 00:00:00.000'},26);
+
+
+COMMIT;
+
+DISCONNECT CURRENT;
+

Added: trunk/build/kit-jboss-container/teiid-examples/portfolio/derby-connector-ds.xml
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/derby-connector-ds.xml	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/derby-connector-ds.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<connection-factories>
+   <no-tx-connection-factory>
+      <jndi-name>derby-connector</jndi-name>
+      <rar-name>connector-jdbc-${project.version}.rar</rar-name>
+      <connection-definition>org.teiid.connector.api.Connector</connection-definition>
+      
+      <!--
+        All the available properties for this connector are defined inside the "ra.xml" defined inside the rar
+        file mentioned above. 
+       -->
+      <config-property name="CapabilitiesClass" type="java.lang.String">org.teiid.connector.jdbc.derby.DerbyCapabilities</config-property>
+      <config-property name="XaCapable" type="java.lang.Boolean">true</config-property>
+      <config-property name="ExtensionTranslationClassName" type="java.lang.String">org.teiid.connector.jdbc.derby.DerbySQLTranslator</config-property>
+      
+      <!--
+        This xml file is defining a connector for Teiid. Still this is not the source, this is just a 
+        Teiid connector wrapping layer. This layer needs access to physical JDBC source, that is defined
+        in the below property. This is a data source in JBoss. This can be any RDBMS. Look at 
+        "{jboss.home}/docs/examples/jca" folder. Also look at "portfolio-ds.xml" file for below data source
+      -->
+      <config-property name="SourceJNDIName" type="java.lang.String">java:PortfolioDS</config-property>
+            
+      <max-pool-size>20</max-pool-size>
+    </no-tx-connection-factory>    
+
+</connection-factories>
\ No newline at end of file


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/derby-connector-ds.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-def.txt (from rev 1930, trunk/build/kit-runtime/examples/portfolio/marketdata-def.txt)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-def.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-def.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,6 @@
+MarketData.Price.location = marketdata-price.txt
+MarketData.Price.delimiter = ,
+MarketData.Price.headerLine = 1
+MarketData.Price.skipHeaderLines = 1
+MarketData.Price.columns=SYMBOL,PRICE
+MarketData.Price.types=string,bigdecimal


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-def.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-price.txt (from rev 1930, trunk/build/kit-runtime/examples/portfolio/marketdata-price.txt)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-price.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/marketdata-price.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,20 @@
+SYMBOL,PRICE
+BA,42.75
+MON,78.75
+ORCL,16.54
+SY,24.30
+MSFT,20.60
+IBM,80.89
+DELL,10.75
+HPQ,31.52
+GE,16.45
+MRK,27.20
+DIS,20.53
+MCD,54.55
+DOW,21.80
+GM,3.15
+JAVA,3.79
+SBGI,2.19
+COLM,33.89
+COLB,12.64
+BSY,23.81
\ No newline at end of file

Added: trunk/build/kit-jboss-container/teiid-examples/portfolio/portfolio-ds.xml
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/portfolio-ds.xml	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/portfolio-ds.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+   <xa-datasource>
+      <jndi-name>PortfolioDS</jndi-name>
+        <isSameRM-override-value>false</isSameRM-override-value>
+        <xa-datasource-class>org.apache.derby.jdbc.ClientXADataSource</xa-datasource-class>
+        <xa-datasource-property name="DatabaseName">teiid/accounts</xa-datasource-property>
+        <xa-datasource-property name="User">sa</xa-datasource-property>
+        <xa-datasource-property name="Password"></xa-datasource-property>
+        <xa-datasource-property name="PortNumber">1527</xa-datasource-property>
+        <xa-datasource-property name="ServerName">localhost</xa-datasource-property>
+
+        <track-connection-by-tx>true</track-connection-by-tx>
+        <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
+
+        <max-pool-size>5</max-pool-size>
+        <min-pool-size>1</min-pool-size>
+      <metadata>
+         <type-mapping>Derby</type-mapping>
+      </metadata>
+   </xa-datasource>
+</datasources>
+


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/portfolio-ds.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/build/kit-jboss-container/teiid-examples/portfolio/text-connector-ds.xml
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/portfolio/text-connector-ds.xml	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/portfolio/text-connector-ds.xml	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<connection-factories>
+
+   <no-tx-connection-factory>
+      <jndi-name>text-connector</jndi-name>
+      <rar-name>connector-text-${project.version}.rar</rar-name>
+      <connection-definition>org.teiid.connector.api.Connector</connection-definition>
+      
+      <!--
+        All the available properties for this connector are defined inside the "ra.xml" defined inside the rar
+        file mentioned above. 
+       -->
+             
+      <config-property name="XaCapable" type="java.lang.Boolean">false</config-property>
+
+      <config-property name="DescriptorFile" type="java.lang.String">${jboss.server.home.dir}/teiid-examples/portfolio/marketdata-def.txt</config-property>
+            
+      <max-pool-size>20</max-pool-size>
+
+    </no-tx-connection-factory>
+
+</connection-factories>
\ No newline at end of file


Property changes on: trunk/build/kit-jboss-container/teiid-examples/portfolio/text-connector-ds.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.class (from rev 1930, trunk/build/kit-runtime/examples/simpleclient/JDBCClient.class)
===================================================================
(Binary files differ)


Property changes on: trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Copied: trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.java (from rev 1930, trunk/build/kit-runtime/examples/simpleclient/JDBCClient.java)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.java	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.java	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,90 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership.  Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ * 
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+import org.teiid.jdbc.TeiidDataSource;
+
+public class JDBCClient {
+	public static void main(String[] args) throws Exception {
+		if (args.length < 4) {
+			System.out.println("usage: JDBCClient <host> <port> <vdb> <sql-command>");
+			System.exit(-1);
+		}
+
+		System.out.println("Executing using the TeiidDriver");
+		execute(getDriverConnection(args[0], args[1], args[2]), args[3]);
+
+		System.out.println("");
+		System.out.println("Executing using the TeiidDataSource");
+		// this is showing how to make a Data Source connection. 
+		execute(getDataSourceConnection(args[0], args[1], args[2]), args[3]);
+	}
+	
+	static Connection getDriverConnection(String vdb, String host, String port) throws Exception {
+		String url = "jdbc:metamatrix:"+vdb+"@mm://"+host+":"+port;
+		Class.forName("org.teiid.jdbc.TeiidDriver");
+		
+		return DriverManager.getConnection(url,"admin", "teiid");		
+	}
+	
+	static Connection getDataSourceConnection(String vdb, String host, String port) throws Exception {
+		TeiidDataSource ds = new TeiidDataSource();
+		ds.setDatabaseName(vdb);
+		ds.setUser("admin");
+		ds.setPassword("teiid");
+		ds.setServerName(host);
+		ds.setPortNumber(Integer.valueOf(port));
+		return ds.getConnection();
+	}
+	
+	public static void execute(Connection connection, String sql) throws Exception {
+		try {
+			Statement statement = connection.createStatement();
+			
+			ResultSet results = statement.executeQuery(sql);
+			
+			ResultSetMetaData metadata = results.getMetaData();
+			int columns = metadata.getColumnCount();
+			
+			while(results.next()) {
+				for (int i = 0; i < columns; i++) {
+					System.out.print(results.getString(i+1));
+					System.out.print(",");
+				}
+				System.out.println("");
+			}
+			results.close();
+			statement.close();
+		} catch (SQLException e) {
+			e.printStackTrace();
+		} finally {
+			if (connection != null) {
+				connection.close();
+			}
+		}		
+	}
+}


Property changes on: trunk/build/kit-jboss-container/teiid-examples/simpleclient/JDBCClient.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/simpleclient/readme.txt (from rev 1930, trunk/build/kit-runtime/examples/simpleclient/readme.txt)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/simpleclient/readme.txt	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/simpleclient/readme.txt	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,11 @@
+JDBCClient.java shows making connections to Teiid in embedded mode through both a Driver
+and a DataSource.
+
+The program expects two arguments <vdb name> and <sql query>.  There are helper run scripts 
+that can be run as follows:
+
+$run.sh admin "select * from groups"
+
+Note that the query is in quotes so that it is understood as a single argument.
+
+See the other examples for deployable .vdb and .def files to create vdbs.
\ No newline at end of file


Property changes on: trunk/build/kit-jboss-container/teiid-examples/simpleclient/readme.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Copied: trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.bat (from rev 1930, trunk/build/kit-runtime/examples/simpleclient/run.bat)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.bat	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.bat	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,8 @@
+rem First one sets the path for the client
+set CLIENT_PATH=.
+
+rem Second one adds the Teiid client
+set TEIID_PATH=../client/teiid-${pom.version}-client.jar
+
+java -cp %CLIENT_PATH%;%TEIID_PATH% JDBCClient %*
+

Copied: trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.sh (from rev 1930, trunk/build/kit-runtime/examples/simpleclient/run.sh)
===================================================================
--- trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.sh	                        (rev 0)
+++ trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.sh	2010-03-08 21:03:19 UTC (rev 1935)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# First one sets the path for the client
+CLIENT_PATH=.
+
+#Second one for the Teiid client jar
+TEIID_PATH=../../client/teiid-${pom.version}-client.jar
+
+java -cp ${CLIENT_PATH}:${TEIID_PATH} JDBCClient "$@"


Property changes on: trunk/build/kit-jboss-container/teiid-examples/simpleclient/run.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the teiid-commits mailing list