/**
* 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 UserInfo}.
* </p>
*
* @author edik
* @see UserInfo
* @generated
*/
public class UserInfoWrapper implements UserInfo, ModelWrapper<UserInfo> {
public UserInfoWrapper(UserInfo userInfo) {
_userInfo = userInfo;
}
public Class<?> getModelClass() {
return UserInfo.class;
}
public String getModelClassName() {
return UserInfo.class.getName();
}
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("userInfoId", getUserInfoId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("moduleId", getModuleId());
return attributes;
}
public void setModelAttributes(Map<String, Object> attributes) {
Long userInfoId = (Long)attributes.get("userInfoId");
if (userInfoId != null) {
setUserInfoId(userInfoId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
Long moduleId = (Long)attributes.get("moduleId");
if (moduleId != null) {
setModuleId(moduleId);
}
}
/**
* Returns the primary key of this user info.
*
* @return the primary key of this user info
*/
public long getPrimaryKey() {
return _userInfo.getPrimaryKey();
}
/**
* Sets the primary key of this user info.
*
* @param primaryKey the primary key of this user info
*/
public void setPrimaryKey(long primaryKey) {
_userInfo.setPrimaryKey(primaryKey);
}
/**
* Returns the user info ID of this user info.
*
* @return the user info ID of this user info
*/
public long getUserInfoId() {
return _userInfo.getUserInfoId();
}
/**
* Sets the user info ID of this user info.
*
* @param userInfoId the user info ID of this user info
*/
public void setUserInfoId(long userInfoId) {
_userInfo.setUserInfoId(userInfoId);
}
/**
* Returns the company ID of this user info.
*
* @return the company ID of this user info
*/
public long getCompanyId() {
return _userInfo.getCompanyId();
}
/**
* Sets the company ID of this user info.
*
* @param companyId the company ID of this user info
*/
public void setCompanyId(long companyId) {
_userInfo.setCompanyId(companyId);
}
/**
* Returns the user ID of this user info.
*
* @return the user ID of this user info
*/
public long getUserId() {
return _userInfo.getUserId();
}
/**
* Sets the user ID of this user info.
*
* @param userId the user ID of this user info
*/
public void setUserId(long userId) {
_userInfo.setUserId(userId);
}
/**
* Returns the user uuid of this user info.
*
* @return the user uuid of this user info
* @throws SystemException if a system exception occurred
*/
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _userInfo.getUserUuid();
}
/**
* Sets the user uuid of this user info.
*
* @param userUuid the user uuid of this user info
*/
public void setUserUuid(java.lang.String userUuid) {
_userInfo.setUserUuid(userUuid);
}
/**
* Returns the module ID of this user info.
*
* @return the module ID of this user info
*/
public long getModuleId() {
return _userInfo.getModuleId();
}
/**
* Sets the module ID of this user info.
*
* @param moduleId the module ID of this user info
*/
public void setModuleId(long moduleId) {
_userInfo.setModuleId(moduleId);
}
public boolean isNew() {
return _userInfo.isNew();
}
public void setNew(boolean n) {
_userInfo.setNew(n);
}
public boolean isCachedModel() {
return _userInfo.isCachedModel();
}
public void setCachedModel(boolean cachedModel) {
_userInfo.setCachedModel(cachedModel);
}
public boolean isEscapedModel() {
return _userInfo.isEscapedModel();
}
public java.io.Serializable getPrimaryKeyObj() {
return _userInfo.getPrimaryKeyObj();
}
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_userInfo.setPrimaryKeyObj(primaryKeyObj);
}
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _userInfo.getExpandoBridge();
}
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_userInfo.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new UserInfoWrapper((UserInfo)_userInfo.clone());
}
public int compareTo(UserInfo userInfo) {
return _userInfo.compareTo(userInfo);
}
@Override
public int hashCode() {
return _userInfo.hashCode();
}
public com.liferay.portal.model.CacheModel<UserInfo> toCacheModel() {
return _userInfo.toCacheModel();
}
public UserInfo toEscapedModel() {
return new UserInfoWrapper(_userInfo.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _userInfo.toString();
}
public java.lang.String toXmlString() {
return _userInfo.toXmlString();
}
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_userInfo.persist();
}
/**
* @deprecated Renamed to {@link #getWrappedModel}
*/
public UserInfo getWrappedUserInfo() {
return _userInfo;
}
public UserInfo getWrappedModel() {
return _userInfo;
}
public void resetOriginalValues() {
_userInfo.resetOriginalValues();
}
private UserInfo _userInfo;
}