org.apache.geronimo.samples.daytrader.web
Class TradeBuildDB
java.lang.Object
org.apache.geronimo.samples.daytrader.web.TradeBuildDB
- public class TradeBuildDB
- extends java.lang.Object
TradeBuildDB uses operations provided by the TradeApplication to initially populate a Trade
database. Specifically, a new Trade 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(java.io.PrintWriter out)
Populate a Trade DB, logging to the provided output stream |
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TradeBuildDB
public TradeBuildDB()
throws java.lang.Exception
- Populate a Trade DB using standard out as a log
TradeBuildDB
public TradeBuildDB(java.io.PrintWriter out)
throws java.lang.Exception
- Populate a Trade DB, logging to the provided output stream
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.