Examples of Account


Examples of mjg.spring.entities.Account

    @Autowired
    private AccountDAO dao;

    @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
    public BigDecimal getAccountBalance(int id) {
        Account account = dao.findAccountById(id);
        return account.getBalance();
    }
View Full Code Here

Examples of models.Account

        params.flash();
        validation.keep();
            adminForm();
        }
        
      new Account(username, password, email, true, null);
     
      Bootstrap.index();
    }
View Full Code Here

Examples of models.demo.Account

    public static void assignment() {
        render();
    }

    public static void testToString() {
        Account account = new Account("green", "luo", "123456");
        render(account);
    }
View Full Code Here

Examples of name.abuchen.portfolio.model.Account

                        .addPrice("2012-01-03", 106 * Values.Quote.factor()) //
                        .addPrice("2012-01-08", 112 * Values.Quote.factor()) //
                        .assign(taxonomy, "one", weight) //
                        .addTo(client);

        Account account = new AccountBuilder() //
                        .deposit_("2011-12-31", 10000 * Values.Amount.factor()) //
                        .interest("2012-01-01", 230 * Values.Amount.factor()) //
                        .deposit_("2012-01-02", 200 * Values.Amount.factor()) //
                        .interest("2012-01-02", 200 * Values.Amount.factor()) //
                        .withdraw("2012-01-03", 400 * Values.Amount.factor()) //
View Full Code Here

Examples of net.bnubot.db.Account

      throw new CommandDoesNotExistException(command);

    //Reset the command to the case in the database
    command = rsCommand.getName();

    Account commanderAccount = Account.get(user);
    if(!superUser) {
      int commanderAccess = 0;
      if(commanderAccount != null)
        commanderAccess = commanderAccount.getAccess();

      int requiredAccess = rsCommand.getAccess();
      if(commanderAccess < requiredAccess)
        throw new InsufficientAccessException("(" + commanderAccess + "/" + requiredAccess + ")", commanderAccess > 0);
    }
View Full Code Here

Examples of net.jcip.examples.DynamicOrderDeadlock.Account

    public static void main(String[] args) {
        final Random rnd = new Random();
        final Account[] accounts = new Account[NUM_ACCOUNTS];

        for (int i = 0; i < accounts.length; i++)
            accounts[i] = new Account();

        class TransferThread extends Thread {
            public void run() {
                for (int i = 0; i < NUM_ITERATIONS; i++) {
                    int fromAcct = rnd.nextInt(NUM_ACCOUNTS);
View Full Code Here

Examples of net.mzalewski.goblin.moorhunt.mail.Account

    // mirrors count
    iPos = getHashPart(strHash, strPart, iPos);
    hci.accMirrors = new Account[new Integer(strPart[0])];
   
    for (int i = 0; i < hci.accMirrors.length; ++i) {
            hci.accMirrors[i] = new Account();
            iPos = getHashPart(strHash, strPart, iPos);
            hci.accMirrors[i].server = decodeServer((byte)strPart[0].charAt(0));
            iPos = getHashPart(strHash, strPart, iPos);
            hci.accMirrors[i].strUserName = strPart[0];
            iPos = getHashPart(strHash, strPart, iPos);
View Full Code Here

Examples of net.octal.supinbank.entity.Account

    public List<Account> getAccountsByCustomer(Person customer) {
        return accountDao.getAccountsByCustomer(customer);
    }
   
    public Account withDrawAccount(Long accountId, Double amount) {
        Account account = accountDao.findAccountById(accountId);
        if (account != null) {
            Preconditions.checkArgument(account.getTotalAmount() >= amount);
            account.setTotalAmount(account.getTotalAmount() - amount);
        }
       
        return account;
    }
View Full Code Here

Examples of net.sf.gluent.doc.fluentwebapp.rebelforum.Account

    accounts.add(account);
  }

  @Override
  public Account authenticate(String username, String password) {
    Account account = accountsByName.get(username);
    if (account == null) {
      return null;
    }
    if (!account.password().equals(password)) {
      return null;
    }
    return account;
  }
View Full Code Here

Examples of net.sourceforge.wampum.finance.entities.Account

            }
            resultSet.close();
            preparedStatement.close();
           
            TransSplit transSplit = null;
            Account account = null;
            for (int i=0; i<retVal.size(); i++) {
              transaction = (RegisterTrans)retVal.get(i);
                preparedStatement = conn.prepareStatement(LOAD_TRANSACTION);
                preparedStatement.setString(1, transaction.getTransactionID());
                resultSet = preparedStatement.executeQuery();
                while (resultSet.next()) {
                  transSplit = new TransSplit();
                  transSplit.setAmount(new Double(resultSet.getDouble("AMOUNT")));
                  account = new Account();
                  account.setTitle(resultSet.getString("TITLE"));
                  transSplit.setAccount(account);
                  transaction.appendTransSplit(transSplit);
                }
                resultSet.close();
                preparedStatement.close();
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.