/**
* 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 java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* <p>
* This class is a wrapper for {@link Subscription}.
* </p>
*
* @author Brian Wing Shun Chan
* @see Subscription
* @generated
*/
@ProviderType
public class SubscriptionWrapper implements Subscription,
ModelWrapper<Subscription> {
public SubscriptionWrapper(Subscription subscription) {
_subscription = subscription;
}
@Override
public Class<?> getModelClass() {
return Subscription.class;
}
@Override
public String getModelClassName() {
return Subscription.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("mvccVersion", getMvccVersion());
attributes.put("subscriptionId", getSubscriptionId());
attributes.put("groupId", getGroupId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("classNameId", getClassNameId());
attributes.put("classPK", getClassPK());
attributes.put("frequency", getFrequency());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");
if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}
Long subscriptionId = (Long)attributes.get("subscriptionId");
if (subscriptionId != null) {
setSubscriptionId(subscriptionId);
}
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);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)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);
}
String frequency = (String)attributes.get("frequency");
if (frequency != null) {
setFrequency(frequency);
}
}
@Override
public CacheModel<Subscription> toCacheModel() {
return _subscription.toCacheModel();
}
@Override
public Subscription toEscapedModel() {
return new SubscriptionWrapper(_subscription.toEscapedModel());
}
@Override
public Subscription toUnescapedModel() {
return new SubscriptionWrapper(_subscription.toUnescapedModel());
}
@Override
public boolean isCachedModel() {
return _subscription.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _subscription.isEscapedModel();
}
@Override
public boolean isNew() {
return _subscription.isNew();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _subscription.getExpandoBridge();
}
@Override
public int compareTo(Subscription subscription) {
return _subscription.compareTo(subscription);
}
@Override
public int hashCode() {
return _subscription.hashCode();
}
@Override
public Serializable getPrimaryKeyObj() {
return _subscription.getPrimaryKeyObj();
}
@Override
public java.lang.Object clone() {
return new SubscriptionWrapper((Subscription)_subscription.clone());
}
/**
* Returns the fully qualified class name of this subscription.
*
* @return the fully qualified class name of this subscription
*/
@Override
public java.lang.String getClassName() {
return _subscription.getClassName();
}
/**
* Returns the frequency of this subscription.
*
* @return the frequency of this subscription
*/
@Override
public java.lang.String getFrequency() {
return _subscription.getFrequency();
}
/**
* Returns the user name of this subscription.
*
* @return the user name of this subscription
*/
@Override
public java.lang.String getUserName() {
return _subscription.getUserName();
}
/**
* Returns the user uuid of this subscription.
*
* @return the user uuid of this subscription
*/
@Override
public java.lang.String getUserUuid() {
return _subscription.getUserUuid();
}
@Override
public java.lang.String toString() {
return _subscription.toString();
}
@Override
public java.lang.String toXmlString() {
return _subscription.toXmlString();
}
/**
* Returns the create date of this subscription.
*
* @return the create date of this subscription
*/
@Override
public Date getCreateDate() {
return _subscription.getCreateDate();
}
/**
* Returns the modified date of this subscription.
*
* @return the modified date of this subscription
*/
@Override
public Date getModifiedDate() {
return _subscription.getModifiedDate();
}
/**
* Returns the class name ID of this subscription.
*
* @return the class name ID of this subscription
*/
@Override
public long getClassNameId() {
return _subscription.getClassNameId();
}
/**
* Returns the class pk of this subscription.
*
* @return the class pk of this subscription
*/
@Override
public long getClassPK() {
return _subscription.getClassPK();
}
/**
* Returns the company ID of this subscription.
*
* @return the company ID of this subscription
*/
@Override
public long getCompanyId() {
return _subscription.getCompanyId();
}
/**
* Returns the group ID of this subscription.
*
* @return the group ID of this subscription
*/
@Override
public long getGroupId() {
return _subscription.getGroupId();
}
/**
* Returns the mvcc version of this subscription.
*
* @return the mvcc version of this subscription
*/
@Override
public long getMvccVersion() {
return _subscription.getMvccVersion();
}
/**
* Returns the primary key of this subscription.
*
* @return the primary key of this subscription
*/
@Override
public long getPrimaryKey() {
return _subscription.getPrimaryKey();
}
/**
* Returns the subscription ID of this subscription.
*
* @return the subscription ID of this subscription
*/
@Override
public long getSubscriptionId() {
return _subscription.getSubscriptionId();
}
/**
* Returns the user ID of this subscription.
*
* @return the user ID of this subscription
*/
@Override
public long getUserId() {
return _subscription.getUserId();
}
@Override
public void persist() {
_subscription.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_subscription.setCachedModel(cachedModel);
}
@Override
public void setClassName(java.lang.String className) {
_subscription.setClassName(className);
}
/**
* Sets the class name ID of this subscription.
*
* @param classNameId the class name ID of this subscription
*/
@Override
public void setClassNameId(long classNameId) {
_subscription.setClassNameId(classNameId);
}
/**
* Sets the class pk of this subscription.
*
* @param classPK the class pk of this subscription
*/
@Override
public void setClassPK(long classPK) {
_subscription.setClassPK(classPK);
}
/**
* Sets the company ID of this subscription.
*
* @param companyId the company ID of this subscription
*/
@Override
public void setCompanyId(long companyId) {
_subscription.setCompanyId(companyId);
}
/**
* Sets the create date of this subscription.
*
* @param createDate the create date of this subscription
*/
@Override
public void setCreateDate(Date createDate) {
_subscription.setCreateDate(createDate);
}
@Override
public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
_subscription.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_subscription.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_subscription.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the frequency of this subscription.
*
* @param frequency the frequency of this subscription
*/
@Override
public void setFrequency(java.lang.String frequency) {
_subscription.setFrequency(frequency);
}
/**
* Sets the group ID of this subscription.
*
* @param groupId the group ID of this subscription
*/
@Override
public void setGroupId(long groupId) {
_subscription.setGroupId(groupId);
}
/**
* Sets the modified date of this subscription.
*
* @param modifiedDate the modified date of this subscription
*/
@Override
public void setModifiedDate(Date modifiedDate) {
_subscription.setModifiedDate(modifiedDate);
}
/**
* Sets the mvcc version of this subscription.
*
* @param mvccVersion the mvcc version of this subscription
*/
@Override
public void setMvccVersion(long mvccVersion) {
_subscription.setMvccVersion(mvccVersion);
}
@Override
public void setNew(boolean n) {
_subscription.setNew(n);
}
/**
* Sets the primary key of this subscription.
*
* @param primaryKey the primary key of this subscription
*/
@Override
public void setPrimaryKey(long primaryKey) {
_subscription.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_subscription.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets the subscription ID of this subscription.
*
* @param subscriptionId the subscription ID of this subscription
*/
@Override
public void setSubscriptionId(long subscriptionId) {
_subscription.setSubscriptionId(subscriptionId);
}
/**
* Sets the user ID of this subscription.
*
* @param userId the user ID of this subscription
*/
@Override
public void setUserId(long userId) {
_subscription.setUserId(userId);
}
/**
* Sets the user name of this subscription.
*
* @param userName the user name of this subscription
*/
@Override
public void setUserName(java.lang.String userName) {
_subscription.setUserName(userName);
}
/**
* Sets the user uuid of this subscription.
*
* @param userUuid the user uuid of this subscription
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_subscription.setUserUuid(userUuid);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SubscriptionWrapper)) {
return false;
}
SubscriptionWrapper subscriptionWrapper = (SubscriptionWrapper)obj;
if (Objects.equals(_subscription, subscriptionWrapper._subscription)) {
return true;
}
return false;
}
@Override
public Subscription getWrappedModel() {
return _subscription;
}
@Override
public boolean isEntityCacheEnabled() {
return _subscription.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _subscription.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_subscription.resetOriginalValues();
}
private final Subscription _subscription;
}