[federate-commits] Federate SVN: r38 - in trunk: build/kit-embedded/examples/portfolio/PortfolioModel and 2 other directories.
federate-commits at lists.jboss.org
federate-commits at lists.jboss.org
Mon Nov 24 17:49:09 EST 2008
Author: rareddy
Date: 2008-11-24 17:49:09 -0500 (Mon, 24 Nov 2008)
New Revision: 38
Added:
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/.project
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/AccountView.xmi
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Accounts.xmi
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/MarketData.xmi
trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Portfolio.vdb
trunk/build/kit-embedded/examples/portfolio/java/
trunk/build/kit-embedded/examples/portfolio/java/JDBCClient.java
trunk/build/kit-embedded/examples/portfolio/java/jdbcclient.jar
trunk/build/kit-embedded/examples/portfolio/java/readme.txt
trunk/build/kit-embedded/examples/portfolio/run.bat
trunk/build/kit-embedded/examples/portfolio/run.sh
Modified:
trunk/build/kit-embedded/examples/portfolio/marketdata-def.txt
trunk/federate-embedded/src/main/resources/mm.properties
Log:
FEDERATE-12: adding "portfolio" example to the embedded kit.
Added: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/.project
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/PortfolioModel/.project (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/PortfolioModel/.project 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PortfolioModel</name>
+ <comment>MetaMatrix Enterprise Designer, version 5.5</comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.metamatrix.modeler.core.modelBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.metamatrix.modeler.core.modelNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/AccountView.xmi
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/PortfolioModel/AccountView.xmi (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/PortfolioModel/AccountView.xmi 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,159 @@
+<?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="MetaMatrix" ProducerVersion="5.5">
+ <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="252" yPosition="50"/>
+ <diagramEntity xmi:uuid="mmuuid:c900dc80-db7d-1105-b511-c9cb83fb3e5e" xPosition="302" yPosition="50">
+ <modelObject href="Accounts.xmi#mmuuid/08c8ba40-da11-1105-b511-c9cb83fb3e5e"/>
+ </diagramEntity>
+ <diagramEntity xmi:uuid="mmuuid:55e8a380-db7e-1105-b511-c9cb83fb3e5e" xPosition="518" yPosition="50">
+ <modelObject href="Accounts.xmi#mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e"/>
+ </diagramEntity>
+ <diagramEntity xmi:uuid="mmuuid:f8271000-db7e-1105-b511-c9cb83fb3e5e" xPosition="734" yPosition="50">
+ <modelObject href="Accounts.xmi#mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e"/>
+ </diagramEntity>
+ <diagramEntity xmi:uuid="mmuuid:fdc1e340-db7f-1105-b511-c9cb83fb3e5e" xPosition="967" yPosition="50">
+ <modelObject href="Accounts.xmi#mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e"/>
+ </diagramEntity>
+ <diagramEntity xmi:uuid="mmuuid:8e993e80-db81-1105-b511-c9cb83fb3e5e" xPosition="1199" 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, 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 (mmuui!
d: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.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.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">
+ <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>
+ </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-embedded/examples/portfolio/PortfolioModel/AccountView.xmi
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Accounts.xmi
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Accounts.xmi (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Accounts.xmi 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,102 @@
+<?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="MetaMatrix" ProducerVersion="5.5">
+ <modelImports xmi:uuid="mmuuid:1bcc4800-da11-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:1bfa0ec0-da11-1105-b511-c9cb83fb3e5e" name="SimpleDatatypes-instance" modelLocation="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance" 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="ID" nameInSource=""ACCOUNT_ID"" nativeType="INTEGER" fixedLength="true" precision="10" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+ <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">
+ <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>
+ </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">
+ <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>
+ </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">
+ <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">
+ <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">
+ <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>
+ </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" caseSensitive="false" searchability="ALL_EXCEPT_LIKE">
+ <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>
+ </relational:BaseTable>
+ <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="476" yPosition="10"/>
+ <diagramEntity xmi:uuid="mmuuid:71ddf900-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/0cf4d7c0-da11-1105-b511-c9cb83fb3e5e" xPosition="243" yPosition="146"/>
+ <diagramEntity xmi:uuid="mmuuid:71ed3b40-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/0e078040-da11-1105-b511-c9cb83fb3e5e" xPosition="10" yPosition="10"/>
+ <diagramEntity xmi:uuid="mmuuid:71ed3b41-da11-1105-b511-c9cb83fb3e5e" modelObject="mmuuid/104b55c0-da11-1105-b511-c9cb83fb3e5e" xPosition="243" yPosition="10"/>
+ </diagram>
+ </diagram:DiagramContainer>
+ <jdbc:JdbcSource xmi:uuid="mmuuid:68330e00-da0b-1105-b511-c9cb83fb3e5e" name="Accounts" driverName="Apache Derby Network" driverClass="org.apache.derby.jdbc.ClientDriver" url="jdbc:derby://localhost:1527/federate/accounts">
+ <importSettings xmi:uuid="mmuuid:6c8cf240-da0b-1105-b511-c9cb83fb3e5e" 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-embedded/examples/portfolio/PortfolioModel/Accounts.xmi
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/MarketData.xmi
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/PortfolioModel/MarketData.xmi (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/PortfolioModel/MarketData.xmi 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,20 @@
+<?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="MetaMatrix" ProducerVersion="5.5">
+ <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">
+ <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>
+ </relational:BaseTable>
+</xmi:XMI>
Property changes on: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/MarketData.xmi
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Portfolio.vdb
===================================================================
(Binary files differ)
Property changes on: trunk/build/kit-embedded/examples/portfolio/PortfolioModel/Portfolio.vdb
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/build/kit-embedded/examples/portfolio/java/JDBCClient.java
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/java/JDBCClient.java (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/java/JDBCClient.java 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,88 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright (C) 2008 Red Hat, Inc.
+ * Copyright (C) 2000-2007 MetaMatrix, Inc.
+ * Licensed to Red Hat, Inc. under one or more contributor
+ * license agreements. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * 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 com.metamatrix.jdbc.EmbeddedDataSource;
+
+public class JDBCClient {
+ public static void main(String[] args) throws Exception {
+ if (args.length < 1) {
+ System.out.println("usage: JDBCClient <sql-command>");
+ System.exit(-1);
+ }
+
+ System.out.println("Executing using the EmbeddedDriver");
+ execute(getDriverConnection(), args[0]);
+
+ System.out.println("");
+ System.out.println("Executing using the EmbeddedDataSource");
+ // this is showing how to make a Data Source connection.
+ execute(getDataSourceConnection(), args[0]);
+ }
+
+ static Connection getDriverConnection() throws Exception {
+ String url = "jdbc:metamatrix:Portfolio";
+ Class.forName("com.metamatrix.jdbc.EmbeddedDriver");
+
+ return DriverManager.getConnection(url);
+ }
+
+ static Connection getDataSourceConnection() throws Exception {
+ EmbeddedDataSource ds = new EmbeddedDataSource();
+ ds.setDatabaseName("Portfolio");
+ 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-embedded/examples/portfolio/java/JDBCClient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/kit-embedded/examples/portfolio/java/jdbcclient.jar
===================================================================
(Binary files differ)
Property changes on: trunk/build/kit-embedded/examples/portfolio/java/jdbcclient.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/build/kit-embedded/examples/portfolio/java/readme.txt
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/java/readme.txt (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/java/readme.txt 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,7 @@
+jdbcclient.jar is the compiled form of the JDBCClient class. Put this jar file in the classpath and execute
+
+JDBCClient <sqlcommand>
+
+for example
+
+JDBCClient "select * from CustomerAccount"
\ No newline at end of file
Property changes on: trunk/build/kit-embedded/examples/portfolio/java/readme.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/build/kit-embedded/examples/portfolio/marketdata-def.txt
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/marketdata-def.txt 2008-11-24 22:31:03 UTC (rev 37)
+++ trunk/build/kit-embedded/examples/portfolio/marketdata-def.txt 2008-11-24 22:49:09 UTC (rev 38)
@@ -1,4 +1,4 @@
-MarketData.Price.location = /federate-embedded/examples/portfolio/marketdata-price.txt
+MarketData.Price.location = marketdata-price.txt
MarketData.Price.delimiter = ,
MarketData.Price.headerLine = 1
MarketData.Price.skipHeaderLines = 1
Added: trunk/build/kit-embedded/examples/portfolio/run.bat
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/run.bat (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/run.bat 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,8 @@
+rem First one sets the path for client jars and VDB
+set CLIENT_PATH=java/*;PortfolioModel/
+
+rem Second one for the JARs in federate embedded
+set FEDERATE_PATH=../../federate-0.0.1-SNAPSHOT-embedded.jar;../../lib/*
+
+java -cp %CLIENT_PATH%;%FEDERATE_PATH% JDBCClient "select * from CustomerAccount"
+
Added: trunk/build/kit-embedded/examples/portfolio/run.sh
===================================================================
--- trunk/build/kit-embedded/examples/portfolio/run.sh (rev 0)
+++ trunk/build/kit-embedded/examples/portfolio/run.sh 2008-11-24 22:49:09 UTC (rev 38)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# First one sets the path for client jars and VDB
+CLIENT_PATH=java/*:PortfolioModel/
+
+#Second one for the JARs in federate embedded
+FEDERATE_PATH=../../federate-0.0.1-SNAPSHOT-embedded.jar:../../lib/*
+
+java -cp ${CLIENT_PATH}:${FEDERATE_PATH} JDBCClient "select * from CustomerAccount"
Property changes on: trunk/build/kit-embedded/examples/portfolio/run.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/federate-embedded/src/main/resources/mm.properties
===================================================================
--- trunk/federate-embedded/src/main/resources/mm.properties 2008-11-24 22:31:03 UTC (rev 37)
+++ trunk/federate-embedded/src/main/resources/mm.properties 2008-11-24 22:49:09 UTC (rev 38)
@@ -1,5 +1,6 @@
#default properties file for Federate Embedded
-mm.io.tmpdir=${user.dir}/federate/temp
-dqp.extensions=${user.dir}/federate/extensions
-dqp.logFile=mmfile://${user.dir}/federate/federate-embedded.log
-dqp.logLevel=2
\ No newline at end of file
+mm.io.tmpdir=${user.dir}/federate-workspace/temp
+dqp.extensions=mmfile://${user.dir}/federate-workspace/extensions
+dqp.logFile=mmfile://${user.dir}/federate-workspace/federate-embedded.log
+dqp.logLevel=2
+metamatrix.xatxnmgr.txnstore_dir=${user.dir}/federate-workspace
\ No newline at end of file
More information about the federate-commits
mailing list