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

com.liferay.contacts.model.EntryWrapper Maven / Gradle / Ivy

There is a newer version: 8.0.1
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.contacts.model;

import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
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;

/**
 * 

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

* * @author Brian Wing Shun Chan * @see Entry * @generated */ public class EntryWrapper implements Entry, ModelWrapper { public EntryWrapper(Entry entry) { _entry = entry; } @Override public Class getModelClass() { return Entry.class; } @Override public String getModelClassName() { return Entry.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("entryId", getEntryId()); 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("fullName", getFullName()); attributes.put("emailAddress", getEmailAddress()); attributes.put("comments", getComments()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long entryId = (Long)attributes.get("entryId"); if (entryId != null) { setEntryId(entryId); } 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); } String fullName = (String)attributes.get("fullName"); if (fullName != null) { setFullName(fullName); } String emailAddress = (String)attributes.get("emailAddress"); if (emailAddress != null) { setEmailAddress(emailAddress); } String comments = (String)attributes.get("comments"); if (comments != null) { setComments(comments); } } @Override public Object clone() { return new EntryWrapper((Entry)_entry.clone()); } @Override public int compareTo(Entry entry) { return _entry.compareTo(entry); } /** * Returns the comments of this entry. * * @return the comments of this entry */ @Override public String getComments() { return _entry.getComments(); } /** * Returns the company ID of this entry. * * @return the company ID of this entry */ @Override public long getCompanyId() { return _entry.getCompanyId(); } /** * Returns the create date of this entry. * * @return the create date of this entry */ @Override public Date getCreateDate() { return _entry.getCreateDate(); } /** * Returns the email address of this entry. * * @return the email address of this entry */ @Override public String getEmailAddress() { return _entry.getEmailAddress(); } /** * Returns the entry ID of this entry. * * @return the entry ID of this entry */ @Override public long getEntryId() { return _entry.getEntryId(); } @Override public ExpandoBridge getExpandoBridge() { return _entry.getExpandoBridge(); } /** * Returns the full name of this entry. * * @return the full name of this entry */ @Override public String getFullName() { return _entry.getFullName(); } /** * Returns the group ID of this entry. * * @return the group ID of this entry */ @Override public long getGroupId() { return _entry.getGroupId(); } /** * Returns the modified date of this entry. * * @return the modified date of this entry */ @Override public Date getModifiedDate() { return _entry.getModifiedDate(); } /** * Returns the primary key of this entry. * * @return the primary key of this entry */ @Override public long getPrimaryKey() { return _entry.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _entry.getPrimaryKeyObj(); } /** * Returns the user ID of this entry. * * @return the user ID of this entry */ @Override public long getUserId() { return _entry.getUserId(); } /** * Returns the user name of this entry. * * @return the user name of this entry */ @Override public String getUserName() { return _entry.getUserName(); } /** * Returns the user uuid of this entry. * * @return the user uuid of this entry */ @Override public String getUserUuid() { return _entry.getUserUuid(); } @Override public int hashCode() { return _entry.hashCode(); } @Override public boolean isCachedModel() { return _entry.isCachedModel(); } @Override public boolean isEscapedModel() { return _entry.isEscapedModel(); } @Override public boolean isNew() { return _entry.isNew(); } @Override public void persist() { _entry.persist(); } @Override public void setCachedModel(boolean cachedModel) { _entry.setCachedModel(cachedModel); } /** * Sets the comments of this entry. * * @param comments the comments of this entry */ @Override public void setComments(String comments) { _entry.setComments(comments); } /** * Sets the company ID of this entry. * * @param companyId the company ID of this entry */ @Override public void setCompanyId(long companyId) { _entry.setCompanyId(companyId); } /** * Sets the create date of this entry. * * @param createDate the create date of this entry */ @Override public void setCreateDate(Date createDate) { _entry.setCreateDate(createDate); } /** * Sets the email address of this entry. * * @param emailAddress the email address of this entry */ @Override public void setEmailAddress(String emailAddress) { _entry.setEmailAddress(emailAddress); } /** * Sets the entry ID of this entry. * * @param entryId the entry ID of this entry */ @Override public void setEntryId(long entryId) { _entry.setEntryId(entryId); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel baseModel) { _entry.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _entry.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _entry.setExpandoBridgeAttributes(serviceContext); } /** * Sets the full name of this entry. * * @param fullName the full name of this entry */ @Override public void setFullName(String fullName) { _entry.setFullName(fullName); } /** * Sets the group ID of this entry. * * @param groupId the group ID of this entry */ @Override public void setGroupId(long groupId) { _entry.setGroupId(groupId); } /** * Sets the modified date of this entry. * * @param modifiedDate the modified date of this entry */ @Override public void setModifiedDate(Date modifiedDate) { _entry.setModifiedDate(modifiedDate); } @Override public void setNew(boolean n) { _entry.setNew(n); } /** * Sets the primary key of this entry. * * @param primaryKey the primary key of this entry */ @Override public void setPrimaryKey(long primaryKey) { _entry.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _entry.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the user ID of this entry. * * @param userId the user ID of this entry */ @Override public void setUserId(long userId) { _entry.setUserId(userId); } /** * Sets the user name of this entry. * * @param userName the user name of this entry */ @Override public void setUserName(String userName) { _entry.setUserName(userName); } /** * Sets the user uuid of this entry. * * @param userUuid the user uuid of this entry */ @Override public void setUserUuid(String userUuid) { _entry.setUserUuid(userUuid); } @Override public com.liferay.portal.kernel.model.CacheModel toCacheModel() { return _entry.toCacheModel(); } @Override public Entry toEscapedModel() { return new EntryWrapper(_entry.toEscapedModel()); } @Override public String toString() { return _entry.toString(); } @Override public Entry toUnescapedModel() { return new EntryWrapper(_entry.toUnescapedModel()); } @Override public String toXmlString() { return _entry.toXmlString(); } @Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof EntryWrapper)) { return false; } EntryWrapper entryWrapper = (EntryWrapper)object; if (Objects.equals(_entry, entryWrapper._entry)) { return true; } return false; } @Override public Entry getWrappedModel() { return _entry; } @Override public boolean isEntityCacheEnabled() { return _entry.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _entry.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _entry.resetOriginalValues(); } private final Entry _entry; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy