--- /dev/null
+/**
+ * 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.pentila.entSavoie.cantine.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link CantineAliment}.
+ * </p>
+ *
+ * @author Mathieu Amblard
+ * @see CantineAliment
+ * @generated
+ */
+public class CantineAlimentWrapper implements CantineAliment,
+ ModelWrapper<CantineAliment> {
+ public CantineAlimentWrapper(CantineAliment cantineAliment) {
+ _cantineAliment = cantineAliment;
+ }
+
+ public Class<?> getModelClass() {
+ return CantineAliment.class;
+ }
+
+ public String getModelClassName() {
+ return CantineAliment.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("alimentId", getAlimentId());
+ attributes.put("familleAlimentId", getFamilleAlimentId());
+ attributes.put("nomAliment", getNomAliment());
+ attributes.put("protide", getProtide());
+ attributes.put("lipide", getLipide());
+ attributes.put("glucide", getGlucide());
+ attributes.put("calcium", getCalcium());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long alimentId = (Long)attributes.get("alimentId");
+
+ if (alimentId != null) {
+ setAlimentId(alimentId);
+ }
+
+ Long familleAlimentId = (Long)attributes.get("familleAlimentId");
+
+ if (familleAlimentId != null) {
+ setFamilleAlimentId(familleAlimentId);
+ }
+
+ String nomAliment = (String)attributes.get("nomAliment");
+
+ if (nomAliment != null) {
+ setNomAliment(nomAliment);
+ }
+
+ Double protide = (Double)attributes.get("protide");
+
+ if (protide != null) {
+ setProtide(protide);
+ }
+
+ Double lipide = (Double)attributes.get("lipide");
+
+ if (lipide != null) {
+ setLipide(lipide);
+ }
+
+ Double glucide = (Double)attributes.get("glucide");
+
+ if (glucide != null) {
+ setGlucide(glucide);
+ }
+
+ Double calcium = (Double)attributes.get("calcium");
+
+ if (calcium != null) {
+ setCalcium(calcium);
+ }
+ }
+
+ /**
+ * Returns the primary key of this cantine aliment.
+ *
+ * @return the primary key of this cantine aliment
+ */
+ public long getPrimaryKey() {
+ return _cantineAliment.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this cantine aliment.
+ *
+ * @param primaryKey the primary key of this cantine aliment
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _cantineAliment.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the aliment ID of this cantine aliment.
+ *
+ * @return the aliment ID of this cantine aliment
+ */
+ public long getAlimentId() {
+ return _cantineAliment.getAlimentId();
+ }
+
+ /**
+ * Sets the aliment ID of this cantine aliment.
+ *
+ * @param alimentId the aliment ID of this cantine aliment
+ */
+ public void setAlimentId(long alimentId) {
+ _cantineAliment.setAlimentId(alimentId);
+ }
+
+ /**
+ * Returns the famille aliment ID of this cantine aliment.
+ *
+ * @return the famille aliment ID of this cantine aliment
+ */
+ public long getFamilleAlimentId() {
+ return _cantineAliment.getFamilleAlimentId();
+ }
+
+ /**
+ * Sets the famille aliment ID of this cantine aliment.
+ *
+ * @param familleAlimentId the famille aliment ID of this cantine aliment
+ */
+ public void setFamilleAlimentId(long familleAlimentId) {
+ _cantineAliment.setFamilleAlimentId(familleAlimentId);
+ }
+
+ /**
+ * Returns the nom aliment of this cantine aliment.
+ *
+ * @return the nom aliment of this cantine aliment
+ */
+ public java.lang.String getNomAliment() {
+ return _cantineAliment.getNomAliment();
+ }
+
+ /**
+ * Sets the nom aliment of this cantine aliment.
+ *
+ * @param nomAliment the nom aliment of this cantine aliment
+ */
+ public void setNomAliment(java.lang.String nomAliment) {
+ _cantineAliment.setNomAliment(nomAliment);
+ }
+
+ /**
+ * Returns the protide of this cantine aliment.
+ *
+ * @return the protide of this cantine aliment
+ */
+ public double getProtide() {
+ return _cantineAliment.getProtide();
+ }
+
+ /**
+ * Sets the protide of this cantine aliment.
+ *
+ * @param protide the protide of this cantine aliment
+ */
+ public void setProtide(double protide) {
+ _cantineAliment.setProtide(protide);
+ }
+
+ /**
+ * Returns the lipide of this cantine aliment.
+ *
+ * @return the lipide of this cantine aliment
+ */
+ public double getLipide() {
+ return _cantineAliment.getLipide();
+ }
+
+ /**
+ * Sets the lipide of this cantine aliment.
+ *
+ * @param lipide the lipide of this cantine aliment
+ */
+ public void setLipide(double lipide) {
+ _cantineAliment.setLipide(lipide);
+ }
+
+ /**
+ * Returns the glucide of this cantine aliment.
+ *
+ * @return the glucide of this cantine aliment
+ */
+ public double getGlucide() {
+ return _cantineAliment.getGlucide();
+ }
+
+ /**
+ * Sets the glucide of this cantine aliment.
+ *
+ * @param glucide the glucide of this cantine aliment
+ */
+ public void setGlucide(double glucide) {
+ _cantineAliment.setGlucide(glucide);
+ }
+
+ /**
+ * Returns the calcium of this cantine aliment.
+ *
+ * @return the calcium of this cantine aliment
+ */
+ public double getCalcium() {
+ return _cantineAliment.getCalcium();
+ }
+
+ /**
+ * Sets the calcium of this cantine aliment.
+ *
+ * @param calcium the calcium of this cantine aliment
+ */
+ public void setCalcium(double calcium) {
+ _cantineAliment.setCalcium(calcium);
+ }
+
+ public boolean isNew() {
+ return _cantineAliment.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _cantineAliment.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _cantineAliment.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _cantineAliment.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _cantineAliment.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _cantineAliment.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _cantineAliment.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _cantineAliment.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _cantineAliment.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new CantineAlimentWrapper((CantineAliment)_cantineAliment.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.cantine.model.CantineAliment cantineAliment) {
+ return _cantineAliment.compareTo(cantineAliment);
+ }
+
+ @Override
+ public int hashCode() {
+ return _cantineAliment.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.cantine.model.CantineAliment> toCacheModel() {
+ return _cantineAliment.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.cantine.model.CantineAliment toEscapedModel() {
+ return new CantineAlimentWrapper(_cantineAliment.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _cantineAliment.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _cantineAliment.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _cantineAliment.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public CantineAliment getWrappedCantineAliment() {
+ return _cantineAliment;
+ }
+
+ public CantineAliment getWrappedModel() {
+ return _cantineAliment;
+ }
+
+ public void resetOriginalValues() {
+ _cantineAliment.resetOriginalValues();
+ }
+
+ private CantineAliment _cantineAliment;
+}
\ No newline at end of file