Class Order


  • public class Order
    extends java.lang.Object
    Order - entity in COARSE GRAINED LOCK example
    Author:
    Karl Eilebrecht
    • Constructor Summary

      Constructors 
      Constructor Description
      Order​(java.lang.String id, java.lang.String customerId, java.lang.String orderData)
      Creates new order related to the specified customer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCustomerId()
      Returns the related customer id
      java.lang.String getId()
      Returns order id
      java.lang.String getOrderData()
      Returns the order detail data
      void setOrderData​(java.lang.String orderData)
      Sets the order detail data
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Order

        public Order​(java.lang.String id,
                     java.lang.String customerId,
                     java.lang.String orderData)
        Creates new order related to the specified customer
        Parameters:
        id - order identifier
        customerId - associated customer identifier
        orderData - data for this order
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns order id
        Returns:
        order id
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns the related customer id
        Returns:
        customerId
      • getOrderData

        public java.lang.String getOrderData()
        Returns the order detail data
        Returns:
        order data
      • setOrderData

        public void setOrderData​(java.lang.String orderData)
        Sets the order detail data
        Parameters:
        orderData - data for this order
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object