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.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 Entry}. *

* * @author Brian Wing Shun Chan * @see Entry * @generated */ public class EntryWrapper extends BaseModelWrapper implements Entry, ModelWrapper { public EntryWrapper(Entry entry) { super(entry); } @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 Entry cloneWithOriginalValues() { return wrap(model.cloneWithOriginalValues()); } /** * Returns the comments of this entry. * * @return the comments of this entry */ @Override public String getComments() { return model.getComments(); } /** * Returns the company ID of this entry. * * @return the company ID of this entry */ @Override public long getCompanyId() { return model.getCompanyId(); } /** * Returns the create date of this entry. * * @return the create date of this entry */ @Override public Date getCreateDate() { return model.getCreateDate(); } /** * Returns the email address of this entry. * * @return the email address of this entry */ @Override public String getEmailAddress() { return model.getEmailAddress(); } /** * Returns the entry ID of this entry. * * @return the entry ID of this entry */ @Override public long getEntryId() { return model.getEntryId(); } /** * Returns the full name of this entry. * * @return the full name of this entry */ @Override public String getFullName() { return model.getFullName(); } /** * Returns the group ID of this entry. * * @return the group ID of this entry */ @Override public long getGroupId() { return model.getGroupId(); } /** * Returns the modified date of this entry. * * @return the modified date of this entry */ @Override public Date getModifiedDate() { return model.getModifiedDate(); } /** * Returns the primary key of this entry. * * @return the primary key of this entry */ @Override public long getPrimaryKey() { return model.getPrimaryKey(); } /** * Returns the user ID of this entry. * * @return the user ID of this entry */ @Override public long getUserId() { return model.getUserId(); } /** * Returns the user name of this entry. * * @return the user name of this entry */ @Override public String getUserName() { return model.getUserName(); } /** * Returns the user uuid of this entry. * * @return the user uuid of this entry */ @Override public String getUserUuid() { return model.getUserUuid(); } @Override public void persist() { model.persist(); } /** * Sets the comments of this entry. * * @param comments the comments of this entry */ @Override public void setComments(String comments) { model.setComments(comments); } /** * Sets the company ID of this entry. * * @param companyId the company ID of this entry */ @Override public void setCompanyId(long companyId) { model.setCompanyId(companyId); } /** * Sets the create date of this entry. * * @param createDate the create date of this entry */ @Override public void setCreateDate(Date createDate) { model.setCreateDate(createDate); } /** * Sets the email address of this entry. * * @param emailAddress the email address of this entry */ @Override public void setEmailAddress(String emailAddress) { model.setEmailAddress(emailAddress); } /** * Sets the entry ID of this entry. * * @param entryId the entry ID of this entry */ @Override public void setEntryId(long entryId) { model.setEntryId(entryId); } /** * Sets the full name of this entry. * * @param fullName the full name of this entry */ @Override public void setFullName(String fullName) { model.setFullName(fullName); } /** * Sets the group ID of this entry. * * @param groupId the group ID of this entry */ @Override public void setGroupId(long groupId) { model.setGroupId(groupId); } /** * Sets the modified date of this entry. * * @param modifiedDate the modified date of this entry */ @Override public void setModifiedDate(Date modifiedDate) { model.setModifiedDate(modifiedDate); } /** * Sets the primary key of this entry. * * @param primaryKey the primary key of this entry */ @Override public void setPrimaryKey(long primaryKey) { model.setPrimaryKey(primaryKey); } /** * Sets the user ID of this entry. * * @param userId the user ID of this entry */ @Override public void setUserId(long userId) { model.setUserId(userId); } /** * Sets the user name of this entry. * * @param userName the user name of this entry */ @Override public void setUserName(String userName) { model.setUserName(userName); } /** * Sets the user uuid of this entry. * * @param userUuid the user uuid of this entry */ @Override public void setUserUuid(String userUuid) { model.setUserUuid(userUuid); } @Override protected EntryWrapper wrap(Entry entry) { return new EntryWrapper(entry); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy