gt: 		ExpandoBridge expandoBridge = getExpandoBridge();
context: /**
   * 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.iucn.whp.dbservice.model.impl;
  
  import com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats;
  import com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreatsModel;
  
  import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
  import com.liferay.portal.kernel.util.GetterUtil;
  import com.liferay.portal.kernel.util.ProxyUtil;
  import com.liferay.portal.kernel.util.StringBundler;
  import com.liferay.portal.kernel.util.StringPool;
  import com.liferay.portal.model.CacheModel;
  import com.liferay.portal.model.impl.BaseModelImpl;
  import com.liferay.portal.service.ServiceContext;
  
  import com.liferay.portlet.expando.model.ExpandoBridge;
  import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
  
  import java.io.Serializable;
  
  import java.sql.Types;
  
  import java.util.HashMap;
  import java.util.Map;
  
  /**
   * The base model implementation for the effective_prot_mgmt_iothreats service. Represents a row in the &quot;whp_effective_prot_mgmt_iothreats&quot; database table, with each column mapped to a property of this class.
   *
   * <p>
   * This implementation and its corresponding interface {@link com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreatsModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link effective_prot_mgmt_iothreatsImpl}.
   * </p>
   *
   * @author alok.sen
   * @see effective_prot_mgmt_iothreatsImpl
   * @see com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats
   * @see com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreatsModel
   * @generated
   */
  public class effective_prot_mgmt_iothreatsModelImpl extends BaseModelImpl<effective_prot_mgmt_iothreats>
  	implements effective_prot_mgmt_iothreatsModel {
  	/*
  	 * NOTE FOR DEVELOPERS:
  	 *
  	 * Never modify or reference this class directly. All methods that expect a effective_prot_mgmt_iothreats model instance should use the {@link com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats} interface instead.
  	 */
  	public static final String TABLE_NAME = "whp_effective_prot_mgmt_iothreats";
  	public static final Object[][] TABLE_COLUMNS = {
  			{ "id_", Types.BIGINT },
  			{ "assessment_version_id", Types.BIGINT },
  			{ "justification", Types.VARCHAR },
  			{ "rating", Types.BIGINT }
  		};
  	public static final String TABLE_SQL_CREATE = "create table whp_effective_prot_mgmt_iothreats (id_ LONG not null primary key,assessment_version_id LONG,justification STRING null,rating LONG)";
  	public static final String TABLE_SQL_DROP = "drop table whp_effective_prot_mgmt_iothreats";
  	public static final String DATA_SOURCE = "liferayDataSource";
  	public static final String SESSION_FACTORY = "liferaySessionFactory";
  	public static final String TX_MANAGER = "liferayTransactionManager";
  	public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
  				"value.object.entity.cache.enabled.com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats"),
  			true);
  	public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
  				"value.object.finder.cache.enabled.com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats"),
  			true);
  	public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
  				"value.object.column.bitmask.enabled.com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats"),
  			true);
  	public static long ASSESSMENT_VERSION_ID_COLUMN_BITMASK = 1L;
  	public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
  				"lock.expiration.time.com.iucn.whp.dbservice.model.effective_prot_mgmt_iothreats"));
  
  	public effective_prot_mgmt_iothreatsModelImpl() {
  	}
  
  	public long getPrimaryKey() {
  		return _id;
  	}
  
  	public void setPrimaryKey(long primaryKey) {
  		setId(primaryKey);
  	}
  
  	public Serializable getPrimaryKeyObj() {
  		return new Long(_id);
  	}
  
  	public void setPrimaryKeyObj(Serializable primaryKeyObj) {
  		setPrimaryKey(((Long)primaryKeyObj).longValue());
  	}
  
  	public Class<?> getModelClass() {
  		return effective_prot_mgmt_iothreats.class;
  	}
  
  	public String getModelClassName() {
  		return effective_prot_mgmt_iothreats.class.getName();
  	}
  
  	@Override
  	public Map<String, Object> getModelAttributes() {
  		Map<String, Object> attributes = new HashMap<String, Object>();
  
  		attributes.put("id", getId());
  		attributes.put("assessment_version_id", getAssessment_version_id());
  		attributes.put("justification", getJustification());
  		attributes.put("rating", getRating());
  
  		return attributes;
  	}
  
  	@Override
  	public void setModelAttributes(Map<String, Object> attributes) {
  		Long id = (Long)attributes.get("id");
  
  		if (id != null) {
  			setId(id);
  		}
  
  		Long assessment_version_id = (Long)attributes.get(
  				"assessment_version_id");
  
  		if (assessment_version_id != null) {
  			setAssessment_version_id(assessment_version_id);
  		}
  
  		String justification = (String)attributes.get("justification");
  
  		if (justification != null) {
  			setJustification(justification);
  		}
  
  		Long rating = (Long)attributes.get("rating");
  
  		if (rating != null) {
  			setRating(rating);
  		}
  	}
  
  	public long getId() {
  		return _id;
  	}
  
  	public void setId(long id) {
  		_id = id;
  	}
  
  	public long getAssessment_version_id() {
  		return _assessment_version_id;
  	}
  
  	public void setAssessment_version_id(long assessment_version_id) {
  		_columnBitmask |= ASSESSMENT_VERSION_ID_COLUMN_BITMASK;
  
  		if (!_setOriginalAssessment_version_id) {
  			_setOriginalAssessment_version_id = true;
  
  			_originalAssessment_version_id = _assessment_version_id;
  		}
  
  		_assessment_version_id = assessment_version_id;
  	}
  
  	public long getOriginalAssessment_version_id() {
  		return _originalAssessment_version_id;
  	}
  
  	public String getJustification() {
  		if (_justification == null) {
  			return StringPool.BLANK;
  		}
  		else {
  			return _justification;
  		}
  	}
  
  	public void setJustification(String justification) {
  		_justification = justification;
  	}
  
  	public long getRating() {
  		return _rating;
  	}
  
  	public void setRating(long rating) {
  		_rating = rating;
  	}
  
  	public long getColumnBitmask() {
  		return _columnBitmask;
  	}
  
  	@Override
  	public ExpandoBridge getExpandoBridge() {
  		return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
  			effective_prot_mgmt_iothreats.class.getName(), getPrimaryKey());
  	}
  
  	@Override
  	public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
  