org.apache.geronimo.samples.daytrader.web
Class TradeBuildDB
java.lang.Object
org.apache.geronimo.samples.daytrader.web.TradeBuildDB
public class TradeBuildDB
- extends Object
TradeBuildDB uses operations provided by the TradeApplication to (a) create the Database tables
(b)populate a DayTrader database without creating the tables. Specifically, a
new DayTrader 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,
String warPath)
Re-create the DayTrader db tables and populate them OR just populate a DayTrader DB, logging to the provided output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TradeBuildDB
public TradeBuildDB()
throws Exception
- Populate a Trade DB using standard out as a log
- Throws:
Exception
TradeBuildDB
public TradeBuildDB(PrintWriter out,
String warPath)
throws Exception
- Re-create the DayTrader db tables and populate them OR just populate a DayTrader DB, logging to the provided output stream
- Throws:
Exception
parseDDLToBuffer
public Object[] parseDDLToBuffer(File ddlFile)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.