Examples of Account


Examples of Banking.Account

    if ((accountImpl = internal_findAccount(accountNumber)) != null) {
     
      try {
        // export
        AccountPOATie tie = new AccountPOATie(accountImpl);
        Account account = AccountHelper.narrow(this._poa().servant_to_reference(tie));
       
        return account;
       
      } catch (Exception e) {
        LOG.warn(e);
View Full Code Here

Examples of Common.Account

                     if(selRow != -1){
                         TreePath path = jTree1.getPathForRow(selRow);
                         TreeNode node = (TreeNode) path.getLastPathComponent();
                         node.toString(); //id da pessoa
                         Account aux;
                         aux=Check_Exists(node.toString());
                         if(aux!=null){
                            new Frame_Login(1,null,aux).setVisible(true);
                            this.dispose();
//                            jTextField1.setText("");
//                            SearchKeyPressed(null);
                         }

                         else{
                             JOptionPane.showMessageDialog(null, "Error choosing accounts");
                         }

                     }

                }

            }

        }
       else if(this.type.equalsIgnoreCase("Remove Account")){


            if(evt.getClickCount() == 2) {
                try {
                    eventInTree = true;
                }
                catch (Exception e) {
                    System.out.println("Exception occured:OutSide Tree Region");
                    eventInTree = false;
                }
                if (eventInTree){
                    int selRow = jTree1.getRowForLocation(evt.getX(), evt.getY());

                     if(selRow != -1){
                         TreePath path = jTree1.getPathForRow(selRow);
                         TreeNode node = (TreeNode) path.getLastPathComponent();
                         node.toString(); //id da pessoa
                         Account aux;
                         aux=Check_Exists(node.toString());
                         int aux2=JOptionPane.showConfirmDialog(null,"Are you sure you want to remove this account?");
                         if(aux!=null){
                             if(aux2==0){       //yes
                                this.setVisible(false);
View Full Code Here

Examples of Entities.Account

        tempItin.setTravelday(getTempTravelDay());

        appRef = appHandler.persistApplication(newApplication, newQuote, accQuotes, carQuotes, flightQuotes, tempItin, newTravel, profileRef);

        //ALEX CODE FOR ADVANCED APPROVAL SYSTEM
        Account accRef = accHandler.getAccount(accountID);
        Approval appr1 = new Approval();
        Approval appr2 = new Approval();
        Approval appr3 = new Approval();
        Approval appr4 = new Approval();
        Approval appr5 = new Approval();
View Full Code Here

Examples of Java.ORM.Account

                return;
            }
           
            Shoppingcart cart = DatabaseORM.getShoppingcart(em, curUser);
            if (cart == null) {
                Account account = DatabaseORM.findAccount(em, curUser);
                cart = new Shoppingcart(account);
            }
           
            try {
                if(photo != null && product != null && type != null) {
View Full Code Here

Examples of accounts.Account

    controller = new EditAccountController(accountManager);
  }

  @Test
  public void testGet() throws Exception {
    Account account = controller.setupForm(new Long(0));
    assertNotNull("Should have an account", account);
    assertEquals("Should be an entity with id of 0", Long.valueOf(0), account.getEntityId());
  }
View Full Code Here

Examples of accounts.model.Account

  @Autowired
  private AccountRepository accountRepository;

  @Test
  public void testFindByCreditCard() {
    Account account = accountRepository.findByCreditCard("1234123412341234");
    // assert the returned account contains what you expect given the state of the database
    // and the Account Hibernate mapping configuration
    assertNotNull("account should never be null", account);
    assertEquals("wrong entity id", Long.valueOf(0), account.getEntityId());
    assertEquals("wrong account number", "123456789", account.getNumber());
    assertEquals("wrong name", "Keith and Keri Donald", account.getName());
    assertEquals("wrong beneficiary collection size", 2, account.getBeneficiaries().size());

    Beneficiary b1 = account.getBeneficiary("Annabelle");
    assertNotNull("Annabelle should be a beneficiary", b1);
    assertEquals("wrong savings", MonetaryAmount.valueOf("0.00"), b1.getSavings());
    assertEquals("wrong allocation percentage", Percentage.valueOf("50%"), b1.getAllocationPercentage());

    Beneficiary b2 = account.getBeneficiary("Corgan");
    assertNotNull("Corgan should be a beneficiary", b2);
    assertEquals("wrong savings", MonetaryAmount.valueOf("0.00"), b2.getSavings());
    assertEquals("wrong allocation percentage", Percentage.valueOf("50%"), b2.getAllocationPercentage());
  }
View Full Code Here

Examples of aim.domain.security.Account

        policiesType.getTypeSeries().add(serie1);
        serie1.setPolicyType(policiesType);
        entityManager.persist(policiesType);

        final Passport agentId = new Passport("АВ", "468454");
        final Account agent = new Account(new Employee(agentId, "Иванов", "Иван"));
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        agent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(agent);
        entityManager.persist(agent);

        final long beginNumber = 1;
        final long endNumber = 5;
        final long policyCount = endNumber - beginNumber + 1;
        for (long i = beginNumber; i <= endNumber; i++) {
            final BlankPolicy blankPolicy = new BlankPolicy(new PolicyId(serie1, i));
            entityManager.persist(blankPolicy);
        }

        policyService.issuePolicyToAgent(serie1, beginNumber, endNumber, agent.getEmployee());
        //TODO assert
    }
View Full Code Here

Examples of bank.client.Account

        BankCORBAService ss = new BankCORBAService(wsdlUrl, SERVICE_NAME);
        Bank port = ss.getBankCORBAPort()
       

        System.out.print("Invoking createAccount for Mr. John... ");
        javax.xml.ws.Holder<Account> account = new javax.xml.ws.Holder<Account>(new Account());
        try {
            if (port.createAccount("John", account)) {
                System.out.println("success");
            } else {
                System.out.println("failure (Unknown)");
            }
        } catch (AccountAlreadyExistsException ex) {
            System.out.println("failure (" + ex.getMessage() + " : " + ex.getFaultInfo().getName() + ")");
        }

        Account bankAccount = account.value;
        if (bankAccount != null) {
            System.out.println("Created Account : " + bankAccount);
        }

        System.out.println("Getting Mr. John's account...");
View Full Code Here

Examples of bank.common.Account

        BankCORBAService ss = new BankCORBAService(wsdlUrl, SERVICE_NAME);
        Bank port = ss.getBankCORBAPort()
       

        System.out.print("Invoking createAccount for Mr. John... ");
        javax.xml.ws.Holder<Account> account = new javax.xml.ws.Holder<Account>(new Account());
        try {
            if (port.createAccount("John", account)) {
                System.out.println("success");
            } else {
                System.out.println("failure (Unknown)");
            }
        } catch (AccountAlreadyExistsException ex) {
            System.out.println("failure (" + ex.getMessage() + " : " + ex.getFaultInfo().getName() + ")");
        }

        Account bankAccount = account.value;
        if (bankAccount != null) {
            System.out.println("Created Account : "
                               + bankAccount.getName() + ": " + bankAccount.getBalance());
        }

        System.out.println("Getting Mr. John's account...");
        try {
            bankAccount = port.getAccount("John");
            if (bankAccount != null) {
                System.out.println("success");
                System.out.println(bankAccount.getName() + ": " + bankAccount.getBalance());
            } else {
                System.out.println("failure");
            }
        } catch (AccountNotFoundException ex) {
            System.out.println("failure (" + ex.getMessage() + " : " + ex.getFaultInfo().getName() + ")");
View Full Code Here

Examples of bank.server.Account

    public boolean createAccount(String name, javax.xml.ws.Holder<Account> account)
        throws AccountAlreadyExistsException {
        LOG.info("Executing operation createAccount");
        boolean result = false;
        if (accounts.get(name) == null) {
            account.value = new Account();
            account.value.setName(name);
            account.value.setBalance(100);
            accounts.put(name, account.value);
            result = true;
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.