/portal-service/src/com/liferay/portlet/shopping/model/ShoppingCouponWrapper.java

https://github.com/kevincho/liferay-portal · Java · 515 lines · 214 code · 70 blank · 231 comment · 0 complexity · 5ecefa960ea5dcd6b6844040a716f3f8 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2012 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. package com.liferay.portlet.shopping.model;
  15. import com.liferay.portal.model.ModelWrapper;
  16. /**
  17. * <p>
  18. * This class is a wrapper for {@link ShoppingCoupon}.
  19. * </p>
  20. *
  21. * @author Brian Wing Shun Chan
  22. * @see ShoppingCoupon
  23. * @generated
  24. */
  25. public class ShoppingCouponWrapper implements ShoppingCoupon,
  26. ModelWrapper<ShoppingCoupon> {
  27. public ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon) {
  28. _shoppingCoupon = shoppingCoupon;
  29. }
  30. public Class<?> getModelClass() {
  31. return ShoppingCoupon.class;
  32. }
  33. public String getModelClassName() {
  34. return ShoppingCoupon.class.getName();
  35. }
  36. /**
  37. * Returns the primary key of this shopping coupon.
  38. *
  39. * @return the primary key of this shopping coupon
  40. */
  41. public long getPrimaryKey() {
  42. return _shoppingCoupon.getPrimaryKey();
  43. }
  44. /**
  45. * Sets the primary key of this shopping coupon.
  46. *
  47. * @param primaryKey the primary key of this shopping coupon
  48. */
  49. public void setPrimaryKey(long primaryKey) {
  50. _shoppingCoupon.setPrimaryKey(primaryKey);
  51. }
  52. /**
  53. * Returns the coupon ID of this shopping coupon.
  54. *
  55. * @return the coupon ID of this shopping coupon
  56. */
  57. public long getCouponId() {
  58. return _shoppingCoupon.getCouponId();
  59. }
  60. /**
  61. * Sets the coupon ID of this shopping coupon.
  62. *
  63. * @param couponId the coupon ID of this shopping coupon
  64. */
  65. public void setCouponId(long couponId) {
  66. _shoppingCoupon.setCouponId(couponId);
  67. }
  68. /**
  69. * Returns the group ID of this shopping coupon.
  70. *
  71. * @return the group ID of this shopping coupon
  72. */
  73. public long getGroupId() {
  74. return _shoppingCoupon.getGroupId();
  75. }
  76. /**
  77. * Sets the group ID of this shopping coupon.
  78. *
  79. * @param groupId the group ID of this shopping coupon
  80. */
  81. public void setGroupId(long groupId) {
  82. _shoppingCoupon.setGroupId(groupId);
  83. }
  84. /**
  85. * Returns the company ID of this shopping coupon.
  86. *
  87. * @return the company ID of this shopping coupon
  88. */
  89. public long getCompanyId() {
  90. return _shoppingCoupon.getCompanyId();
  91. }
  92. /**
  93. * Sets the company ID of this shopping coupon.
  94. *
  95. * @param companyId the company ID of this shopping coupon
  96. */
  97. public void setCompanyId(long companyId) {
  98. _shoppingCoupon.setCompanyId(companyId);
  99. }
  100. /**
  101. * Returns the user ID of this shopping coupon.
  102. *
  103. * @return the user ID of this shopping coupon
  104. */
  105. public long getUserId() {
  106. return _shoppingCoupon.getUserId();
  107. }
  108. /**
  109. * Sets the user ID of this shopping coupon.
  110. *
  111. * @param userId the user ID of this shopping coupon
  112. */
  113. public void setUserId(long userId) {
  114. _shoppingCoupon.setUserId(userId);
  115. }
  116. /**
  117. * Returns the user uuid of this shopping coupon.
  118. *
  119. * @return the user uuid of this shopping coupon
  120. * @throws SystemException if a system exception occurred
  121. */
  122. public java.lang.String getUserUuid()
  123. throws com.liferay.portal.kernel.exception.SystemException {
  124. return _shoppingCoupon.getUserUuid();
  125. }
  126. /**
  127. * Sets the user uuid of this shopping coupon.
  128. *
  129. * @param userUuid the user uuid of this shopping coupon
  130. */
  131. public void setUserUuid(java.lang.String userUuid) {
  132. _shoppingCoupon.setUserUuid(userUuid);
  133. }
  134. /**
  135. * Returns the user name of this shopping coupon.
  136. *
  137. * @return the user name of this shopping coupon
  138. */
  139. public java.lang.String getUserName() {
  140. return _shoppingCoupon.getUserName();
  141. }
  142. /**
  143. * Sets the user name of this shopping coupon.
  144. *
  145. * @param userName the user name of this shopping coupon
  146. */
  147. public void setUserName(java.lang.String userName) {
  148. _shoppingCoupon.setUserName(userName);
  149. }
  150. /**
  151. * Returns the create date of this shopping coupon.
  152. *
  153. * @return the create date of this shopping coupon
  154. */
  155. public java.util.Date getCreateDate() {
  156. return _shoppingCoupon.getCreateDate();
  157. }
  158. /**
  159. * Sets the create date of this shopping coupon.
  160. *
  161. * @param createDate the create date of this shopping coupon
  162. */
  163. public void setCreateDate(java.util.Date createDate) {
  164. _shoppingCoupon.setCreateDate(createDate);
  165. }
  166. /**
  167. * Returns the modified date of this shopping coupon.
  168. *
  169. * @return the modified date of this shopping coupon
  170. */
  171. public java.util.Date getModifiedDate() {
  172. return _shoppingCoupon.getModifiedDate();
  173. }
  174. /**
  175. * Sets the modified date of this shopping coupon.
  176. *
  177. * @param modifiedDate the modified date of this shopping coupon
  178. */
  179. public void setModifiedDate(java.util.Date modifiedDate) {
  180. _shoppingCoupon.setModifiedDate(modifiedDate);
  181. }
  182. /**
  183. * Returns the code of this shopping coupon.
  184. *
  185. * @return the code of this shopping coupon
  186. */
  187. public java.lang.String getCode() {
  188. return _shoppingCoupon.getCode();
  189. }
  190. /**
  191. * Sets the code of this shopping coupon.
  192. *
  193. * @param code the code of this shopping coupon
  194. */
  195. public void setCode(java.lang.String code) {
  196. _shoppingCoupon.setCode(code);
  197. }
  198. /**
  199. * Returns the name of this shopping coupon.
  200. *
  201. * @return the name of this shopping coupon
  202. */
  203. public java.lang.String getName() {
  204. return _shoppingCoupon.getName();
  205. }
  206. /**
  207. * Sets the name of this shopping coupon.
  208. *
  209. * @param name the name of this shopping coupon
  210. */
  211. public void setName(java.lang.String name) {
  212. _shoppingCoupon.setName(name);
  213. }
  214. /**
  215. * Returns the description of this shopping coupon.
  216. *
  217. * @return the description of this shopping coupon
  218. */
  219. public java.lang.String getDescription() {
  220. return _shoppingCoupon.getDescription();
  221. }
  222. /**
  223. * Sets the description of this shopping coupon.
  224. *
  225. * @param description the description of this shopping coupon
  226. */
  227. public void setDescription(java.lang.String description) {
  228. _shoppingCoupon.setDescription(description);
  229. }
  230. /**
  231. * Returns the start date of this shopping coupon.
  232. *
  233. * @return the start date of this shopping coupon
  234. */
  235. public java.util.Date getStartDate() {
  236. return _shoppingCoupon.getStartDate();
  237. }
  238. /**
  239. * Sets the start date of this shopping coupon.
  240. *
  241. * @param startDate the start date of this shopping coupon
  242. */
  243. public void setStartDate(java.util.Date startDate) {
  244. _shoppingCoupon.setStartDate(startDate);
  245. }
  246. /**
  247. * Returns the end date of this shopping coupon.
  248. *
  249. * @return the end date of this shopping coupon
  250. */
  251. public java.util.Date getEndDate() {
  252. return _shoppingCoupon.getEndDate();
  253. }
  254. /**
  255. * Sets the end date of this shopping coupon.
  256. *
  257. * @param endDate the end date of this shopping coupon
  258. */
  259. public void setEndDate(java.util.Date endDate) {
  260. _shoppingCoupon.setEndDate(endDate);
  261. }
  262. /**
  263. * Returns the active of this shopping coupon.
  264. *
  265. * @return the active of this shopping coupon
  266. */
  267. public boolean getActive() {
  268. return _shoppingCoupon.getActive();
  269. }
  270. /**
  271. * Returns <code>true</code> if this shopping coupon is active.
  272. *
  273. * @return <code>true</code> if this shopping coupon is active; <code>false</code> otherwise
  274. */
  275. public boolean isActive() {
  276. return _shoppingCoupon.isActive();
  277. }
  278. /**
  279. * Sets whether this shopping coupon is active.
  280. *
  281. * @param active the active of this shopping coupon
  282. */
  283. public void setActive(boolean active) {
  284. _shoppingCoupon.setActive(active);
  285. }
  286. /**
  287. * Returns the limit categories of this shopping coupon.
  288. *
  289. * @return the limit categories of this shopping coupon
  290. */
  291. public java.lang.String getLimitCategories() {
  292. return _shoppingCoupon.getLimitCategories();
  293. }
  294. /**
  295. * Sets the limit categories of this shopping coupon.
  296. *
  297. * @param limitCategories the limit categories of this shopping coupon
  298. */
  299. public void setLimitCategories(java.lang.String limitCategories) {
  300. _shoppingCoupon.setLimitCategories(limitCategories);
  301. }
  302. /**
  303. * Returns the limit skus of this shopping coupon.
  304. *
  305. * @return the limit skus of this shopping coupon
  306. */
  307. public java.lang.String getLimitSkus() {
  308. return _shoppingCoupon.getLimitSkus();
  309. }
  310. /**
  311. * Sets the limit skus of this shopping coupon.
  312. *
  313. * @param limitSkus the limit skus of this shopping coupon
  314. */
  315. public void setLimitSkus(java.lang.String limitSkus) {
  316. _shoppingCoupon.setLimitSkus(limitSkus);
  317. }
  318. /**
  319. * Returns the min order of this shopping coupon.
  320. *
  321. * @return the min order of this shopping coupon
  322. */
  323. public double getMinOrder() {
  324. return _shoppingCoupon.getMinOrder();
  325. }
  326. /**
  327. * Sets the min order of this shopping coupon.
  328. *
  329. * @param minOrder the min order of this shopping coupon
  330. */
  331. public void setMinOrder(double minOrder) {
  332. _shoppingCoupon.setMinOrder(minOrder);
  333. }
  334. /**
  335. * Returns the discount of this shopping coupon.
  336. *
  337. * @return the discount of this shopping coupon
  338. */
  339. public double getDiscount() {
  340. return _shoppingCoupon.getDiscount();
  341. }
  342. /**
  343. * Sets the discount of this shopping coupon.
  344. *
  345. * @param discount the discount of this shopping coupon
  346. */
  347. public void setDiscount(double discount) {
  348. _shoppingCoupon.setDiscount(discount);
  349. }
  350. /**
  351. * Returns the discount type of this shopping coupon.
  352. *
  353. * @return the discount type of this shopping coupon
  354. */
  355. public java.lang.String getDiscountType() {
  356. return _shoppingCoupon.getDiscountType();
  357. }
  358. /**
  359. * Sets the discount type of this shopping coupon.
  360. *
  361. * @param discountType the discount type of this shopping coupon
  362. */
  363. public void setDiscountType(java.lang.String discountType) {
  364. _shoppingCoupon.setDiscountType(discountType);
  365. }
  366. public boolean isNew() {
  367. return _shoppingCoupon.isNew();
  368. }
  369. public void setNew(boolean n) {
  370. _shoppingCoupon.setNew(n);
  371. }
  372. public boolean isCachedModel() {
  373. return _shoppingCoupon.isCachedModel();
  374. }
  375. public void setCachedModel(boolean cachedModel) {
  376. _shoppingCoupon.setCachedModel(cachedModel);
  377. }
  378. public boolean isEscapedModel() {
  379. return _shoppingCoupon.isEscapedModel();
  380. }
  381. public java.io.Serializable getPrimaryKeyObj() {
  382. return _shoppingCoupon.getPrimaryKeyObj();
  383. }
  384. public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
  385. _shoppingCoupon.setPrimaryKeyObj(primaryKeyObj);
  386. }
  387. public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
  388. return _shoppingCoupon.getExpandoBridge();
  389. }
  390. public void setExpandoBridgeAttributes(
  391. com.liferay.portal.service.ServiceContext serviceContext) {
  392. _shoppingCoupon.setExpandoBridgeAttributes(serviceContext);
  393. }
  394. @Override
  395. public java.lang.Object clone() {
  396. return new ShoppingCouponWrapper((ShoppingCoupon)_shoppingCoupon.clone());
  397. }
  398. public int compareTo(
  399. com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
  400. return _shoppingCoupon.compareTo(shoppingCoupon);
  401. }
  402. @Override
  403. public int hashCode() {
  404. return _shoppingCoupon.hashCode();
  405. }
  406. public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCoupon> toCacheModel() {
  407. return _shoppingCoupon.toCacheModel();
  408. }
  409. public com.liferay.portlet.shopping.model.ShoppingCoupon toEscapedModel() {
  410. return new ShoppingCouponWrapper(_shoppingCoupon.toEscapedModel());
  411. }
  412. @Override
  413. public java.lang.String toString() {
  414. return _shoppingCoupon.toString();
  415. }
  416. public java.lang.String toXmlString() {
  417. return _shoppingCoupon.toXmlString();
  418. }
  419. public void persist()
  420. throws com.liferay.portal.kernel.exception.SystemException {
  421. _shoppingCoupon.persist();
  422. }
  423. public boolean hasValidDateRange() {
  424. return _shoppingCoupon.hasValidDateRange();
  425. }
  426. public boolean hasValidEndDate() {
  427. return _shoppingCoupon.hasValidEndDate();
  428. }
  429. public boolean hasValidStartDate() {
  430. return _shoppingCoupon.hasValidStartDate();
  431. }
  432. /**
  433. * @deprecated Renamed to {@link #getWrappedModel}
  434. */
  435. public ShoppingCoupon getWrappedShoppingCoupon() {
  436. return _shoppingCoupon;
  437. }
  438. public ShoppingCoupon getWrappedModel() {
  439. return _shoppingCoupon;
  440. }
  441. public void resetOriginalValues() {
  442. _shoppingCoupon.resetOriginalValues();
  443. }
  444. private ShoppingCoupon _shoppingCoupon;
  445. }