--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.internalMessaging.model.impl;
+
+import com.liferay.portal.kernel.util.StringBundler;
+import com.liferay.portal.kernel.util.StringPool;
+import com.liferay.portal.model.CacheModel;
+
+import com.pentila.entSavoie.internalMessaging.model.RssItem;
+
+import java.io.Serializable;
+
+import java.util.Date;
+
+/**
+ * The cache model class for representing RssItem in entity cache.
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see RssItem
+ * @generated
+ */
+public class RssItemCacheModel implements CacheModel<RssItem>, Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(25);
+
+ sb.append("{itemId=");
+ sb.append(itemId);
+ sb.append(", companyId=");
+ sb.append(companyId);
+ sb.append(", userId=");
+ sb.append(userId);
+ sb.append(", chanelId=");
+ sb.append(chanelId);
+ sb.append(", chanelTitle=");
+ sb.append(chanelTitle);
+ sb.append(", guid=");
+ sb.append(guid);
+ sb.append(", title=");
+ sb.append(title);
+ sb.append(", body=");
+ sb.append(body);
+ sb.append(", pubDate=");
+ sb.append(pubDate);
+ sb.append(", schemaType=");
+ sb.append(schemaType);
+ sb.append(", state=");
+ sb.append(state);
+ sb.append(", canBeDelete=");
+ sb.append(canBeDelete);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public RssItem toEntityModel() {
+ RssItemImpl rssItemImpl = new RssItemImpl();
+
+ rssItemImpl.setItemId(itemId);
+ rssItemImpl.setCompanyId(companyId);
+ rssItemImpl.setUserId(userId);
+ rssItemImpl.setChanelId(chanelId);
+
+ if (chanelTitle == null) {
+ rssItemImpl.setChanelTitle(StringPool.BLANK);
+ }
+ else {
+ rssItemImpl.setChanelTitle(chanelTitle);
+ }
+
+ rssItemImpl.setGuid(guid);
+
+ if (title == null) {
+ rssItemImpl.setTitle(StringPool.BLANK);
+ }
+ else {
+ rssItemImpl.setTitle(title);
+ }
+
+ if (body == null) {
+ rssItemImpl.setBody(StringPool.BLANK);
+ }
+ else {
+ rssItemImpl.setBody(body);
+ }
+
+ if (pubDate == Long.MIN_VALUE) {
+ rssItemImpl.setPubDate(null);
+ }
+ else {
+ rssItemImpl.setPubDate(new Date(pubDate));
+ }
+
+ if (schemaType == null) {
+ rssItemImpl.setSchemaType(StringPool.BLANK);
+ }
+ else {
+ rssItemImpl.setSchemaType(schemaType);
+ }
+
+ if (state == null) {
+ rssItemImpl.setState(StringPool.BLANK);
+ }
+ else {
+ rssItemImpl.setState(state);
+ }
+
+ rssItemImpl.setCanBeDelete(canBeDelete);
+
+ rssItemImpl.resetOriginalValues();
+
+ return rssItemImpl;
+ }
+
+ public long itemId;
+ public long companyId;
+ public long userId;
+ public long chanelId;
+ public String chanelTitle;
+ public int guid;
+ public String title;
+ public String body;
+ public long pubDate;
+ public String schemaType;
+ public String state;
+ public boolean canBeDelete;
+}
\ No newline at end of file