525354555657585960
Category cat = new Category(); try { cat = _dbControl.getCategory(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return cat; }
646566676869707172
Item item = new Item(); try { item = _dbControl.getItem(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return item; }
767778798081828384
Item[] items; try { items = _dbControl.getItemListByProduct(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return items; }
8889909192939495
{ try { _dbControl.updateItemQuantity(item, quantity); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } }
99100101102103104105106107
Product prod = new Product(); try { prod = _dbControl.getProduct(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return prod; }
111112113114115116117118119
Product[] products; try { products = _dbControl.getProductListByCategory(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return products; }
123124125126127128129130131
Product[] products; try { products = _dbControl.searchProductList("%" + searchTerm + "%"); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return products; }
134135136137138139140141
{ try { _dbControl.initDB(initString); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } }
363738394041424344
Address[] addresses; try { addresses = _dbControl.getUserAddresses(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return addresses; }
484950515253545556
Address add = new Address(); try { add = _dbControl.getAddress(key); } catch (SQLException e) { _logger.error( "Unexpected DAO exception", e ); throw new DataStoreException("unexpected database exception"); } return add; }