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

com.liferay.object.model.ObjectLayoutRowWrapper Maven / Gradle / Ivy

There is a newer version: 93.0.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.object.model;

import com.liferay.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;

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

/**
 * 

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

* * @author Marco Leo * @see ObjectLayoutRow * @generated */ public class ObjectLayoutRowWrapper extends BaseModelWrapper implements ModelWrapper, ObjectLayoutRow { public ObjectLayoutRowWrapper(ObjectLayoutRow objectLayoutRow) { super(objectLayoutRow); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("uuid", getUuid()); attributes.put("objectLayoutRowId", getObjectLayoutRowId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("objectLayoutBoxId", getObjectLayoutBoxId()); attributes.put("priority", getPriority()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long objectLayoutRowId = (Long)attributes.get("objectLayoutRowId"); if (objectLayoutRowId != null) { setObjectLayoutRowId(objectLayoutRowId); } 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 objectLayoutBoxId = (Long)attributes.get("objectLayoutBoxId"); if (objectLayoutBoxId != null) { setObjectLayoutBoxId(objectLayoutBoxId); } Integer priority = (Integer)attributes.get("priority"); if (priority != null) { setPriority(priority); } } @Override public ObjectLayoutRow cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } /** * Returns the company ID of this object layout row. * * @return the company ID of this object layout row */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the create date of this object layout row. * * @return the create date of this object layout row */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the modified date of this object layout row. * * @return the modified date of this object layout row */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the mvcc version of this object layout row. * * @return the mvcc version of this object layout row */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the object layout box ID of this object layout row. * * @return the object layout box ID of this object layout row */ @Override public long getObjectLayoutBoxId() { return model.getObjectLayoutBoxId(); } @Override public java.util.List getObjectLayoutColumns() { return model.getObjectLayoutColumns(); } /** * Returns the object layout row ID of this object layout row. * * @return the object layout row ID of this object layout row */ @Override public long getObjectLayoutRowId() { return model.getObjectLayoutRowId(); } /** * Returns the primary key of this object layout row. * * @return the primary key of this object layout row */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the priority of this object layout row. * * @return the priority of this object layout row */ @Override public int getPriority() { return model.getPriority(); } /** * Returns the user ID of this object layout row. * * @return the user ID of this object layout row */ @Override public long getUserId() { return model.getUserId(); } /** * Returns the user name of this object layout row. * * @return the user name of this object layout row */ @Override public String getUserName() { return model.getUserName(); } /** * Returns the user uuid of this object layout row. * * @return the user uuid of this object layout row */ @Override public String getUserUuid() { return model.getUserUuid(); } /** * Returns the uuid of this object layout row. * * @return the uuid of this object layout row */ @Override public String getUuid() { return model.getUuid(); } /** * Sets the company ID of this object layout row. * * @param companyId the company ID of this object layout row */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the create date of this object layout row. * * @param createDate the create date of this object layout row */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the modified date of this object layout row. * * @param modifiedDate the modified date of this object layout row */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this object layout row. * * @param mvccVersion the mvcc version of this object layout row */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the object layout box ID of this object layout row. * * @param objectLayoutBoxId the object layout box ID of this object layout row */ @Override public void setObjectLayoutBoxId(long objectLayoutBoxId) { model.setObjectLayoutBoxId(objectLayoutBoxId); } @Override public void setObjectLayoutColumns( java.util.List objectLayoutColumns) { model.setObjectLayoutColumns(objectLayoutColumns); } /** * Sets the object layout row ID of this object layout row. * * @param objectLayoutRowId the object layout row ID of this object layout row */ @Override public void setObjectLayoutRowId(long objectLayoutRowId) { model.setObjectLayoutRowId(objectLayoutRowId); } /** * Sets the primary key of this object layout row. * * @param primaryKey the primary key of this object layout row */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the priority of this object layout row. * * @param priority the priority of this object layout row */ @Override public void setPriority(int priority) { model.setPriority(priority); } /** * Sets the user ID of this object layout row. * * @param userId the user ID of this object layout row */ @Override public void setUserId(long userId) { model.setUserId(userId); } /** * Sets the user name of this object layout row. * * @param userName the user name of this object layout row */ @Override public void setUserName(String userName) { model.setUserName(userName); } /** * Sets the user uuid of this object layout row. * * @param userUuid the user uuid of this object layout row */ @Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); } /** * Sets the uuid of this object layout row. * * @param uuid the uuid of this object layout row */ @Override public void setUuid(String uuid) { model.setUuid(uuid); } @Override public String toXmlString() { return model.toXmlString(); } @Override public StagedModelType getStagedModelType() { return model.getStagedModelType(); } @Override protected ObjectLayoutRowWrapper wrap(ObjectLayoutRow objectLayoutRow) { return new ObjectLayoutRowWrapper(objectLayoutRow); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy