Java tutorial
/* * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.amqp.rabbit.stocks.domain; import java.math.BigDecimal; import java.util.UUID; /** * Simple trade request 'data' object. No functionality in this 'domain' class. * @author Mark Pollack * */ public class TradeRequest { private String ticker; private long quantity; private BigDecimal price; private String orderType; private String accountName; private boolean buyRequest; private String userName; private String requestId; private String id = UUID.randomUUID().toString(); public String getTicker() { return ticker; } public void setTicker(String ticker) { this.ticker = ticker; } public long getQuantity() { return quantity; } public void setQuantity(long quantity) { this.quantity = quantity; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } public String getOrderType() { return orderType; } public void setOrderType(String orderType) { this.orderType = orderType; } public String getAccountName() { return accountName; } public void setAccountName(String accountName) { this.accountName = accountName; } public boolean isBuyRequest() { return buyRequest; } public void setBuyRequest(boolean buyRequest) { this.buyRequest = buyRequest; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getRequestId() { return requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getId() { return id; } public void setId(String id) { this.id = id; } }