--- /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.RssChanel;
+
+import java.io.Serializable;
+
+import java.util.Date;
+
+/**
+ * The cache model class for representing RssChanel in entity cache.
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see RssChanel
+ * @generated
+ */
+public class RssChanelCacheModel implements CacheModel<RssChanel>, Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(23);
+
+ sb.append("{chanelId=");
+ sb.append(chanelId);
+ sb.append(", userId=");
+ sb.append(userId);
+ sb.append(", url=");
+ sb.append(url);
+ sb.append(", title=");
+ sb.append(title);
+ sb.append(", description=");
+ sb.append(description);
+ sb.append(", link=");
+ sb.append(link);
+ sb.append(", urlImage=");
+ sb.append(urlImage);
+ sb.append(", pubDate=");
+ sb.append(pubDate);
+ sb.append(", lastBuildDate=");
+ sb.append(lastBuildDate);
+ sb.append(", lastUpdateDate=");
+ sb.append(lastUpdateDate);
+ sb.append(", active=");
+ sb.append(active);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public RssChanel toEntityModel() {
+ RssChanelImpl rssChanelImpl = new RssChanelImpl();
+
+ rssChanelImpl.setChanelId(chanelId);
+ rssChanelImpl.setUserId(userId);
+
+ if (url == null) {
+ rssChanelImpl.setUrl(StringPool.BLANK);
+ }
+ else {
+ rssChanelImpl.setUrl(url);
+ }
+
+ if (title == null) {
+ rssChanelImpl.setTitle(StringPool.BLANK);
+ }
+ else {
+ rssChanelImpl.setTitle(title);
+ }
+
+ if (description == null) {
+ rssChanelImpl.setDescription(StringPool.BLANK);
+ }
+ else {
+ rssChanelImpl.setDescription(description);
+ }
+
+ if (link == null) {
+ rssChanelImpl.setLink(StringPool.BLANK);
+ }
+ else {
+ rssChanelImpl.setLink(link);
+ }
+
+ if (urlImage == null) {
+ rssChanelImpl.setUrlImage(StringPool.BLANK);
+ }
+ else {
+ rssChanelImpl.setUrlImage(urlImage);
+ }
+
+ if (pubDate == Long.MIN_VALUE) {
+ rssChanelImpl.setPubDate(null);
+ }
+ else {
+ rssChanelImpl.setPubDate(new Date(pubDate));
+ }
+
+ if (lastBuildDate == Long.MIN_VALUE) {
+ rssChanelImpl.setLastBuildDate(null);
+ }
+ else {
+ rssChanelImpl.setLastBuildDate(new Date(lastBuildDate));
+ }
+
+ if (lastUpdateDate == Long.MIN_VALUE) {
+ rssChanelImpl.setLastUpdateDate(null);
+ }
+ else {
+ rssChanelImpl.setLastUpdateDate(new Date(lastUpdateDate));
+ }
+
+ rssChanelImpl.setActive(active);
+
+ rssChanelImpl.resetOriginalValues();
+
+ return rssChanelImpl;
+ }
+
+ public long chanelId;
+ public long userId;
+ public String url;
+ public String title;
+ public String description;
+ public String link;
+ public String urlImage;
+ public long pubDate;
+ public long lastBuildDate;
+ public long lastUpdateDate;
+ public boolean active;
+}
\ No newline at end of file