--- /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.chat.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link ChatActive}.
+ * </p>
+ *
+ * @author Amblard Mathieu
+ * @see ChatActive
+ * @generated
+ */
+public class ChatActiveWrapper implements ChatActive, ModelWrapper<ChatActive> {
+ public ChatActiveWrapper(ChatActive chatActive) {
+ _chatActive = chatActive;
+ }
+
+ public Class<?> getModelClass() {
+ return ChatActive.class;
+ }
+
+ public String getModelClassName() {
+ return ChatActive.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("chatActiveId", getChatActiveId());
+ attributes.put("organizationId", getOrganizationId());
+ attributes.put("active", getActive());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long chatActiveId = (Long)attributes.get("chatActiveId");
+
+ if (chatActiveId != null) {
+ setChatActiveId(chatActiveId);
+ }
+
+ Long organizationId = (Long)attributes.get("organizationId");
+
+ if (organizationId != null) {
+ setOrganizationId(organizationId);
+ }
+
+ Boolean active = (Boolean)attributes.get("active");
+
+ if (active != null) {
+ setActive(active);
+ }
+ }
+
+ /**
+ * Returns the primary key of this chat active.
+ *
+ * @return the primary key of this chat active
+ */
+ public long getPrimaryKey() {
+ return _chatActive.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this chat active.
+ *
+ * @param primaryKey the primary key of this chat active
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _chatActive.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the chat active ID of this chat active.
+ *
+ * @return the chat active ID of this chat active
+ */
+ public long getChatActiveId() {
+ return _chatActive.getChatActiveId();
+ }
+
+ /**
+ * Sets the chat active ID of this chat active.
+ *
+ * @param chatActiveId the chat active ID of this chat active
+ */
+ public void setChatActiveId(long chatActiveId) {
+ _chatActive.setChatActiveId(chatActiveId);
+ }
+
+ /**
+ * Returns the organization ID of this chat active.
+ *
+ * @return the organization ID of this chat active
+ */
+ public long getOrganizationId() {
+ return _chatActive.getOrganizationId();
+ }
+
+ /**
+ * Sets the organization ID of this chat active.
+ *
+ * @param organizationId the organization ID of this chat active
+ */
+ public void setOrganizationId(long organizationId) {
+ _chatActive.setOrganizationId(organizationId);
+ }
+
+ /**
+ * Returns the active of this chat active.
+ *
+ * @return the active of this chat active
+ */
+ public boolean getActive() {
+ return _chatActive.getActive();
+ }
+
+ /**
+ * Returns <code>true</code> if this chat active is active.
+ *
+ * @return <code>true</code> if this chat active is active; <code>false</code> otherwise
+ */
+ public boolean isActive() {
+ return _chatActive.isActive();
+ }
+
+ /**
+ * Sets whether this chat active is active.
+ *
+ * @param active the active of this chat active
+ */
+ public void setActive(boolean active) {
+ _chatActive.setActive(active);
+ }
+
+ public boolean isNew() {
+ return _chatActive.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _chatActive.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _chatActive.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _chatActive.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _chatActive.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _chatActive.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _chatActive.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _chatActive.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _chatActive.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new ChatActiveWrapper((ChatActive)_chatActive.clone());
+ }
+
+ public int compareTo(com.pentila.entSavoie.chat.model.ChatActive chatActive) {
+ return _chatActive.compareTo(chatActive);
+ }
+
+ @Override
+ public int hashCode() {
+ return _chatActive.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.chat.model.ChatActive> toCacheModel() {
+ return _chatActive.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.chat.model.ChatActive toEscapedModel() {
+ return new ChatActiveWrapper(_chatActive.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _chatActive.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _chatActive.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _chatActive.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public ChatActive getWrappedChatActive() {
+ return _chatActive;
+ }
+
+ public ChatActive getWrappedModel() {
+ return _chatActive;
+ }
+
+ public void resetOriginalValues() {
+ _chatActive.resetOriginalValues();
+ }
+
+ private ChatActive _chatActive;
+}
\ No newline at end of file