/**
* Copyright (c) 2000-2012 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.ese.ils.beta.model;
import com.liferay.portal.model.ModelWrapper;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* This class is a wrapper for {@link Favorite}.
* </p>
*
* @author edik
* @see Favorite
* @generated
*/
public class FavoriteWrapper implements Favorite, ModelWrapper<Favorite> {
public FavoriteWrapper(Favorite favorite) {
_favorite = favorite;
}
public Class<?> getModelClass() {
return Favorite.class;
}
public String getModelClassName() {
return Favorite.class.getName();
}
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("favoriteId", getFavoriteId());
attributes.put("userId", getUserId());
attributes.put("moduleId", getModuleId());
attributes.put("slideId", getSlideId());
return attributes;
}
public void setModelAttributes(Map<String, Object> attributes) {
Long favoriteId = (Long)attributes.get("favoriteId");
if (favoriteId != null) {
setFavoriteId(favoriteId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
Long moduleId = (Long)attributes.get("moduleId");
if (moduleId != null) {
setModuleId(moduleId);
}
Long slideId = (Long)attributes.get("slideId");
if (slideId != null) {
setSlideId(slideId);
}
}
/**
* Returns the primary key of this favorite.
*
* @return the primary key of this favorite
*/
public long getPrimaryKey() {
return _favorite.getPrimaryKey();
}
/**
* Sets the primary key of this favorite.
*
* @param primaryKey the primary key of this favorite
*/
public void setPrimaryKey(long primaryKey) {
_favorite.setPrimaryKey(primaryKey);
}
/**
* Returns the favorite ID of this favorite.
*
* @return the favorite ID of this favorite
*/
public long getFavoriteId() {
return _favorite.getFavoriteId();
}
/**
* Sets the favorite ID of this favorite.
*
* @param favoriteId the favorite ID of this favorite
*/
public void setFavoriteId(long favoriteId) {
_favorite.setFavoriteId(favoriteId);
}
/**
* Returns the user ID of this favorite.
*
* @return the user ID of this favorite
*/
public long getUserId() {
return _favorite.getUserId();
}
/**
* Sets the user ID of this favorite.
*
* @param userId the user ID of this favorite
*/
public void setUserId(long userId) {
_favorite.setUserId(userId);
}
/**
* Returns the user uuid of this favorite.
*
* @return the user uuid of this favorite
* @throws SystemException if a system exception occurred
*/
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _favorite.getUserUuid();
}
/**
* Sets the user uuid of this favorite.
*
* @param userUuid the user uuid of this favorite
*/
public void setUserUuid(java.lang.String userUuid) {
_favorite.setUserUuid(userUuid);
}
/**
* Returns the module ID of this favorite.
*
* @return the module ID of this favorite
*/
public long getModuleId() {
return _favorite.getModuleId();
}
/**
* Sets the module ID of this favorite.
*
* @param moduleId the module ID of this favorite
*/
public void setModuleId(long moduleId) {
_favorite.setModuleId(moduleId);
}
/**
* Returns the slide ID of this favorite.
*
* @return the slide ID of this favorite
*/
public long getSlideId() {
return _favorite.getSlideId();
}
/**
* Sets the slide ID of this favorite.
*
* @param slideId the slide ID of this favorite
*/
public void setSlideId(long slideId) {
_favorite.setSlideId(slideId);
}
public boolean isNew() {
return _favorite.isNew();
}
public void setNew(boolean n) {
_favorite.setNew(n);
}
public boolean isCachedModel() {
return _favorite.isCachedModel();
}
public void setCachedModel(boolean cachedModel) {
_favorite.setCachedModel(cachedModel);
}
public boolean isEscapedModel() {
return _favorite.isEscapedModel();
}
public java.io.Serializable getPrimaryKeyObj() {
return _favorite.getPrimaryKeyObj();
}
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_favorite.setPrimaryKeyObj(primaryKeyObj);
}
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _favorite.getExpandoBridge();
}
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_favorite.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new FavoriteWrapper((Favorite)_favorite.clone());
}
public int compareTo(Favorite favorite) {
return _favorite.compareTo(favorite);
}
@Override
public int hashCode() {
return _favorite.hashCode();
}
public com.liferay.portal.model.CacheModel<Favorite> toCacheModel() {
return _favorite.toCacheModel();
}
public Favorite toEscapedModel() {
return new FavoriteWrapper(_favorite.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _favorite.toString();
}
public java.lang.String toXmlString() {
return _favorite.toXmlString();
}
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_favorite.persist();
}
/**
* @deprecated Renamed to {@link #getWrappedModel}
*/
public Favorite getWrappedFavorite() {
return _favorite;
}
public Favorite getWrappedModel() {
return _favorite;
}
public void resetOriginalValues() {
_favorite.resetOriginalValues();
}
private Favorite _favorite;
}