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

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

There is a newer version: 7.4.3.112-ga112
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 java.io.Serializable;

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

/**
 * 

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

* * @author Brian Wing Shun Chan * @see LayoutBranch * @generated */ @ProviderType public class LayoutBranchWrapper implements LayoutBranch, ModelWrapper { public LayoutBranchWrapper(LayoutBranch layoutBranch) { _layoutBranch = layoutBranch; } @Override public Class getModelClass() { return LayoutBranch.class; } @Override public String getModelClassName() { return LayoutBranch.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("layoutBranchId", getLayoutBranchId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("layoutSetBranchId", getLayoutSetBranchId()); attributes.put("plid", getPlid()); attributes.put("name", getName()); attributes.put("description", getDescription()); attributes.put("master", isMaster()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long layoutBranchId = (Long)attributes.get("layoutBranchId"); if (layoutBranchId != null) { setLayoutBranchId(layoutBranchId); } 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); } Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId"); if (layoutSetBranchId != null) { setLayoutSetBranchId(layoutSetBranchId); } Long plid = (Long)attributes.get("plid"); if (plid != null) { setPlid(plid); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String description = (String)attributes.get("description"); if (description != null) { setDescription(description); } Boolean master = (Boolean)attributes.get("master"); if (master != null) { setMaster(master); } } @Override public Object clone() { return new LayoutBranchWrapper((LayoutBranch)_layoutBranch.clone()); } @Override public int compareTo(LayoutBranch layoutBranch) { return _layoutBranch.compareTo(layoutBranch); } /** * Returns the company ID of this layout branch. * * @return the company ID of this layout branch */ @Override public long getCompanyId() { return _layoutBranch.getCompanyId(); } /** * Returns the description of this layout branch. * * @return the description of this layout branch */ @Override public String getDescription() { return _layoutBranch.getDescription(); } @Override public ExpandoBridge getExpandoBridge() { return _layoutBranch.getExpandoBridge(); } /** * Returns the group ID of this layout branch. * * @return the group ID of this layout branch */ @Override public long getGroupId() { return _layoutBranch.getGroupId(); } /** * Returns the layout branch ID of this layout branch. * * @return the layout branch ID of this layout branch */ @Override public long getLayoutBranchId() { return _layoutBranch.getLayoutBranchId(); } /** * Returns the layout set branch ID of this layout branch. * * @return the layout set branch ID of this layout branch */ @Override public long getLayoutSetBranchId() { return _layoutBranch.getLayoutSetBranchId(); } /** * Returns the master of this layout branch. * * @return the master of this layout branch */ @Override public boolean getMaster() { return _layoutBranch.getMaster(); } /** * Returns the mvcc version of this layout branch. * * @return the mvcc version of this layout branch */ @Override public long getMvccVersion() { return _layoutBranch.getMvccVersion(); } /** * Returns the name of this layout branch. * * @return the name of this layout branch */ @Override public String getName() { return _layoutBranch.getName(); } /** * Returns the plid of this layout branch. * * @return the plid of this layout branch */ @Override public long getPlid() { return _layoutBranch.getPlid(); } /** * Returns the primary key of this layout branch. * * @return the primary key of this layout branch */ @Override public long getPrimaryKey() { return _layoutBranch.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _layoutBranch.getPrimaryKeyObj(); } /** * Returns the user ID of this layout branch. * * @return the user ID of this layout branch */ @Override public long getUserId() { return _layoutBranch.getUserId(); } /** * Returns the user name of this layout branch. * * @return the user name of this layout branch */ @Override public String getUserName() { return _layoutBranch.getUserName(); } /** * Returns the user uuid of this layout branch. * * @return the user uuid of this layout branch */ @Override public String getUserUuid() { return _layoutBranch.getUserUuid(); } @Override public int hashCode() { return _layoutBranch.hashCode(); } @Override public boolean isCachedModel() { return _layoutBranch.isCachedModel(); } @Override public boolean isEscapedModel() { return _layoutBranch.isEscapedModel(); } /** * Returns true if this layout branch is master. * * @return true if this layout branch is master; false otherwise */ @Override public boolean isMaster() { return _layoutBranch.isMaster(); } @Override public boolean isNew() { return _layoutBranch.isNew(); } @Override public void persist() { _layoutBranch.persist(); } @Override public void setCachedModel(boolean cachedModel) { _layoutBranch.setCachedModel(cachedModel); } /** * Sets the company ID of this layout branch. * * @param companyId the company ID of this layout branch */ @Override public void setCompanyId(long companyId) { _layoutBranch.setCompanyId(companyId); } /** * Sets the description of this layout branch. * * @param description the description of this layout branch */ @Override public void setDescription(String description) { _layoutBranch.setDescription(description); } @Override public void setExpandoBridgeAttributes(BaseModel baseModel) { _layoutBranch.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _layoutBranch.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _layoutBranch.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this layout branch. * * @param groupId the group ID of this layout branch */ @Override public void setGroupId(long groupId) { _layoutBranch.setGroupId(groupId); } /** * Sets the layout branch ID of this layout branch. * * @param layoutBranchId the layout branch ID of this layout branch */ @Override public void setLayoutBranchId(long layoutBranchId) { _layoutBranch.setLayoutBranchId(layoutBranchId); } /** * Sets the layout set branch ID of this layout branch. * * @param layoutSetBranchId the layout set branch ID of this layout branch */ @Override public void setLayoutSetBranchId(long layoutSetBranchId) { _layoutBranch.setLayoutSetBranchId(layoutSetBranchId); } /** * Sets whether this layout branch is master. * * @param master the master of this layout branch */ @Override public void setMaster(boolean master) { _layoutBranch.setMaster(master); } /** * Sets the mvcc version of this layout branch. * * @param mvccVersion the mvcc version of this layout branch */ @Override public void setMvccVersion(long mvccVersion) { _layoutBranch.setMvccVersion(mvccVersion); } /** * Sets the name of this layout branch. * * @param name the name of this layout branch */ @Override public void setName(String name) { _layoutBranch.setName(name); } @Override public void setNew(boolean n) { _layoutBranch.setNew(n); } /** * Sets the plid of this layout branch. * * @param plid the plid of this layout branch */ @Override public void setPlid(long plid) { _layoutBranch.setPlid(plid); } /** * Sets the primary key of this layout branch. * * @param primaryKey the primary key of this layout branch */ @Override public void setPrimaryKey(long primaryKey) { _layoutBranch.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _layoutBranch.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the user ID of this layout branch. * * @param userId the user ID of this layout branch */ @Override public void setUserId(long userId) { _layoutBranch.setUserId(userId); } /** * Sets the user name of this layout branch. * * @param userName the user name of this layout branch */ @Override public void setUserName(String userName) { _layoutBranch.setUserName(userName); } /** * Sets the user uuid of this layout branch. * * @param userUuid the user uuid of this layout branch */ @Override public void setUserUuid(String userUuid) { _layoutBranch.setUserUuid(userUuid); } @Override public CacheModel toCacheModel() { return _layoutBranch.toCacheModel(); } @Override public LayoutBranch toEscapedModel() { return new LayoutBranchWrapper(_layoutBranch.toEscapedModel()); } @Override public String toString() { return _layoutBranch.toString(); } @Override public LayoutBranch toUnescapedModel() { return new LayoutBranchWrapper(_layoutBranch.toUnescapedModel()); } @Override public String toXmlString() { return _layoutBranch.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LayoutBranchWrapper)) { return false; } LayoutBranchWrapper layoutBranchWrapper = (LayoutBranchWrapper)obj; if (Objects.equals(_layoutBranch, layoutBranchWrapper._layoutBranch)) { return true; } return false; } @Override public LayoutBranch getWrappedModel() { return _layoutBranch; } @Override public boolean isEntityCacheEnabled() { return _layoutBranch.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _layoutBranch.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _layoutBranch.resetOriginalValues(); } private final LayoutBranch _layoutBranch; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy