[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
BEGIN
DECLARE boolean VARIABLES.valid = FALSE;
IF(mmuuid:3ee64340-ddc2-1105-b511-c9cb83fb3e5e IS NOT NULL)
BEGIN
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;
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;
IF((VARIABLES.acct IS NOT NULL) AND (VARIABLES.product IS NOT NULL))
BEGIN
VARIABLES.valid = TRUE;
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);
END
END
IF(VARIABLES.valid = FALSE)
BEGIN
ERROR 'Invalid Account';
END
SELECT VARIABLES.valid AS sucess;
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=""ACCOUNT"">
+ <columns xmi:uuid="mmuuid:0afd4d80-da11-1105-b511-c9cb83fb3e5e" name="ACCOUNT_ID" nameInSource=""ACCOUNT_ID"" 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=""SSN"" 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=""STATUS"" 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=""TYPE"" 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=""DATEOPENED"" 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=""DATECLOSED"" 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=""CUSTOMER_FK"" 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=""ACCOUNT_PK"" 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=""CUSTOMER"">
+ <columns xmi:uuid="mmuuid:0d7e2c00-da11-1105-b511-c9cb83fb3e5e" name="SSN" nameInSource=""SSN"" 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=""FIRSTNAME"" 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=""LASTNAME"" 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=""ST_ADDRESS"" 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=""APT_NUMBER"" 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=""CITY"" 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=""STATE"" 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=""ZIPCODE"" 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=""PHONE"" 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=""CUSTOMER_PK"" 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=""HOLDINGS"">
+ <columns xmi:uuid="mmuuid:0e90d480-da11-1105-b511-c9cb83fb3e5e" name="TRANSACTION_ID" nameInSource=""TRANSACTION_ID"" 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=""ACCOUNT_ID"" 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=""PRODUCT_ID"" 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=""PURCHASE_DATE"" 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=""SHARES_COUNT"" 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=""PRODUCT_FK"" 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=""ACCOUNT_FK"" 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=""HOLDINGS_PK"" columns="mmuuid/0e90d480-da11-1105-b511-c9cb83fb3e5e"/>
+ </relational:BaseTable>
+ <relational:BaseTable xmi:uuid="mmuuid:104b55c0-da11-1105-b511-c9cb83fb3e5e" name="PRODUCT" nameInSource=""PRODUCT"">
+ <columns xmi:uuid="mmuuid:10a6e340-da11-1105-b511-c9cb83fb3e5e" name="ID" nameInSource=""ID"" 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=""SYMBOL"" 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=""COMPANY_NAME"" 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=""PRODUCT_PK"" 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=""ACCOUNT"" unique="true" columns="mmuuid/0afd4d80-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:716988d5-867c-4bcf-b11a-30acc6d09764" name="SQL090601093247181" nameInSource=""ACCOUNT"" unique="true" columns="mmuuid/0b2b1440-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:24cf356c-76b0-4da4-9ca7-4664b20c9ef8" name="SQL090601093247030" nameInSource=""CUSTOMER"" unique="true" columns="mmuuid/0d7e2c00-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:6178e998-0494-4fa7-8988-8987917480d1" name="SQL090601093247350" nameInSource=""HOLDINGS"" unique="true" columns="mmuuid/0e90d480-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:af8532e8-41ae-4d57-a6f3-7a9a7eab67bc" name="SQL090601093247351" nameInSource=""HOLDINGS"" unique="true" columns="mmuuid/0e90d481-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:cae2ef07-ad18-4231-88bb-e91305822e3f" name="SQL090601093247352" nameInSource=""HOLDINGS"" unique="true" columns="mmuuid/0e90d482-da11-1105-b511-c9cb83fb3e5e"/>
+ <relational:Index xmi:uuid="mmuuid:5542d838-24f8-4202-8abe-ad8e43c6e066" name="SQL090601093247280" nameInSource=""PRODUCT"" 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.Hwå<ö¦ò2V2SRÑôõ§ª¡»ì,ónè(ÀHVÔÏ_Üäùúìôôöö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¨ÆxrIVq¤=ýêTÖv
+Ì1p͹Â&^Àæ(7·7aN/Ù °9{qâ%QDÖ ¥)[lÐ4.þìý©^qUk½@ÝivCÑLcPtgÆèPtE¢ðê_òªcc²Ý`
+ø°9*$w[¯Í©p ¡¹&bî'P\D$HpN@ʱGÒ4$K
+\çgÿ~÷úùDÂôÞàϱULN\üÖ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"NCTÓÖ&믬wo0¨:ñMß±5OS©¥VßötK%a{õó
5:H¼Ü]£
+ÕJLÀêHªlèC¹0Ab)>Ywïëïß¾RfËúXS<rEÚRlè"á_b$
+
+Ëcín
+ó°à¤
+ãw|~CiõñI©fãÅÁ¾aÀF×
+óÙs
+¥R¹ÖÏ[ßïòw_µÝK\ðé0|b¬ØvueÜkMȵ''Ì"d
+ðV\pCÛà¶WþXaÛvg¹¨
¦G
+}a
+åemPBvêäÉ*ô
+¸ÑhQÃ-§r
ñùö¹ØW˯|hVm]P~l
8f¶û¿<ô%üdãF}öÃ'àMuç Z
+)G^§¦-³¡%bÝT(GQipNkÚòí(i˶v
+í(*SA[j9«á,´êQªÀÄÎïSt´ùè4ôånýØ©|:p~K¾ìòÈ×cÕ¡0w(HÈ
¹CA
+dºf1àG×n(K?¶4\ÛÑg6S¾*ÿêó¢Kx[±FLJ7-Iob¥YØ
+Ü2á'åi&~èIR!º
+.§Õ½.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Å»5g@ç9X¸¤ÉeÝøzníøK¡WÄ6òð4ìíNe=ª5jB%{Ö1ܲò¿L¬¶¡ Ï;Þ¢c;²dùXk0°Ü÷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þáýè()Ú÷qUnw+Ú51ebÐñ´ ä2h¢£MØr ³íÆÅn5¦ÐÐe^3¨K28óCpAspØØrÁ*ñiô¥v? ¬6äæyÚzßEÇ!ÛJCI£Ã(Ô¦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))-Ê
<¥]OPvl7òU^ñ]fêUJâ)õ
+Ödé½mâár鶦6sËXÄ¢ó¡½±Q7üfÿüÅÿPKØÁà
+¸a5Ox9\gòÌÌm¬?ýÀçzÌÅD¤,Lpr eÈÖðr0^~ìÆÁlHø÷¿þ\ÌÒÆåUNÉÙd1KÇ<TD±ç|íu·½÷Á^|9J£¯zÉsw0îüÚ¹¨×Âè^«oÒÛóz,ò¨eTK¨~ñb2ÉX:¯×Ë^/¨×$PèxeW<¯|2sÍyËE4Òð°×»î|iuFãë^÷uG.ô'ý0_!nA cÂE¡ã¹b¶BÜör\ßs=È3BD±Ò÷z3Ë·¸"$È.,;æ8[ÔE¶Î¦ar+,Ⱥ³åV»Mtx8ât½8EFMØÂ"fÉòp¡,NMÒ¤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ª)²lI8ñ§R¢0ôË°G}ÌW´Le>G~Ê(ïÐi7ö§©
+T§¥ò=ÇCBÀ¡Çöhh{ä©V¥Ç´ï3Le>cÙÏ·< _Y¯Øâ\ÜH¨¾Zcú¸=&ÌulÍ 2\áÀõàX:Èã>÷4Ôò;¯"#=º¶/[Õ!ÚØI®mÂ.Îq²1&Ò¾å`Ù¶vÂqÁ-×eH6HpC,Âzô9Rp}G£Ël×
+:×íJÕµ3äØ;ijÑé$
+ÌñiÛu$p=º&r?s&»Á£-²¹ýÕ;°µ?eΨmkÒÿ5ÓG»:¶RÜo
+¨÷&òõe$º
p]³>n±Zö.%CnaNµcv2¨
+Çì_Ç~A8û÷"S8FB¢]U×v%Þ4F¿±ýöæ1ØÖ,Nyë¤ìImE|jtÙâQ÷Óâ!ö½
+ÁÅÞZ\µdy{FÚêÒ\Üqù¿Ñ
g8
+Ç£ÒwyþxUfê:;=ò:A@©9PíßP¬'ÂAP\Û¹mg9Uæ¦,«v±g°IÊL(!@ #°¥Á6NêA»i¦·¶Ü´EYÄÜ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âéíü}£95Ê,gåûüm³÷ÁÕ`8¸êoæmÙöNÆ~mÜüÐë<wîQ>w;ÿîÙø(áÞ¿;ko~¾÷PK³{
+
+ù2µ¿ bã4ãDvÑo[óεÙ5ÅdÝ0fK!ËbÚº(=ÖÔroÎ}>ÌÑ+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¢XLr²ßð4ÊoÓÈ+Æ\µÁ¨56èóbþ2½yT¿âôWEîɦØyábÛCUaèxV#+µ=4¹¡ºçÝ|Ôcg¼Jö_ÒO
zxÖ9¥ôñ²]û£æ
vROñäîÿÐaQ)£¡ÓÏRjàI½ø}vß®c>Djß4ôy;N²S?VFNý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þSbSSnV3YAÑB&¢zåÍí³¸ðgµÖLtFªH$ÖÄï©(Ù
+ì%Z74-SDbÄl0ý
+DzôÈ_:f}á9³ä°¯q*×GZ'CãXѤ4k#s¬Évv¡ ¬Ö
+Ú~"I`Åz8ê("K«Dr¶(Bi§AU¨:_&LUdYTT³ØÚ¨Â*Êñ°!?Ù*ÒñÉËB.ÕÑqÃû=£
+«É¢ÆË áÃ9ênTO*¯â V¬ÍEUÓ]ï¢ÊwÊ~öS»%|V³ÝB,bE5ÞÚÔ;Îë}_vµ_Ì©ÂRZ?Dr°ÙØÎ=ÙUûöUC½2þ^-ªºÌ]7èTD^ª¤ÓÝmà·Ì¬OÚ<àÕ&äg%8EZ>^c%òúCèîy`!©µFÊf<zuA
+&ΫëRlÌÓ5ÆÄ0ìP4æX |N¤1¥<¤8ÑÕ
÷Ì»J3ÿn#û"$|¸ÏõéâîÛ`²ÔÏóÙM&"äX(öþ=Ö¥Í;kL©1ÿù¢ÏõW79±^¦_°³ÚÖ×é(OcùýiÖZ[A~Ü£Öärù¶ÐÆþsùÐT%.ªÜÄÅns°`tßĵõMY4³åtþ½R_5.ÅìFw?çÆ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íÃ40Qe¬ Ø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¿Uub·:G ó6©çu¯ºý:nºó¯â2¡;ä;éÀòîWn§4ë
Î$w8²ê£å\ÿ×Û'ðáþ×xýßHNs1]w
Ã|ÌÇOÝèþ"[ÄôÏ¡?§e7cYâ»Pn
1cÎÌt9\Öv|O¸Éì
úÌõù¶Õá¤ÒsT!ÿ¤èÞl,Mt,Í¢ßÛ®j*!Þ2or-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ð czÔ½qèX,XÀ6\*úí,$ø;Âü~ûò6« ]©».ô{6¼X}S9VãÛô
+ÍRMÁ3¦Üfxæmì)ÛÄSç¯nX|wè¢UÔ6ÿïê±
0W¸<t|râo7ѧMË
+i`Ý×îj»v*?ç¢8ÝH:e?a4ÁÎ}ðÚé6úC;ùpí0à3°ÞÃû©AràÁ`Ú+;x&3Üéßúíân2þªwcÿ½Å_ñóNLÀbþ$39ª& KQ¼À)Èr¾q
+WN2ëM½%©B>à 5MDQ|$De:Ì*¡JSÕ¼p±·×â`"Ñ6½iñ)Kun(»j¼5¾QQ¤È£Ü3$îHã?vh
+ø©oÚ¹g+ÌK¯«1U=Ñ8ºÀsvÈÝ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ñspNEhS§¿ß_k¼t T]Ÿfç
+Þ>¦0c>ùnam7¶Îê³Ûö/?mÿ9ÞXÖÿUp/åí~o6Gå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¥,ÉÁáÄ¢ Á
+:±T8L²I¢z¨n5ø0x»z:Z(w¨|¤6¤IæJÄH¥ùë%ª'0ȸPóô`ÃcúëºÕà}]è$m7¹ÚÖé ¿\³j45Úù¿\§9V·6ªÉLl)W2GÚnr»FÛºi-ëÕ)m´x¨ë%¶4{¨o(,%â0$(8ntÁM£%buk£3åÉÛëUXÚX¥Âs½¤^3<^.Ó©[
+*A©Ã¨×Y´T«]#mÛjJ}üÐyþjð}é^ê
+í)K!<Íp9Pî\Æ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Ô-KJ¢Õ;ó`µ³àµ³PÐJpYX¸&)'Ö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ÍÜÀ
îAIhEtÂo6JÙ<\³ùttójµÔ^¨$Q¡èr<Æäò<ëcâ}Lø2KK®'pÈ
+a
+ø|º®>²Tk`f 1»¬Pá <NÜé8E.Pzh]öô,)vGR¡
+Ê*2J¡;£×Õ¦60nGï7Ôue:OS
+íIué¢+®)LRüÜ!ïIn!~tÂcc~B8¹ß¹Ú?´w$/¿ÓZÖe°+¹Ðå?JKäcZb89
+Ð#ÂIzÖê¡vô,¬¢kX+eJÆåacO-åaǵÕ|tEµ1DÅÃòÀq§G<#ܾï½è[Ðä]¡EV¨àùP\ãRÂÉipE>V_oÔ_!©¢õWB*¯
+ÂÁ÷¤×ï6Z¿¢åFÂ/m"òøq§äöì¿ü 7õ«æÆ~,º
+B5³è 5Á¹iJOËÊ;:lÇÊM ÇÕW
+SÕ¬V×ÈIí¢¥^B2kÚ|aÿ^·\XÝ¡õõnXk8ȧó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òMoDg2¹FöMúbËK"¶Áâ²d°ÛØíGëj7>ÄýôÜ%P eWýÍÇow8}9m1OÆh½1K¼S
³¿áHÊ> Xd¬¦fîê´®þNîÿ¼j~ïèWçj{ÚnEÿÞýÅËñöµM»[ú(}[Þz
sÒ×bì0¼hö¡iq(´o×U~»YÏåBÑ^øR6E·[³þ8YºÝ©Çà¦
+sX/¸íHÞ^Ä|c{ ºåXR¤P©X¢T©*3b¶îfðCα%ùØ"&Ë"·3Z[÷20µG½~K#ÈÄàßA°Éï,írEöJ[ŤSb#ÕO¹-ÁF6¢Ãt,V¼em-/1ïh¾91sñAbó!ÐÇüeZ\|mä,!8K';3ëêµÿR·ª¥iÕØLVe=!ìµ+·óëØÓ7hÞ´çv£7¹h;C]ÅÁ'¯ WÃÉ»gèÍæR34åHNâsê7sêÐ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Ó>Ô
+uT
ë?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Å Ran®
QûÇYXʨ~Íßé<cª%ñi>Êaöñ«xF=pÛ bÓ¢Ì5»6±W3cÄ?Mû#ù^Ñ]«ÿͲ÷ïõ¾GÃÑðàD£ZVôT· óÉ9»¶ÚÅØH"ß-8ÛV(l`{1
+ (¼¹fNÖ2ªOø;Må/{ãÇ`FZtLR=FÐw<m×ÅÇãwZÑ{¶ìýe¸ÿîàN²ºådz(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ÂvlVjõ»V¾ÃxÕ¢$\/SÇîuWnÙ.`°îÝ\[t¶ëp-ë¸e}xú×\u¶ÿVó-ú$IÊ#3róf§ÓçZñN¦N5ÿ*®õ"Û£Ín*¯/¹zÙ0ðÑ(VßØÆkÈ«wÿ°ìé N³lJòÜÌ{l³-ÆÊÍ6fѪgMx,¿¹ÆEQó8{È#3éR<Ù~qׯ¸º2¥NGõèL6µvî¨[Ï}¬b0!q1g¸ª0,MZÅIi"éf.&ïÀ²FWsrFÈPÍ<¿ÉF«ÕT$ì&n1ù±§D{Ëz²å¶Ë¨½ÊæÇñëÇð|{qãØr1
â'뱯q°Mä×4_YÚq+ô·ÜsôbL°[¢_×9Ø.ô·/ïâsj<ù`1Zh àW}éN}¯øû2t<å¦ÛæO~8¼ÝäZvÿØ>QINºUX#qq¤òôjm¹e½E~«í~¤{¾Ìf
º§Õâ(B²°%YnÓª§Ü¦Ãå]RäuÖ_t÷¶+ßE3+À4Dýíòïg¬Ýß^lK.X43Q;-{ïuÎÿónÎþóú¹¿c:<ÅìT0Rf®}æWçý+[
Åc~ç >i^þ~©¹½=¢é®<ß
+¤ðpìû|¬·ÝÈ®6E=@WÚ<ù·S,ÿ¹/&gs÷ôî9â'ãQÓ½¶¦iäÅV
+
+Õ0¸è.nÔ/f=õüÃÅ÷ÍÉvnä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õ}ß.kZ</²t)G/첦äOáç<)Ó|¶Â¡öÕ¿¾®bN¥¬ûÈYI»_)Ã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â;Êc5NÜG"xÒ2Záê@Îè`óxW;ºúÒÜr.å$ýjtÛñ/å5ðoçÖãy´]Íòå¼üo{dEçÇ4N·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