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

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

There is a newer version: 99.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 ObjectValidationRuleSetting}. *

* * @author Marco Leo * @see ObjectValidationRuleSetting * @generated */ public class ObjectValidationRuleSettingWrapper extends BaseModelWrapper implements ModelWrapper, ObjectValidationRuleSetting { public ObjectValidationRuleSettingWrapper( ObjectValidationRuleSetting objectValidationRuleSetting) { super(objectValidationRuleSetting); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("uuid", getUuid()); attributes.put( "objectValidationRuleSettingId", getObjectValidationRuleSettingId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("objectValidationRuleId", getObjectValidationRuleId()); attributes.put("name", getName()); attributes.put("value", getValue()); 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 objectValidationRuleSettingId = (Long)attributes.get( "objectValidationRuleSettingId"); if (objectValidationRuleSettingId != null) { setObjectValidationRuleSettingId(objectValidationRuleSettingId); } 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 objectValidationRuleId = (Long)attributes.get( "objectValidationRuleId"); if (objectValidationRuleId != null) { setObjectValidationRuleId(objectValidationRuleId); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String value = (String)attributes.get("value"); if (value != null) { setValue(value); } } @Override public ObjectValidationRuleSetting cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } @Override public boolean compareName(String name) { return model.compareName(name); } /** * Returns the company ID of this object validation rule setting. * * @return the company ID of this object validation rule setting */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the create date of this object validation rule setting. * * @return the create date of this object validation rule setting */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the modified date of this object validation rule setting. * * @return the modified date of this object validation rule setting */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the mvcc version of this object validation rule setting. * * @return the mvcc version of this object validation rule setting */ @Override public long getMvccVersion() { return model.getMvccVersion(); } /** * Returns the name of this object validation rule setting. * * @return the name of this object validation rule setting */ @Override public String getName() { return model.getName(); } /** * Returns the object validation rule ID of this object validation rule setting. * * @return the object validation rule ID of this object validation rule setting */ @Override public long getObjectValidationRuleId() { return model.getObjectValidationRuleId(); } /** * Returns the object validation rule setting ID of this object validation rule setting. * * @return the object validation rule setting ID of this object validation rule setting */ @Override public long getObjectValidationRuleSettingId() { return model.getObjectValidationRuleSettingId(); } /** * Returns the primary key of this object validation rule setting. * * @return the primary key of this object validation rule setting */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the user ID of this object validation rule setting. * * @return the user ID of this object validation rule setting */ @Override public long getUserId() { return model.getUserId(); } /** * Returns the user name of this object validation rule setting. * * @return the user name of this object validation rule setting */ @Override public String getUserName() { return model.getUserName(); } /** * Returns the user uuid of this object validation rule setting. * * @return the user uuid of this object validation rule setting */ @Override public String getUserUuid() { return model.getUserUuid(); } /** * Returns the uuid of this object validation rule setting. * * @return the uuid of this object validation rule setting */ @Override public String getUuid() { return model.getUuid(); } /** * Returns the value of this object validation rule setting. * * @return the value of this object validation rule setting */ @Override public String getValue() { return model.getValue(); } @Override public void persist() { model.persist(); } /** * Sets the company ID of this object validation rule setting. * * @param companyId the company ID of this object validation rule setting */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the create date of this object validation rule setting. * * @param createDate the create date of this object validation rule setting */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the modified date of this object validation rule setting. * * @param modifiedDate the modified date of this object validation rule setting */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the mvcc version of this object validation rule setting. * * @param mvccVersion the mvcc version of this object validation rule setting */ @Override public void setMvccVersion(long mvccVersion) { model.setMvccVersion(mvccVersion); } /** * Sets the name of this object validation rule setting. * * @param name the name of this object validation rule setting */ @Override public void setName(String name) { model.setName(name); } /** * Sets the object validation rule ID of this object validation rule setting. * * @param objectValidationRuleId the object validation rule ID of this object validation rule setting */ @Override public void setObjectValidationRuleId(long objectValidationRuleId) { model.setObjectValidationRuleId(objectValidationRuleId); } /** * Sets the object validation rule setting ID of this object validation rule setting. * * @param objectValidationRuleSettingId the object validation rule setting ID of this object validation rule setting */ @Override public void setObjectValidationRuleSettingId( long objectValidationRuleSettingId) { model.setObjectValidationRuleSettingId(objectValidationRuleSettingId); } /** * Sets the primary key of this object validation rule setting. * * @param primaryKey the primary key of this object validation rule setting */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the user ID of this object validation rule setting. * * @param userId the user ID of this object validation rule setting */ @Override public void setUserId(long userId) { model.setUserId(userId); } /** * Sets the user name of this object validation rule setting. * * @param userName the user name of this object validation rule setting */ @Override public void setUserName(String userName) { model.setUserName(userName); } /** * Sets the user uuid of this object validation rule setting. * * @param userUuid the user uuid of this object validation rule setting */ @Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); } /** * Sets the uuid of this object validation rule setting. * * @param uuid the uuid of this object validation rule setting */ @Override public void setUuid(String uuid) { model.setUuid(uuid); } /** * Sets the value of this object validation rule setting. * * @param value the value of this object validation rule setting */ @Override public void setValue(String value) { model.setValue(value); } @Override public String toXmlString() { return model.toXmlString(); } @Override public StagedModelType getStagedModelType() { return model.getStagedModelType(); } @Override protected ObjectValidationRuleSettingWrapper wrap( ObjectValidationRuleSetting objectValidationRuleSetting) { return new ObjectValidationRuleSettingWrapper( objectValidationRuleSetting); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy