1
22
23 package com.liferay.portlet.shopping.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.Date;
29 import java.util.List;
30
31
49 public class ShoppingCategorySoap implements Serializable {
50 public static ShoppingCategorySoap toSoapModel(ShoppingCategory model) {
51 ShoppingCategorySoap soapModel = new ShoppingCategorySoap();
52
53 soapModel.setCategoryId(model.getCategoryId());
54 soapModel.setGroupId(model.getGroupId());
55 soapModel.setCompanyId(model.getCompanyId());
56 soapModel.setUserId(model.getUserId());
57 soapModel.setUserName(model.getUserName());
58 soapModel.setCreateDate(model.getCreateDate());
59 soapModel.setModifiedDate(model.getModifiedDate());
60 soapModel.setParentCategoryId(model.getParentCategoryId());
61 soapModel.setName(model.getName());
62 soapModel.setDescription(model.getDescription());
63
64 return soapModel;
65 }
66
67 public static ShoppingCategorySoap[] toSoapModels(List models) {
68 List soapModels = new ArrayList(models.size());
69
70 for (int i = 0; i < models.size(); i++) {
71 ShoppingCategory model = (ShoppingCategory)models.get(i);
72
73 soapModels.add(toSoapModel(model));
74 }
75
76 return (ShoppingCategorySoap[])soapModels.toArray(new ShoppingCategorySoap[0]);
77 }
78
79 public ShoppingCategorySoap() {
80 }
81
82 public long getPrimaryKey() {
83 return _categoryId;
84 }
85
86 public void setPrimaryKey(long pk) {
87 setCategoryId(pk);
88 }
89
90 public long getCategoryId() {
91 return _categoryId;
92 }
93
94 public void setCategoryId(long categoryId) {
95 _categoryId = categoryId;
96 }
97
98 public long getGroupId() {
99 return _groupId;
100 }
101
102 public void setGroupId(long groupId) {
103 _groupId = groupId;
104 }
105
106 public long getCompanyId() {
107 return _companyId;
108 }
109
110 public void setCompanyId(long companyId) {
111 _companyId = companyId;
112 }
113
114 public long getUserId() {
115 return _userId;
116 }
117
118 public void setUserId(long userId) {
119 _userId = userId;
120 }
121
122 public String getUserName() {
123 return _userName;
124 }
125
126 public void setUserName(String userName) {
127 _userName = userName;
128 }
129
130 public Date getCreateDate() {
131 return _createDate;
132 }
133
134 public void setCreateDate(Date createDate) {
135 _createDate = createDate;
136 }
137
138 public Date getModifiedDate() {
139 return _modifiedDate;
140 }
141
142 public void setModifiedDate(Date modifiedDate) {
143 _modifiedDate = modifiedDate;
144 }
145
146 public long getParentCategoryId() {
147 return _parentCategoryId;
148 }
149
150 public void setParentCategoryId(long parentCategoryId) {
151 _parentCategoryId = parentCategoryId;
152 }
153
154 public String getName() {
155 return _name;
156 }
157
158 public void setName(String name) {
159 _name = name;
160 }
161
162 public String getDescription() {
163 return _description;
164 }
165
166 public void setDescription(String description) {
167 _description = description;
168 }
169
170 private long _categoryId;
171 private long _groupId;
172 private long _companyId;
173 private long _userId;
174 private String _userName;
175 private Date _createDate;
176 private Date _modifiedDate;
177 private long _parentCategoryId;
178 private String _name;
179 private String _description;
180 }