All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.model.MembershipRequestWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 156.0.0
Show newest version
/**
 * Copyright (c) 2000-present 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.liferay.portal.kernel.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;

import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;

import java.io.Serializable;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 

* This class is a wrapper for {@link MembershipRequest}. *

* * @author Brian Wing Shun Chan * @see MembershipRequest * @generated */ @ProviderType public class MembershipRequestWrapper implements MembershipRequest, ModelWrapper { public MembershipRequestWrapper(MembershipRequest membershipRequest) { _membershipRequest = membershipRequest; } @Override public Class getModelClass() { return MembershipRequest.class; } @Override public String getModelClassName() { return MembershipRequest.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("membershipRequestId", getMembershipRequestId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("createDate", getCreateDate()); attributes.put("comments", getComments()); attributes.put("replyComments", getReplyComments()); attributes.put("replyDate", getReplyDate()); attributes.put("replierUserId", getReplierUserId()); attributes.put("statusId", getStatusId()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long membershipRequestId = (Long)attributes.get("membershipRequestId"); if (membershipRequestId != null) { setMembershipRequestId(membershipRequestId); } Long groupId = (Long)attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long userId = (Long)attributes.get("userId"); if (userId != null) { setUserId(userId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } String comments = (String)attributes.get("comments"); if (comments != null) { setComments(comments); } String replyComments = (String)attributes.get("replyComments"); if (replyComments != null) { setReplyComments(replyComments); } Date replyDate = (Date)attributes.get("replyDate"); if (replyDate != null) { setReplyDate(replyDate); } Long replierUserId = (Long)attributes.get("replierUserId"); if (replierUserId != null) { setReplierUserId(replierUserId); } Long statusId = (Long)attributes.get("statusId"); if (statusId != null) { setStatusId(statusId); } } @Override public java.lang.Object clone() { return new MembershipRequestWrapper((MembershipRequest)_membershipRequest.clone()); } @Override public int compareTo( com.liferay.portal.kernel.model.MembershipRequest membershipRequest) { return _membershipRequest.compareTo(membershipRequest); } /** * Returns the comments of this membership request. * * @return the comments of this membership request */ @Override public java.lang.String getComments() { return _membershipRequest.getComments(); } /** * Returns the company ID of this membership request. * * @return the company ID of this membership request */ @Override public long getCompanyId() { return _membershipRequest.getCompanyId(); } /** * Returns the create date of this membership request. * * @return the create date of this membership request */ @Override public Date getCreateDate() { return _membershipRequest.getCreateDate(); } @Override public ExpandoBridge getExpandoBridge() { return _membershipRequest.getExpandoBridge(); } /** * Returns the group ID of this membership request. * * @return the group ID of this membership request */ @Override public long getGroupId() { return _membershipRequest.getGroupId(); } /** * Returns the membership request ID of this membership request. * * @return the membership request ID of this membership request */ @Override public long getMembershipRequestId() { return _membershipRequest.getMembershipRequestId(); } /** * Returns the mvcc version of this membership request. * * @return the mvcc version of this membership request */ @Override public long getMvccVersion() { return _membershipRequest.getMvccVersion(); } /** * Returns the primary key of this membership request. * * @return the primary key of this membership request */ @Override public long getPrimaryKey() { return _membershipRequest.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _membershipRequest.getPrimaryKeyObj(); } /** * Returns the replier user ID of this membership request. * * @return the replier user ID of this membership request */ @Override public long getReplierUserId() { return _membershipRequest.getReplierUserId(); } /** * Returns the replier user uuid of this membership request. * * @return the replier user uuid of this membership request */ @Override public java.lang.String getReplierUserUuid() { return _membershipRequest.getReplierUserUuid(); } /** * Returns the reply comments of this membership request. * * @return the reply comments of this membership request */ @Override public java.lang.String getReplyComments() { return _membershipRequest.getReplyComments(); } /** * Returns the reply date of this membership request. * * @return the reply date of this membership request */ @Override public Date getReplyDate() { return _membershipRequest.getReplyDate(); } /** * Returns the status ID of this membership request. * * @return the status ID of this membership request */ @Override public long getStatusId() { return _membershipRequest.getStatusId(); } /** * Returns the user ID of this membership request. * * @return the user ID of this membership request */ @Override public long getUserId() { return _membershipRequest.getUserId(); } /** * Returns the user uuid of this membership request. * * @return the user uuid of this membership request */ @Override public java.lang.String getUserUuid() { return _membershipRequest.getUserUuid(); } @Override public int hashCode() { return _membershipRequest.hashCode(); } @Override public boolean isCachedModel() { return _membershipRequest.isCachedModel(); } @Override public boolean isEscapedModel() { return _membershipRequest.isEscapedModel(); } @Override public boolean isNew() { return _membershipRequest.isNew(); } @Override public void persist() { _membershipRequest.persist(); } @Override public void setCachedModel(boolean cachedModel) { _membershipRequest.setCachedModel(cachedModel); } /** * Sets the comments of this membership request. * * @param comments the comments of this membership request */ @Override public void setComments(java.lang.String comments) { _membershipRequest.setComments(comments); } /** * Sets the company ID of this membership request. * * @param companyId the company ID of this membership request */ @Override public void setCompanyId(long companyId) { _membershipRequest.setCompanyId(companyId); } /** * Sets the create date of this membership request. * * @param createDate the create date of this membership request */ @Override public void setCreateDate(Date createDate) { _membershipRequest.setCreateDate(createDate); } @Override public void setExpandoBridgeAttributes(BaseModel baseModel) { _membershipRequest.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _membershipRequest.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _membershipRequest.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this membership request. * * @param groupId the group ID of this membership request */ @Override public void setGroupId(long groupId) { _membershipRequest.setGroupId(groupId); } /** * Sets the membership request ID of this membership request. * * @param membershipRequestId the membership request ID of this membership request */ @Override public void setMembershipRequestId(long membershipRequestId) { _membershipRequest.setMembershipRequestId(membershipRequestId); } /** * Sets the mvcc version of this membership request. * * @param mvccVersion the mvcc version of this membership request */ @Override public void setMvccVersion(long mvccVersion) { _membershipRequest.setMvccVersion(mvccVersion); } @Override public void setNew(boolean n) { _membershipRequest.setNew(n); } /** * Sets the primary key of this membership request. * * @param primaryKey the primary key of this membership request */ @Override public void setPrimaryKey(long primaryKey) { _membershipRequest.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _membershipRequest.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the replier user ID of this membership request. * * @param replierUserId the replier user ID of this membership request */ @Override public void setReplierUserId(long replierUserId) { _membershipRequest.setReplierUserId(replierUserId); } /** * Sets the replier user uuid of this membership request. * * @param replierUserUuid the replier user uuid of this membership request */ @Override public void setReplierUserUuid(java.lang.String replierUserUuid) { _membershipRequest.setReplierUserUuid(replierUserUuid); } /** * Sets the reply comments of this membership request. * * @param replyComments the reply comments of this membership request */ @Override public void setReplyComments(java.lang.String replyComments) { _membershipRequest.setReplyComments(replyComments); } /** * Sets the reply date of this membership request. * * @param replyDate the reply date of this membership request */ @Override public void setReplyDate(Date replyDate) { _membershipRequest.setReplyDate(replyDate); } /** * Sets the status ID of this membership request. * * @param statusId the status ID of this membership request */ @Override public void setStatusId(long statusId) { _membershipRequest.setStatusId(statusId); } /** * Sets the user ID of this membership request. * * @param userId the user ID of this membership request */ @Override public void setUserId(long userId) { _membershipRequest.setUserId(userId); } /** * Sets the user uuid of this membership request. * * @param userUuid the user uuid of this membership request */ @Override public void setUserUuid(java.lang.String userUuid) { _membershipRequest.setUserUuid(userUuid); } @Override public CacheModel toCacheModel() { return _membershipRequest.toCacheModel(); } @Override public com.liferay.portal.kernel.model.MembershipRequest toEscapedModel() { return new MembershipRequestWrapper(_membershipRequest.toEscapedModel()); } @Override public java.lang.String toString() { return _membershipRequest.toString(); } @Override public com.liferay.portal.kernel.model.MembershipRequest toUnescapedModel() { return new MembershipRequestWrapper(_membershipRequest.toUnescapedModel()); } @Override public java.lang.String toXmlString() { return _membershipRequest.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MembershipRequestWrapper)) { return false; } MembershipRequestWrapper membershipRequestWrapper = (MembershipRequestWrapper)obj; if (Validator.equals(_membershipRequest, membershipRequestWrapper._membershipRequest)) { return true; } return false; } @Override public MembershipRequest getWrappedModel() { return _membershipRequest; } @Override public boolean isEntityCacheEnabled() { return _membershipRequest.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _membershipRequest.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _membershipRequest.resetOriginalValues(); } private final MembershipRequest _membershipRequest; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy