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

com.liferay.portal.model.AccountWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 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.model;

import com.liferay.portal.kernel.util.Validator;

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

/**
 * 

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

* * @author Brian Wing Shun Chan * @see Account * @generated */ public class AccountWrapper implements Account, ModelWrapper { public AccountWrapper(Account account) { _account = account; } @Override public Class getModelClass() { return Account.class; } @Override public String getModelClassName() { return Account.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("accountId", getAccountId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("parentAccountId", getParentAccountId()); attributes.put("name", getName()); attributes.put("legalName", getLegalName()); attributes.put("legalId", getLegalId()); attributes.put("legalType", getLegalType()); attributes.put("sicCode", getSicCode()); attributes.put("tickerSymbol", getTickerSymbol()); attributes.put("industry", getIndustry()); attributes.put("type", getType()); attributes.put("size", getSize()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long accountId = (Long)attributes.get("accountId"); if (accountId != null) { setAccountId(accountId); } 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 parentAccountId = (Long)attributes.get("parentAccountId"); if (parentAccountId != null) { setParentAccountId(parentAccountId); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String legalName = (String)attributes.get("legalName"); if (legalName != null) { setLegalName(legalName); } String legalId = (String)attributes.get("legalId"); if (legalId != null) { setLegalId(legalId); } String legalType = (String)attributes.get("legalType"); if (legalType != null) { setLegalType(legalType); } String sicCode = (String)attributes.get("sicCode"); if (sicCode != null) { setSicCode(sicCode); } String tickerSymbol = (String)attributes.get("tickerSymbol"); if (tickerSymbol != null) { setTickerSymbol(tickerSymbol); } String industry = (String)attributes.get("industry"); if (industry != null) { setIndustry(industry); } String type = (String)attributes.get("type"); if (type != null) { setType(type); } String size = (String)attributes.get("size"); if (size != null) { setSize(size); } } /** * Returns the primary key of this account. * * @return the primary key of this account */ @Override public long getPrimaryKey() { return _account.getPrimaryKey(); } /** * Sets the primary key of this account. * * @param primaryKey the primary key of this account */ @Override public void setPrimaryKey(long primaryKey) { _account.setPrimaryKey(primaryKey); } /** * Returns the account ID of this account. * * @return the account ID of this account */ @Override public long getAccountId() { return _account.getAccountId(); } /** * Sets the account ID of this account. * * @param accountId the account ID of this account */ @Override public void setAccountId(long accountId) { _account.setAccountId(accountId); } /** * Returns the company ID of this account. * * @return the company ID of this account */ @Override public long getCompanyId() { return _account.getCompanyId(); } /** * Sets the company ID of this account. * * @param companyId the company ID of this account */ @Override public void setCompanyId(long companyId) { _account.setCompanyId(companyId); } /** * Returns the user ID of this account. * * @return the user ID of this account */ @Override public long getUserId() { return _account.getUserId(); } /** * Sets the user ID of this account. * * @param userId the user ID of this account */ @Override public void setUserId(long userId) { _account.setUserId(userId); } /** * Returns the user uuid of this account. * * @return the user uuid of this account * @throws SystemException if a system exception occurred */ @Override public java.lang.String getUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _account.getUserUuid(); } /** * Sets the user uuid of this account. * * @param userUuid the user uuid of this account */ @Override public void setUserUuid(java.lang.String userUuid) { _account.setUserUuid(userUuid); } /** * Returns the user name of this account. * * @return the user name of this account */ @Override public java.lang.String getUserName() { return _account.getUserName(); } /** * Sets the user name of this account. * * @param userName the user name of this account */ @Override public void setUserName(java.lang.String userName) { _account.setUserName(userName); } /** * Returns the create date of this account. * * @return the create date of this account */ @Override public java.util.Date getCreateDate() { return _account.getCreateDate(); } /** * Sets the create date of this account. * * @param createDate the create date of this account */ @Override public void setCreateDate(java.util.Date createDate) { _account.setCreateDate(createDate); } /** * Returns the modified date of this account. * * @return the modified date of this account */ @Override public java.util.Date getModifiedDate() { return _account.getModifiedDate(); } /** * Sets the modified date of this account. * * @param modifiedDate the modified date of this account */ @Override public void setModifiedDate(java.util.Date modifiedDate) { _account.setModifiedDate(modifiedDate); } /** * Returns the parent account ID of this account. * * @return the parent account ID of this account */ @Override public long getParentAccountId() { return _account.getParentAccountId(); } /** * Sets the parent account ID of this account. * * @param parentAccountId the parent account ID of this account */ @Override public void setParentAccountId(long parentAccountId) { _account.setParentAccountId(parentAccountId); } /** * Returns the name of this account. * * @return the name of this account */ @Override public java.lang.String getName() { return _account.getName(); } /** * Sets the name of this account. * * @param name the name of this account */ @Override public void setName(java.lang.String name) { _account.setName(name); } /** * Returns the legal name of this account. * * @return the legal name of this account */ @Override public java.lang.String getLegalName() { return _account.getLegalName(); } /** * Sets the legal name of this account. * * @param legalName the legal name of this account */ @Override public void setLegalName(java.lang.String legalName) { _account.setLegalName(legalName); } /** * Returns the legal ID of this account. * * @return the legal ID of this account */ @Override public java.lang.String getLegalId() { return _account.getLegalId(); } /** * Sets the legal ID of this account. * * @param legalId the legal ID of this account */ @Override public void setLegalId(java.lang.String legalId) { _account.setLegalId(legalId); } /** * Returns the legal type of this account. * * @return the legal type of this account */ @Override public java.lang.String getLegalType() { return _account.getLegalType(); } /** * Sets the legal type of this account. * * @param legalType the legal type of this account */ @Override public void setLegalType(java.lang.String legalType) { _account.setLegalType(legalType); } /** * Returns the sic code of this account. * * @return the sic code of this account */ @Override public java.lang.String getSicCode() { return _account.getSicCode(); } /** * Sets the sic code of this account. * * @param sicCode the sic code of this account */ @Override public void setSicCode(java.lang.String sicCode) { _account.setSicCode(sicCode); } /** * Returns the ticker symbol of this account. * * @return the ticker symbol of this account */ @Override public java.lang.String getTickerSymbol() { return _account.getTickerSymbol(); } /** * Sets the ticker symbol of this account. * * @param tickerSymbol the ticker symbol of this account */ @Override public void setTickerSymbol(java.lang.String tickerSymbol) { _account.setTickerSymbol(tickerSymbol); } /** * Returns the industry of this account. * * @return the industry of this account */ @Override public java.lang.String getIndustry() { return _account.getIndustry(); } /** * Sets the industry of this account. * * @param industry the industry of this account */ @Override public void setIndustry(java.lang.String industry) { _account.setIndustry(industry); } /** * Returns the type of this account. * * @return the type of this account */ @Override public java.lang.String getType() { return _account.getType(); } /** * Sets the type of this account. * * @param type the type of this account */ @Override public void setType(java.lang.String type) { _account.setType(type); } /** * Returns the size of this account. * * @return the size of this account */ @Override public java.lang.String getSize() { return _account.getSize(); } /** * Sets the size of this account. * * @param size the size of this account */ @Override public void setSize(java.lang.String size) { _account.setSize(size); } @Override public boolean isNew() { return _account.isNew(); } @Override public void setNew(boolean n) { _account.setNew(n); } @Override public boolean isCachedModel() { return _account.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _account.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _account.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _account.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _account.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _account.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _account.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _account.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _account.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new AccountWrapper((Account)_account.clone()); } @Override public int compareTo(com.liferay.portal.model.Account account) { return _account.compareTo(account); } @Override public int hashCode() { return _account.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _account.toCacheModel(); } @Override public com.liferay.portal.model.Account toEscapedModel() { return new AccountWrapper(_account.toEscapedModel()); } @Override public com.liferay.portal.model.Account toUnescapedModel() { return new AccountWrapper(_account.toUnescapedModel()); } @Override public java.lang.String toString() { return _account.toString(); } @Override public java.lang.String toXmlString() { return _account.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _account.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof AccountWrapper)) { return false; } AccountWrapper accountWrapper = (AccountWrapper)obj; if (Validator.equals(_account, accountWrapper._account)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public Account getWrappedAccount() { return _account; } @Override public Account getWrappedModel() { return _account; } @Override public void resetOriginalValues() { _account.resetOriginalValues(); } private Account _account; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy