All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portlet.expando.model.ExpandoRowWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 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.portlet.expando.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 

* This class is a wrapper for {@link ExpandoRow}. *

* * @author Brian Wing Shun Chan * @see ExpandoRow * @generated */ @ProviderType public class ExpandoRowWrapper implements ExpandoRow, ModelWrapper { public ExpandoRowWrapper(ExpandoRow expandoRow) { _expandoRow = expandoRow; } @Override public Class getModelClass() { return ExpandoRow.class; } @Override public String getModelClassName() { return ExpandoRow.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("rowId", getRowId()); attributes.put("companyId", getCompanyId()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("tableId", getTableId()); attributes.put("classPK", getClassPK()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long rowId = (Long)attributes.get("rowId"); if (rowId != null) { setRowId(rowId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Date modifiedDate = (Date)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } Long tableId = (Long)attributes.get("tableId"); if (tableId != null) { setTableId(tableId); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } } /** * Returns the primary key of this expando row. * * @return the primary key of this expando row */ @Override public long getPrimaryKey() { return _expandoRow.getPrimaryKey(); } /** * Sets the primary key of this expando row. * * @param primaryKey the primary key of this expando row */ @Override public void setPrimaryKey(long primaryKey) { _expandoRow.setPrimaryKey(primaryKey); } /** * Returns the row ID of this expando row. * * @return the row ID of this expando row */ @Override public long getRowId() { return _expandoRow.getRowId(); } /** * Sets the row ID of this expando row. * * @param rowId the row ID of this expando row */ @Override public void setRowId(long rowId) { _expandoRow.setRowId(rowId); } /** * Returns the company ID of this expando row. * * @return the company ID of this expando row */ @Override public long getCompanyId() { return _expandoRow.getCompanyId(); } /** * Sets the company ID of this expando row. * * @param companyId the company ID of this expando row */ @Override public void setCompanyId(long companyId) { _expandoRow.setCompanyId(companyId); } /** * Returns the modified date of this expando row. * * @return the modified date of this expando row */ @Override public java.util.Date getModifiedDate() { return _expandoRow.getModifiedDate(); } /** * Sets the modified date of this expando row. * * @param modifiedDate the modified date of this expando row */ @Override public void setModifiedDate(java.util.Date modifiedDate) { _expandoRow.setModifiedDate(modifiedDate); } /** * Returns the table ID of this expando row. * * @return the table ID of this expando row */ @Override public long getTableId() { return _expandoRow.getTableId(); } /** * Sets the table ID of this expando row. * * @param tableId the table ID of this expando row */ @Override public void setTableId(long tableId) { _expandoRow.setTableId(tableId); } /** * Returns the class p k of this expando row. * * @return the class p k of this expando row */ @Override public long getClassPK() { return _expandoRow.getClassPK(); } /** * Sets the class p k of this expando row. * * @param classPK the class p k of this expando row */ @Override public void setClassPK(long classPK) { _expandoRow.setClassPK(classPK); } @Override public boolean isNew() { return _expandoRow.isNew(); } @Override public void setNew(boolean n) { _expandoRow.setNew(n); } @Override public boolean isCachedModel() { return _expandoRow.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _expandoRow.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _expandoRow.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _expandoRow.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _expandoRow.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _expandoRow.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _expandoRow.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _expandoRow.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _expandoRow.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new ExpandoRowWrapper((ExpandoRow)_expandoRow.clone()); } @Override public int compareTo( com.liferay.portlet.expando.model.ExpandoRow expandoRow) { return _expandoRow.compareTo(expandoRow); } @Override public int hashCode() { return _expandoRow.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _expandoRow.toCacheModel(); } @Override public com.liferay.portlet.expando.model.ExpandoRow toEscapedModel() { return new ExpandoRowWrapper(_expandoRow.toEscapedModel()); } @Override public com.liferay.portlet.expando.model.ExpandoRow toUnescapedModel() { return new ExpandoRowWrapper(_expandoRow.toUnescapedModel()); } @Override public java.lang.String toString() { return _expandoRow.toString(); } @Override public java.lang.String toXmlString() { return _expandoRow.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _expandoRow.persist(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ExpandoRowWrapper)) { return false; } ExpandoRowWrapper expandoRowWrapper = (ExpandoRowWrapper)obj; if (Validator.equals(_expandoRow, expandoRowWrapper._expandoRow)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public ExpandoRow getWrappedExpandoRow() { return _expandoRow; } @Override public ExpandoRow getWrappedModel() { return _expandoRow; } @Override public void resetOriginalValues() { _expandoRow.resetOriginalValues(); } private ExpandoRow _expandoRow; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy