1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.model;
16  
17  import com.liferay.portal.kernel.annotation.AutoEscape;
18  import com.liferay.portal.model.BaseModel;
19  import com.liferay.portal.service.ServiceContext;
20  
21  import com.liferay.portlet.expando.model.ExpandoBridge;
22  
23  import java.io.Serializable;
24  
25  import java.util.Date;
26  
27  /**
28   * <a href="ShoppingOrderItemModel.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This interface is a model that represents the ShoppingOrderItem table in the
37   * database.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       ShoppingOrderItem
42   * @see       com.liferay.portlet.shopping.model.impl.ShoppingOrderItemImpl
43   * @see       com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl
44   * @generated
45   */
46  public interface ShoppingOrderItemModel extends BaseModel<ShoppingOrderItem> {
47      public long getPrimaryKey();
48  
49      public void setPrimaryKey(long pk);
50  
51      public long getOrderItemId();
52  
53      public void setOrderItemId(long orderItemId);
54  
55      public long getOrderId();
56  
57      public void setOrderId(long orderId);
58  
59      @AutoEscape
60      public String getItemId();
61  
62      public void setItemId(String itemId);
63  
64      @AutoEscape
65      public String getSku();
66  
67      public void setSku(String sku);
68  
69      @AutoEscape
70      public String getName();
71  
72      public void setName(String name);
73  
74      @AutoEscape
75      public String getDescription();
76  
77      public void setDescription(String description);
78  
79      @AutoEscape
80      public String getProperties();
81  
82      public void setProperties(String properties);
83  
84      public double getPrice();
85  
86      public void setPrice(double price);
87  
88      public int getQuantity();
89  
90      public void setQuantity(int quantity);
91  
92      public Date getShippedDate();
93  
94      public void setShippedDate(Date shippedDate);
95  
96      public ShoppingOrderItem toEscapedModel();
97  
98      public boolean isNew();
99  
100     public boolean setNew(boolean n);
101 
102     public boolean isCachedModel();
103 
104     public void setCachedModel(boolean cachedModel);
105 
106     public boolean isEscapedModel();
107 
108     public void setEscapedModel(boolean escapedModel);
109 
110     public Serializable getPrimaryKeyObj();
111 
112     public ExpandoBridge getExpandoBridge();
113 
114     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
115 
116     public Object clone();
117 
118     public int compareTo(ShoppingOrderItem shoppingOrderItem);
119 
120     public int hashCode();
121 
122     public String toString();
123 
124     public String toXmlString();
125 }