/** * 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.portal.kernel.model; import aQute.bnd.annotation.ProviderType; import com.liferay.expando.kernel.model.ExpandoBridge; 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; /** * <p> * This class is a wrapper for {@link PasswordTracker}. * </p> * * @author Brian Wing Shun Chan * @see PasswordTracker * @generated */ @ProviderType public class PasswordTrackerWrapper implements PasswordTracker, ModelWrapper<PasswordTracker> { public PasswordTrackerWrapper(PasswordTracker passwordTracker) { _passwordTracker = passwordTracker; } @Override public Class<?> getModelClass() { return PasswordTracker.class; } @Override public String getModelClassName() { return PasswordTracker.class.getName(); } @Override public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("passwordTrackerId", getPasswordTrackerId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("createDate", getCreateDate()); attributes.put("password", getPassword()); return attributes; } @Override public void setModelAttributes(Map<String, Object> attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long passwordTrackerId = (Long)attributes.get("passwordTrackerId"); if (passwordTrackerId != null) { setPasswordTrackerId(passwordTrackerId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long userId = (Long)attributes.get("userId"); if (userId != null) { setUserId(userId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } String password = (String)attributes.get("password"); if (password != null) { setPassword(password); } } @Override public CacheModel<PasswordTracker> toCacheModel() { return _passwordTracker.toCacheModel(); } @Override public PasswordTracker toEscapedModel() { return new PasswordTrackerWrapper(_passwordTracker.toEscapedModel()); } @Override public PasswordTracker toUnescapedModel() { return new PasswordTrackerWrapper(_passwordTracker.toUnescapedModel()); } @Override public boolean isCachedModel() { return _passwordTracker.isCachedModel(); } @Override public boolean isEscapedModel() { return _passwordTracker.isEscapedModel(); } @Override public boolean isNew() { return _passwordTracker.isNew(); } @Override public ExpandoBridge getExpandoBridge() { return _passwordTracker.getExpandoBridge(); } @Override public int compareTo(PasswordTracker passwordTracker) { return _passwordTracker.compareTo(passwordTracker); } @Override public int hashCode() { return _passwordTracker.hashCode(); } @Override public Serializable getPrimaryKeyObj() { return _passwordTracker.getPrimaryKeyObj(); } @Override public java.lang.Object clone() { return new PasswordTrackerWrapper((PasswordTracker)_passwordTracker.clone()); } /** * Returns the password of this password tracker. * * @return the password of this password tracker */ @Override public java.lang.String getPassword() { return _passwordTracker.getPassword(); } /** * Returns the user uuid of this password tracker. * * @return the user uuid of this password tracker */ @Override public java.lang.String getUserUuid() { return _passwordTracker.getUserUuid(); } @Override public java.lang.String toString() { return _passwordTracker.toString(); } @Override public java.lang.String toXmlString() { return _passwordTracker.toXmlString(); } /** * Returns the create date of this password tracker. * * @return the create date of this password tracker */ @Override public Date getCreateDate() { return _passwordTracker.getCreateDate(); } /** * Returns the company ID of this password tracker. * * @return the company ID of this password tracker */ @Override public long getCompanyId() { return _passwordTracker.getCompanyId(); } /** * Returns the mvcc version of this password tracker. * * @return the mvcc version of this password tracker */ @Override public long getMvccVersion() { return _passwordTracker.getMvccVersion(); } /** * Returns the password tracker ID of this password tracker. * * @return the password tracker ID of this password tracker */ @Override public long getPasswordTrackerId() { return _passwordTracker.getPasswordTrackerId(); } /** * Returns the primary key of this password tracker. * * @return the primary key of this password tracker */ @Override public long getPrimaryKey() { return _passwordTracker.getPrimaryKey(); } /** * Returns the user ID of this password tracker. * * @return the user ID of this password tracker */ @Override public long getUserId() { return _passwordTracker.getUserId(); } @Override public void persist() { _passwordTracker.persist(); } @Override public void setCachedModel(boolean cachedModel) { _passwordTracker.setCachedModel(cachedModel); } /** * Sets the company ID of this password tracker. * * @param companyId the company ID of this password tracker */ @Override public void setCompanyId(long companyId) { _passwordTracker.setCompanyId(companyId); } /** * Sets the create date of this password tracker. * * @param createDate the create date of this password tracker */ @Override public void setCreateDate(Date createDate) { _passwordTracker.setCreateDate(createDate); } @Override public void setExpandoBridgeAttributes(BaseModel<?> baseModel) { _passwordTracker.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _passwordTracker.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _passwordTracker.setExpandoBridgeAttributes(serviceContext); } /** * Sets the mvcc version of this password tracker. * * @param mvccVersion the mvcc version of this password tracker */ @Override public void setMvccVersion(long mvccVersion) { _passwordTracker.setMvccVersion(mvccVersion); } @Override public void setNew(boolean n) { _passwordTracker.setNew(n); } /** * Sets the password of this password tracker. * * @param password the password of this password tracker */ @Override public void setPassword(java.lang.String password) { _passwordTracker.setPassword(password); } /** * Sets the password tracker ID of this password tracker. * * @param passwordTrackerId the password tracker ID of this password tracker */ @Override public void setPasswordTrackerId(long passwordTrackerId) { _passwordTracker.setPasswordTrackerId(passwordTrackerId); } /** * Sets the primary key of this password tracker. * * @param primaryKey the primary key of this password tracker */ @Override public void setPrimaryKey(long primaryKey) { _passwordTracker.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _passwordTracker.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the user ID of this password tracker. * * @param userId the user ID of this password tracker */ @Override public void setUserId(long userId) { _passwordTracker.setUserId(userId); } /** * Sets the user uuid of this password tracker. * * @param userUuid the user uuid of this password tracker */ @Override public void setUserUuid(java.lang.String userUuid) { _passwordTracker.setUserUuid(userUuid); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof PasswordTrackerWrapper)) { return false; } PasswordTrackerWrapper passwordTrackerWrapper = (PasswordTrackerWrapper)obj; if (Objects.equals(_passwordTracker, passwordTrackerWrapper._passwordTracker)) { return true; } return false; } @Override public PasswordTracker getWrappedModel() { return _passwordTracker; } @Override public boolean isEntityCacheEnabled() { return _passwordTracker.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _passwordTracker.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _passwordTracker.resetOriginalValues(); } private final PasswordTracker _passwordTracker; }