org.apache.aries.samples.ariestrader.api
Interface TradeDBManager


public interface TradeDBManager

TradeDBManager interface centralizes and simplifies the DB configuration methods that are shared by some TradeServices implementations.


Method Summary
 String checkDBProductName()
          Return a String containing the DBProductName configured for the current DataSource used by TradeBuildDB
 boolean recreateDBTables(Object[] sqlBuffer, PrintWriter out)
          Recreate DataBase Tables for AriesTrader used by TradeBuildDB
 RunStatsDataBean resetTrade(boolean deleteAll)
          Reset the statistics for the Test AriesTrader Scenario used by TradeConfigServlet
 

Method Detail

checkDBProductName

String checkDBProductName()
                          throws Exception
Return a String containing the DBProductName configured for the current DataSource used by TradeBuildDB

Returns:
A String of the currently configured DataSource
Throws:
Exception

recreateDBTables

boolean recreateDBTables(Object[] sqlBuffer,
                         PrintWriter out)
                         throws Exception
Recreate DataBase Tables for AriesTrader used by TradeBuildDB

Returns:
boolean of success/failure in recreate of DB tables
Throws:
Exception

resetTrade

RunStatsDataBean resetTrade(boolean deleteAll)
                            throws Exception
Reset the statistics for the Test AriesTrader Scenario used by TradeConfigServlet

Returns:
the RunStatsDataBean
Throws:
Exception


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