public void logSellStock(int id, StockSummary stock, int quantity) throws RemoteException {
String symbol = ((stock.getSymbol() != null) ? stock.getSymbol() : "null");
DAS das = DAS.FACTORY.createDAS(getConnection());
Command insert = das.createCommand("insert into stockLog (id, Symbol, quantity, actionType, purchaseLotNumber) values (?,?,?,?,?)");
insert.setParameter(1, new Integer(id));
insert.setParameter(2, symbol);
insert.setParameter(3, new Integer(quantity));
insert.setParameter(4, STOCK_ACTION_TYPE_SELL);
insert.setParameter(5, new Integer(stock.getPurchaseLotNumber()));
insert.execute();
/*
* performLog("insert into stockLog (id, Symbol, quantity, actionType, purchaseLotNumber) values (" + id + ", '" + stock.getSymbol() + "', " +
* quantity + ", '" + STOCK_ACTION_TYPE_SELL + ", " + stock.getPurchaseLotNumber() + ")");
*/
}