001
014
015 package com.liferay.portlet.shopping.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class ShoppingItemFieldWrapper implements ShoppingItemField,
032 ModelWrapper<ShoppingItemField> {
033 public ShoppingItemFieldWrapper(ShoppingItemField shoppingItemField) {
034 _shoppingItemField = shoppingItemField;
035 }
036
037 public Class<?> getModelClass() {
038 return ShoppingItemField.class;
039 }
040
041 public String getModelClassName() {
042 return ShoppingItemField.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("itemFieldId", getItemFieldId());
049 attributes.put("itemId", getItemId());
050 attributes.put("name", getName());
051 attributes.put("values", getValues());
052 attributes.put("description", getDescription());
053
054 return attributes;
055 }
056
057 public void setModelAttributes(Map<String, Object> attributes) {
058 Long itemFieldId = (Long)attributes.get("itemFieldId");
059
060 if (itemFieldId != null) {
061 setItemFieldId(itemFieldId);
062 }
063
064 Long itemId = (Long)attributes.get("itemId");
065
066 if (itemId != null) {
067 setItemId(itemId);
068 }
069
070 String name = (String)attributes.get("name");
071
072 if (name != null) {
073 setName(name);
074 }
075
076 String values = (String)attributes.get("values");
077
078 if (values != null) {
079 setValues(values);
080 }
081
082 String description = (String)attributes.get("description");
083
084 if (description != null) {
085 setDescription(description);
086 }
087 }
088
089
094 public long getPrimaryKey() {
095 return _shoppingItemField.getPrimaryKey();
096 }
097
098
103 public void setPrimaryKey(long primaryKey) {
104 _shoppingItemField.setPrimaryKey(primaryKey);
105 }
106
107
112 public long getItemFieldId() {
113 return _shoppingItemField.getItemFieldId();
114 }
115
116
121 public void setItemFieldId(long itemFieldId) {
122 _shoppingItemField.setItemFieldId(itemFieldId);
123 }
124
125
130 public long getItemId() {
131 return _shoppingItemField.getItemId();
132 }
133
134
139 public void setItemId(long itemId) {
140 _shoppingItemField.setItemId(itemId);
141 }
142
143
148 public java.lang.String getName() {
149 return _shoppingItemField.getName();
150 }
151
152
157 public void setName(java.lang.String name) {
158 _shoppingItemField.setName(name);
159 }
160
161
166 public java.lang.String getValues() {
167 return _shoppingItemField.getValues();
168 }
169
170
175 public void setValues(java.lang.String values) {
176 _shoppingItemField.setValues(values);
177 }
178
179
184 public java.lang.String getDescription() {
185 return _shoppingItemField.getDescription();
186 }
187
188
193 public void setDescription(java.lang.String description) {
194 _shoppingItemField.setDescription(description);
195 }
196
197 public boolean isNew() {
198 return _shoppingItemField.isNew();
199 }
200
201 public void setNew(boolean n) {
202 _shoppingItemField.setNew(n);
203 }
204
205 public boolean isCachedModel() {
206 return _shoppingItemField.isCachedModel();
207 }
208
209 public void setCachedModel(boolean cachedModel) {
210 _shoppingItemField.setCachedModel(cachedModel);
211 }
212
213 public boolean isEscapedModel() {
214 return _shoppingItemField.isEscapedModel();
215 }
216
217 public java.io.Serializable getPrimaryKeyObj() {
218 return _shoppingItemField.getPrimaryKeyObj();
219 }
220
221 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
222 _shoppingItemField.setPrimaryKeyObj(primaryKeyObj);
223 }
224
225 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
226 return _shoppingItemField.getExpandoBridge();
227 }
228
229 public void setExpandoBridgeAttributes(
230 com.liferay.portal.model.BaseModel<?> baseModel) {
231 _shoppingItemField.setExpandoBridgeAttributes(baseModel);
232 }
233
234 public void setExpandoBridgeAttributes(
235 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
236 _shoppingItemField.setExpandoBridgeAttributes(expandoBridge);
237 }
238
239 public void setExpandoBridgeAttributes(
240 com.liferay.portal.service.ServiceContext serviceContext) {
241 _shoppingItemField.setExpandoBridgeAttributes(serviceContext);
242 }
243
244 @Override
245 public java.lang.Object clone() {
246 return new ShoppingItemFieldWrapper((ShoppingItemField)_shoppingItemField.clone());
247 }
248
249 public int compareTo(
250 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
251 return _shoppingItemField.compareTo(shoppingItemField);
252 }
253
254 @Override
255 public int hashCode() {
256 return _shoppingItemField.hashCode();
257 }
258
259 public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingItemField> toCacheModel() {
260 return _shoppingItemField.toCacheModel();
261 }
262
263 public com.liferay.portlet.shopping.model.ShoppingItemField toEscapedModel() {
264 return new ShoppingItemFieldWrapper(_shoppingItemField.toEscapedModel());
265 }
266
267 public com.liferay.portlet.shopping.model.ShoppingItemField toUnescapedModel() {
268 return new ShoppingItemFieldWrapper(_shoppingItemField.toUnescapedModel());
269 }
270
271 @Override
272 public java.lang.String toString() {
273 return _shoppingItemField.toString();
274 }
275
276 public java.lang.String toXmlString() {
277 return _shoppingItemField.toXmlString();
278 }
279
280 public void persist()
281 throws com.liferay.portal.kernel.exception.SystemException {
282 _shoppingItemField.persist();
283 }
284
285 public java.lang.String[] getValuesArray() {
286 return _shoppingItemField.getValuesArray();
287 }
288
289 public void setValuesArray(java.lang.String[] valuesArray) {
290 _shoppingItemField.setValuesArray(valuesArray);
291 }
292
293
296 public ShoppingItemField getWrappedShoppingItemField() {
297 return _shoppingItemField;
298 }
299
300 public ShoppingItemField getWrappedModel() {
301 return _shoppingItemField;
302 }
303
304 public void resetOriginalValues() {
305 _shoppingItemField.resetOriginalValues();
306 }
307
308 private ShoppingItemField _shoppingItemField;
309 }