Examples of LimitOrderEntity


Examples of com.jboss.trading.ejb.persistence.LimitOrderEntity

        ObjectMessage objectMessage = (ObjectMessage) message;

        try {

            LimitOrderEntity limitOrderEntity = (LimitOrderEntity) objectMessage.getObject();

            entityManager.persist(limitOrderEntity);
        }
        catch (JMSException ex) {
View Full Code Here

Examples of com.jboss.trading.ejb.persistence.LimitOrderEntity

    Connection connection;
   
    @Override
    public void cancelLimitOrder(Integer limitOrderId) throws LimitOrderNotFoundException {

        LimitOrderEntity limitOrderEntity = entityManager.find(LimitOrderEntity.class, limitOrderId);

        if (limitOrderEntity != null) {

            entityManager.remove(limitOrderEntity);
        }
View Full Code Here

Examples of com.jboss.trading.ejb.persistence.LimitOrderEntity

    public void placeLimitOrder(Integer stockHolderId, TransactionType transactionType,
            Integer quantity, String stockSymbol, Float price) throws PlaceOrderException {

        Date opened = Calendar.getInstance().getTime();

        LimitOrderEntity limitOrderEntity = new LimitOrderEntity();

        limitOrderEntity.setStockHolderId(stockHolderId);
        limitOrderEntity.setStockSymbol(stockSymbol);

        limitOrderEntity.setOpened(opened);
        limitOrderEntity.setOrderStatus(OrderStatus.Open);
        limitOrderEntity.setPrice(price);
        limitOrderEntity.setQuantity(quantity);
        limitOrderEntity.setTransactionType(transactionType);

        try {

            submitLimitOrder(limitOrderEntity);
        }
View Full Code Here

Examples of com.jboss.trading.ejb.persistence.LimitOrderEntity

    }

    @Override
    public LimitOrder viewLimitOrder(Integer limitOrderId) throws LimitOrderNotFoundException {

        LimitOrderEntity limitOrderEntity = entityManager.find(LimitOrderEntity.class, limitOrderId);

        if (limitOrderEntity != null) {

            LimitOrder limitOrder = LimitOrderFactory.toLimitOrder(limitOrderEntity);
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.