Package gluebooster.demos.finance.fields

Examples of gluebooster.demos.finance.fields.SecuritiesInformation


  public void simplePersistenceTest() throws Exception{
    //Unmarshaller u = JAXBContext.newInstance("demo").createUnmarshaller();
    //read the object
    //DemoObject item = (DemoObject) u.unmarshal(new File("\\tmp\\demo.xml"));
    //get JPA Helper to do Object->DB
    SecuritiesInformation info = new SecuritiesInformation();
    info.setAsset("test");
    info.setIsin("123445");
    //JAXBContext context = JAXBContext.newInstance(SecuritiesInformation.class);
   
   
   
    EntityManager em = Persistence.createEntityManagerFactory("test.gluebooster.demos.finance.data").createEntityManager();
View Full Code Here


    // subtransactions
    Double priceSum = 0.0;
    Double quantitySum = 0.0;
    Double currentValueSum = 0.0;
   
    SecuritiesInformation information = null;
    SecuritiesCurrentMarketPrice currentMarketPrice = null;


    for (SecuritiesTransaction transaction : subtransactions) {
     
View Full Code Here

       
        List<SecuritiesCurrentMarketPrice> priceList =  getAllSecuritiesCurrentMarketPrice();
        HashMap<String, SecuritiesCurrentMarketPrice> priceMap = new HashMap<String, SecuritiesCurrentMarketPrice>();
        for (SecuritiesCurrentMarketPrice price: priceList)
        {
           SecuritiesInformation info = isinInformationMap.get(price.getIsin());
           if (info != null)
              priceMap.put( info.getAsset(), price);
        }
       
       List<SecuritiesTransaction> transactions = getAllEntries(SecuritiesTransaction.class, "order by transactionDate");
      
         ArrayList<SummarizedTransaction<SecuritiesTransaction>> result = new ArrayList<SummarizedTransaction<SecuritiesTransaction>>(transactions.size());
View Full Code Here

TOP

Related Classes of gluebooster.demos.finance.fields.SecuritiesInformation

Copyright © 2018 www.massapicom. 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.