org.apache.aries.samples.ariestrader.web
Class TradeBuildDB

java.lang.Object
  extended by org.apache.aries.samples.ariestrader.web.TradeBuildDB

public class TradeBuildDB
extends Object

TradeBuildDB uses operations provided by the TradeApplication to (a) create the Database tables (b) populate a AriesTrader database without creating the tables. Specifically, a new AriesTrader User population is created using UserIDs of the form "uid:xxx" where xxx is a sequential number (e.g. uid:0, uid:1, etc.). New stocks are also created of the form "s:xxx", again where xxx represents sequential numbers (e.g. s:1, s:2, etc.)


Constructor Summary
TradeBuildDB()
          Populate a Trade DB using standard out as a log
TradeBuildDB(PrintWriter out, boolean createTables)
          Re-create the AriesTrader db tables and populate them OR just populate a AriesTrader DB, logging to the provided output stream
 
Method Summary
static void main(String[] args)
           
 Object[] parseDDLToBuffer(URL ddlFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradeBuildDB

public TradeBuildDB()
             throws Exception
Populate a Trade DB using standard out as a log

Throws:
Exception

TradeBuildDB

public TradeBuildDB(PrintWriter out,
                    boolean createTables)
             throws Exception
Re-create the AriesTrader db tables and populate them OR just populate a AriesTrader DB, logging to the provided output stream

Throws:
Exception
Method Detail

parseDDLToBuffer

public Object[] parseDDLToBuffer(URL ddlFile)
                          throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.