Examples of Contract


Examples of at.compax.bbsng.dataimport.app.model.Contract

    counter = this.numberOfDatas;
    return null;
  }

  public Contract getNewTransientContract(final int index) {
    final Contract obj = new Contract();
    setId(obj, index);
    setApprentice(obj, index);
    setCompanyOccupationCombination(obj, index);
    setEducationRange(obj);
    setOffice(obj, index);
View Full Code Here

Examples of beans.contract.entity.Contract

    Field[] f2 = new Field[]{new Field("client.id", dst.getId()), new Field("trash", trash)};
        List<Polis> polisL1 = findEntityList(Polis.class, f2);

        ArrayList<AuditDetails> target = new ArrayList<AuditDetails>();
        for (Polis polis2 : polisL2) {
            Contract contract = polis2.getContract();
            System.out.println("      CONTRACT id=" + contract.getId() + "  №" + contract.getIndex());
            Polis polis1 = null;
            for (int i = 0; i < polisL1.size(); i++) {
                if (polisL1.get(i).getContract().getId() == contract.getId()) {
                    polis1 = polisL1.get(i);
                    break;
                }
            }
            if (polis1 == null) {
View Full Code Here

Examples of ch.aonyx.broker.ib.api.contract.Contract

        super(inputStream, serverCurrentVersion);
    }

    @Override
    protected PortfolioUpdateEvent consumeVersionLess(final InputStream inputStream) {
        final Contract contract = consumeContract(inputStream);
        final int position = readInt(inputStream);
        final double marketPrice = readDouble(inputStream);
        final double marketValue = readDouble(inputStream);
        double averageCost = 0;
        double unrealizedProfitAndLoss = 0;
        double realizedProfitAndLoss = 0;
        if (getVersion() >= 3) {
            averageCost = readDouble(inputStream);
            unrealizedProfitAndLoss = readDouble(inputStream);
            realizedProfitAndLoss = readDouble(inputStream);
        }
        String accountName = null;
        if (getVersion() >= 4) {
            accountName = readString(inputStream);
        }
        if ((getVersion() == 6) && (getServerCurrentVersion() == 39)) {
            contract.setPrimaryExchange(readString(inputStream));
        }
        return createEvent(contract, position, marketPrice, marketValue, averageCost, unrealizedProfitAndLoss,
                realizedProfitAndLoss, accountName);
    }
View Full Code Here

Examples of com.ib.client.Contract

  @Override
  public void historicalData(int requestId, String formattedDate, double openPrice, double highPrice,
      double lowPrice, double closePrice, int volume, int tradeCount, double weightedAverage,
      boolean hasGaps) {
    Contract c = null;
   
    synchronized (requestIdContractMap) {
      c = requestIdContractMap.get(requestId);
    }
   
View Full Code Here

Examples of com.moneychanger.core.Contract

            return;
        }

        int userSelection = JOptionPane.showConfirmDialog(this, "Are you sure you want to delete Asset Contract", "Asset Contract Deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        System.out.println("userSelection:" + userSelection);
        Contract contract = new Contract();
        if (userSelection == 0) {
            boolean status = contract.deleteAssetContract((String) jTable_AssetList.getModel().getValueAt(jTable_AssetList.getSelectedRow(), 1));
            if (status) {
                JOptionPane.showMessageDialog(this, "Asset Contract deleted successfully", "Asset Contract Deletion", JOptionPane.INFORMATION_MESSAGE);
                refreshAssetContractList();
            } else {
                JOptionPane.showMessageDialog(this, "Asset Contract cannot be deleted", "Asset Contract Deletion", JOptionPane.ERROR_MESSAGE);
View Full Code Here

Examples of com.peusoft.ptcollect.core.persistance.domain.Contract

        super(CustomerContactPerson.class);
    }

    @Override
    public boolean isObjectInUse(CustomerContactPerson ccp) {
        Contract result = contractDao.findMaxOneObject("select * from Contract c where c.customerContact = ?1", ccp);
        return result != null;
    }
View Full Code Here

Examples of intrade.entities.Contract

      } else if (nd_name.equals("expiryPrice")) {
        contract_expiryPrice = nd.getTextContent();
      }
    }

    Contract con = new Contract(contract_id, eventid, contract_name, contract_symbol, contract_totalVolume,
        contract_ccy, contract_inRunning, contract_state, contract_tickSize, contract_tickValue, contract_type, start,
        end);

    if (contract_expiryDate != null) {
      con.setExpiryDate(Long.parseLong(contract_expiryDate));
    }

    if (contract_expiryPrice != null) {
      con.setExpiryPrice(Double.parseDouble(contract_expiryPrice));
    }

    return con;
  }
View Full Code Here

Examples of intrade.entities.Contract

  private long storeContracts(Node contract, String eventid, Long start, Long end) {

    long now = (new Date()).getTime();

    Contract con = parseContract(contract, eventid, start, end);

    PersistenceManager pm = PMF.get().getPersistenceManager();
    Contract stored_contract = null;

    try {
      stored_contract = pm.getObjectById(Contract.class, Contract.generateKeyFromID(con.getId()));
    } catch (Exception e) {
      stored_contract = null;
View Full Code Here

Examples of intrade.entities.Contract

      // lastFetchedCSV

    }

    PersistenceManager pm = PMF.get().getPersistenceManager();
    Contract stored_con = pm.getObjectById(Contract.class, Contract.generateKeyFromID(contractid));
    if (setArchive) {
      stored_con.setArchived(true);
    } else {
      stored_con.setArchived(false);
    }
    Long now = (new Date()).getTime();
    if (fetchedCSV) {
      stored_con.setLaststoredCSV(now);
    }
    if (setArchive) {
      print("Processed and archived contract:" + stored_con.toString());
    } else {
      print("Processed (but not archived) contract:" + stored_con.toString());
    }
    pm.close();

    return true;
  }
View Full Code Here

Examples of intrade.entities.Contract

    return true;
  }

  private Blob storeCSVfile(String id) {

    Contract c = null;

    PersistenceManager pm = PMF.get().getPersistenceManager();

    c = pm.getObjectById(Contract.class, Contract.generateKeyFromID(id));
    c.debug_setResponse(r);
    if (c.fetchCSV()) {
      print("Fetched CSV for contract " + id);
    }
    pm.close();

    return (c != null) ? c.getFileCSV() : null;

  }
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.