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

com.liferay.portlet.social.model.SocialActivitySetWrapper 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: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 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.portlet.social.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

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

/**
 * 

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

* * @author Brian Wing Shun Chan * @see SocialActivitySet * @generated */ public class SocialActivitySetWrapper implements SocialActivitySet, ModelWrapper { public SocialActivitySetWrapper(SocialActivitySet socialActivitySet) { _socialActivitySet = socialActivitySet; } @Override public Class getModelClass() { return SocialActivitySet.class; } @Override public String getModelClassName() { return SocialActivitySet.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("activitySetId", getActivitySetId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("classNameId", getClassNameId()); attributes.put("classPK", getClassPK()); attributes.put("type", getType()); attributes.put("extraData", getExtraData()); attributes.put("activityCount", getActivityCount()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long activitySetId = (Long)attributes.get("activitySetId"); if (activitySetId != null) { setActivitySetId(activitySetId); } 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); } Long createDate = (Long)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Long modifiedDate = (Long)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } Long classNameId = (Long)attributes.get("classNameId"); if (classNameId != null) { setClassNameId(classNameId); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } Integer type = (Integer)attributes.get("type"); if (type != null) { setType(type); } String extraData = (String)attributes.get("extraData"); if (extraData != null) { setExtraData(extraData); } Integer activityCount = (Integer)attributes.get("activityCount"); if (activityCount != null) { setActivityCount(activityCount); } } /** * Returns the primary key of this social activity set. * * @return the primary key of this social activity set */ @Override public long getPrimaryKey() { return _socialActivitySet.getPrimaryKey(); } /** * Sets the primary key of this social activity set. * * @param primaryKey the primary key of this social activity set */ @Override public void setPrimaryKey(long primaryKey) { _socialActivitySet.setPrimaryKey(primaryKey); } /** * Returns the activity set ID of this social activity set. * * @return the activity set ID of this social activity set */ @Override public long getActivitySetId() { return _socialActivitySet.getActivitySetId(); } /** * Sets the activity set ID of this social activity set. * * @param activitySetId the activity set ID of this social activity set */ @Override public void setActivitySetId(long activitySetId) { _socialActivitySet.setActivitySetId(activitySetId); } /** * Returns the group ID of this social activity set. * * @return the group ID of this social activity set */ @Override public long getGroupId() { return _socialActivitySet.getGroupId(); } /** * Sets the group ID of this social activity set. * * @param groupId the group ID of this social activity set */ @Override public void setGroupId(long groupId) { _socialActivitySet.setGroupId(groupId); } /** * Returns the company ID of this social activity set. * * @return the company ID of this social activity set */ @Override public long getCompanyId() { return _socialActivitySet.getCompanyId(); } /** * Sets the company ID of this social activity set. * * @param companyId the company ID of this social activity set */ @Override public void setCompanyId(long companyId) { _socialActivitySet.setCompanyId(companyId); } /** * Returns the user ID of this social activity set. * * @return the user ID of this social activity set */ @Override public long getUserId() { return _socialActivitySet.getUserId(); } /** * Sets the user ID of this social activity set. * * @param userId the user ID of this social activity set */ @Override public void setUserId(long userId) { _socialActivitySet.setUserId(userId); } /** * Returns the user uuid of this social activity set. * * @return the user uuid of this social activity set * @throws SystemException if a system exception occurred */ @Override public java.lang.String getUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _socialActivitySet.getUserUuid(); } /** * Sets the user uuid of this social activity set. * * @param userUuid the user uuid of this social activity set */ @Override public void setUserUuid(java.lang.String userUuid) { _socialActivitySet.setUserUuid(userUuid); } /** * Returns the create date of this social activity set. * * @return the create date of this social activity set */ @Override public long getCreateDate() { return _socialActivitySet.getCreateDate(); } /** * Sets the create date of this social activity set. * * @param createDate the create date of this social activity set */ @Override public void setCreateDate(long createDate) { _socialActivitySet.setCreateDate(createDate); } /** * Returns the modified date of this social activity set. * * @return the modified date of this social activity set */ @Override public long getModifiedDate() { return _socialActivitySet.getModifiedDate(); } /** * Sets the modified date of this social activity set. * * @param modifiedDate the modified date of this social activity set */ @Override public void setModifiedDate(long modifiedDate) { _socialActivitySet.setModifiedDate(modifiedDate); } /** * Returns the fully qualified class name of this social activity set. * * @return the fully qualified class name of this social activity set */ @Override public java.lang.String getClassName() { return _socialActivitySet.getClassName(); } @Override public void setClassName(java.lang.String className) { _socialActivitySet.setClassName(className); } /** * Returns the class name ID of this social activity set. * * @return the class name ID of this social activity set */ @Override public long getClassNameId() { return _socialActivitySet.getClassNameId(); } /** * Sets the class name ID of this social activity set. * * @param classNameId the class name ID of this social activity set */ @Override public void setClassNameId(long classNameId) { _socialActivitySet.setClassNameId(classNameId); } /** * Returns the class p k of this social activity set. * * @return the class p k of this social activity set */ @Override public long getClassPK() { return _socialActivitySet.getClassPK(); } /** * Sets the class p k of this social activity set. * * @param classPK the class p k of this social activity set */ @Override public void setClassPK(long classPK) { _socialActivitySet.setClassPK(classPK); } /** * Returns the type of this social activity set. * * @return the type of this social activity set */ @Override public int getType() { return _socialActivitySet.getType(); } /** * Sets the type of this social activity set. * * @param type the type of this social activity set */ @Override public void setType(int type) { _socialActivitySet.setType(type); } /** * Returns the extra data of this social activity set. * * @return the extra data of this social activity set */ @Override public java.lang.String getExtraData() { return _socialActivitySet.getExtraData(); } /** * Sets the extra data of this social activity set. * * @param extraData the extra data of this social activity set */ @Override public void setExtraData(java.lang.String extraData) { _socialActivitySet.setExtraData(extraData); } /** * Returns the activity count of this social activity set. * * @return the activity count of this social activity set */ @Override public int getActivityCount() { return _socialActivitySet.getActivityCount(); } /** * Sets the activity count of this social activity set. * * @param activityCount the activity count of this social activity set */ @Override public void setActivityCount(int activityCount) { _socialActivitySet.setActivityCount(activityCount); } @Override public boolean isNew() { return _socialActivitySet.isNew(); } @Override public void setNew(boolean n) { _socialActivitySet.setNew(n); } @Override public boolean isCachedModel() { return _socialActivitySet.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _socialActivitySet.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _socialActivitySet.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _socialActivitySet.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _socialActivitySet.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _socialActivitySet.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _socialActivitySet.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _socialActivitySet.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _socialActivitySet.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new SocialActivitySetWrapper((SocialActivitySet)_socialActivitySet.clone()); } @Override public int compareTo( com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) { return _socialActivitySet.compareTo(socialActivitySet); } @Override public int hashCode() { return _socialActivitySet.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _socialActivitySet.toCacheModel(); } @Override public com.liferay.portlet.social.model.SocialActivitySet toEscapedModel() { return new SocialActivitySetWrapper(_socialActivitySet.toEscapedModel()); } @Override public com.liferay.portlet.social.model.SocialActivitySet toUnescapedModel() { return new SocialActivitySetWrapper(_socialActivitySet.toUnescapedModel()); } @Override public java.lang.String toString() { return _socialActivitySet.toString(); } @Override public java.lang.String toXmlString() { return _socialActivitySet.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _socialActivitySet.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SocialActivitySetWrapper)) { return false; } SocialActivitySetWrapper socialActivitySetWrapper = (SocialActivitySetWrapper)obj; if (Validator.equals(_socialActivitySet, socialActivitySetWrapper._socialActivitySet)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public SocialActivitySet getWrappedSocialActivitySet() { return _socialActivitySet; } @Override public SocialActivitySet getWrappedModel() { return _socialActivitySet; } @Override public void resetOriginalValues() { _socialActivitySet.resetOriginalValues(); } private SocialActivitySet _socialActivitySet; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy