/portal-service/src/com/liferay/portlet/announcements/model/AnnouncementsEntryWrapper.java

https://github.com/spreddy/liferay-portal · Java · 494 lines · 205 code · 66 blank · 223 comment · 0 complexity · 297473a24888d31c7f73d19a60f8dbcd MD5 · raw file

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