248249250251252253254255
getCustomerSession().removeCustomer( pCustomerId ); } catch( Exception e ) { sessionCtx.setRollbackOnly(); e.printStackTrace(); throw new BankException( "Could not remove account", e ); } }
264265266267268269270271
CustomerSession lSession = getCustomerSession(); return lSession.getCustomer( pCustomerId ); } catch( Exception e ) { e.printStackTrace(); throw new BankException( "Could not get customer for " + pCustomerId, e ); } }
279280281282283284285286
try { return getCustomerSession().getCustomers( pBankId ); } catch( Exception e ) { e.printStackTrace(); throw new BankException( "Could not get customers for bank " + pBankId, e ); } }