gt: 				throw new UnsupportedOperationException(e);
context: /**
   * 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 org.opencps.dossiermgt.model;
  
  import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
  import com.liferay.portal.kernel.exception.SystemException;
  import com.liferay.portal.kernel.util.ProxyUtil;
  import com.liferay.portal.kernel.util.StringBundler;
  import com.liferay.portal.model.BaseModel;
  import com.liferay.portal.model.impl.BaseModelImpl;
  import com.liferay.portal.util.PortalUtil;
  
  import org.opencps.dossiermgt.service.ClpSerializer;
  import org.opencps.dossiermgt.service.DossierTemplateLocalServiceUtil;
  
  import java.io.Serializable;
  
  import java.lang.reflect.Method;
  
  import java.util.Date;
  import java.util.HashMap;
  import java.util.Map;
  
  /**
   * @author trungnt
   */
  public class DossierTemplateClp extends BaseModelImpl<DossierTemplate>
  	implements DossierTemplate {
  	public DossierTemplateClp() {
  	}
  
  	@Override
  	public Class<?> getModelClass() {
  		return DossierTemplate.class;
  	}
  
  	@Override
  	public String getModelClassName() {
  		return DossierTemplate.class.getName();
  	}
  
  	@Override
  	public long getPrimaryKey() {
  		return _dossierTemplateId;
  	}
  
  	@Override
  	public void setPrimaryKey(long primaryKey) {
  		setDossierTemplateId(primaryKey);
  	}
  
  	@Override
  	public Serializable getPrimaryKeyObj() {
  		return _dossierTemplateId;
  	}
  
  	@Override
  	public void setPrimaryKeyObj(Serializable primaryKeyObj) {
  		setPrimaryKey(((Long)primaryKeyObj).longValue());
  	}
  
  	@Override
  	public Map<String, Object> getModelAttributes() {
  		Map<String, Object> attributes = new HashMap<String, Object>();
  
  		attributes.put("dossierTemplateId", getDossierTemplateId());
  		attributes.put("companyId", getCompanyId());
  		attributes.put("groupId", getGroupId());
  		attributes.put("userId", getUserId());
  		attributes.put("createDate", getCreateDate());
  		attributes.put("modifiedDate", getModifiedDate());
  		attributes.put("templateName", getTemplateName());
  		attributes.put("description", getDescription());
  		attributes.put("templateNo", getTemplateNo());
  
  		return attributes;
  	}
  
  	@Override
  	public void setModelAttributes(Map<String, Object> attributes) {
  		Long dossierTemplateId = (Long)attributes.get("dossierTemplateId");
  
  		if (dossierTemplateId != null) {
  			setDossierTemplateId(dossierTemplateId);
  		}
  
  		Long companyId = (Long)attributes.get("companyId");
  
  		if (companyId != null) {
  			setCompanyId(companyId);
  		}
  
  		Long groupId = (Long)attributes.get("groupId");
  
  		if (groupId != null) {
  			setGroupId(groupId);
  		}
  
  		Long userId = (Long)attributes.get("userId");
  
  		if (userId != null) {
  			setUserId(userId);
  		}
  
  		Date createDate = (Date)attributes.get("createDate");
  
  		if (createDate != null) {
  			setCreateDate(createDate);
  		}
  
  		Date modifiedDate = (Date)attributes.get("modifiedDate");
  
  		if (modifiedDate != null) {
  			setModifiedDate(modifiedDate);
  		}
  
  		String templateName = (String)attributes.get("templateName");
  
  		if (templateName != null) {
  			setTemplateName(templateName);
  		}
  
  		String description = (String)attributes.get("description");
  
  		if (description != null) {
  			setDescription(description);
  		}
  
  		String templateNo = (String)attributes.get("templateNo");
  
  		if (templateNo != null) {
  			setTemplateNo(templateNo);
  		}
  	}
  
  	@Override
  	public long getDossierTemplateId() {
  		return _dossierTemplateId;
  	}
  
  	@Override
  	public void setDossierTemplateId(long dossierTemplateId) {
  		_dossierTemplateId = dossierTemplateId;
  
  		if (_dossierTemplateRemoteModel != null) {
  			try {
  				Class<?> clazz = _dossierTemplateRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setDossierTemplateId",
  						long.class);
  
  				method.invoke(_dossierTemplateRemoteModel, dossierTemplateId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public long getCompanyId() {
  		return _companyId;
  	}
  
  	@Override
  	public void setCompanyId(long companyId) {
  		_companyId = companyId;
  
  		if (_dossierTemplateRemoteModel != null) {
  			try {
  				Class<?> clazz = _dossierTemplateRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setCompanyId", long.class);
  
  				method.invoke(_dossierTemplateRemoteModel, companyId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public long getGroupId() {
  		return _groupId;
  	}
  
  	@Override
  	public void setGroupId(long groupId) {
  		_groupId = groupId;
  
  		if (_dossierTemplateRemoteModel != null) {
  			try {
  				Class<?> clazz = _dossierTemplateRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setGroupId", long.class);
  
  				method.invoke(_dossierTemplateRemoteModel, groupId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public long getUserId() {
  		return _userId;
  	}
  
  	@Override
  	public void setUserId(long userId) {
  		_userId = userId;
  
  		if (_dossierTemplateRemoteModel != null) {
  			try {
  				Class<?> clazz = _dossierTemplateRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setUserId", long.class);
  
  				method.invoke(_dossierTemplateRemoteModel, userId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public String getUserUuid() throws SystemException {
  		return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
  	}
  
  	@Override
  	public void setUserUuid(String userUuid) {
  		_userUuid = userUuid;
  	}
  
  	@Override
  	public Date getCreateDate() {
  		return _createDate;
  	}
  
  	@Override
  	public void setCreateDate(Date createDate) {
  		_createDate = createDate;
  
  		if (_dossierTemplateRemoteModel != null) {
  			try {
  				Class<?> clazz = _dossierTemplateRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setCreateDate", Date.class);
  
  				method.invoke(_dossierTemplateRemoteModel, createDate);
  			}
  			catch (Exception e) {
  