类 ItemOrder

java.lang.Object
top.expli.schoolfish.ItemOrder
所有已实现的接口:
Order

@Entity public class ItemOrder extends Object implements Order
常规物品的交易订单类.
  • 构造器详细资料

    • ItemOrder

      public ItemOrder(String sellerID, String buyerID, String itemID)
      Constructs an ItemOrder with the provided seller ID, buyer ID, item ID, and item snapshot.
      参数:
      sellerID - The seller's ID.
      buyerID - The buyer's ID.
      itemID - The ID of the item in the order. // * @param itemSnapshot The snapshot of the ordered item.
    • ItemOrder

      protected ItemOrder()
  • 方法详细资料

    • setOrderStatus

      public void setOrderStatus(int orderStatus)
      指定者:
      setOrderStatus 在接口中 Order
    • getSellerID

      public String getSellerID()
      Gets the seller's ID for this order.
      指定者:
      getSellerID 在接口中 Order
      返回:
      The seller's ID.
    • getOrderID

      public String getOrderID()
      获取字符串形式的订单号
      指定者:
      getOrderID 在接口中 Order
      返回:
      字符串形式的订单号,最后的 @ 之后的数字代表订单类型
    • getBuyerID

      public String getBuyerID()
      Gets the buyer's ID for this order.
      指定者:
      getBuyerID 在接口中 Order
      返回:
      The buyer's ID.
    • getItemID

      public String getItemID()
      Gets the item's ID for this order.
      指定者:
      getItemID 在接口中 Order
      返回:
      The item's ID.
    • getItemSnapshot

      public void getItemSnapshot()
      Gets the snapshot of the ordered item.
      指定者:
      getItemSnapshot 在接口中 Order
    • getOrderStat

      public int getOrderStat()
      Gets the order status for this item order.
      指定者:
      getOrderStat 在接口中 Order
      返回:
      The order status.