--- /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 CantineRecette}.
+ * </p>
+ *
+ * @author Mathieu Amblard
+ * @see CantineRecette
+ * @generated
+ */
+public class CantineRecetteWrapper implements CantineRecette,
+ ModelWrapper<CantineRecette> {
+ public CantineRecetteWrapper(CantineRecette cantineRecette) {
+ _cantineRecette = cantineRecette;
+ }
+
+ public Class<?> getModelClass() {
+ return CantineRecette.class;
+ }
+
+ public String getModelClassName() {
+ return CantineRecette.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("recetteId", getRecetteId());
+ attributes.put("userId", getUserId());
+ attributes.put("typeRecette", getTypeRecette());
+ attributes.put("categorieRecetteId", getCategorieRecetteId());
+ attributes.put("titreRecette", getTitreRecette());
+ attributes.put("effectif", getEffectif());
+ attributes.put("methode", getMethode());
+ attributes.put("haccp", getHaccp());
+ attributes.put("isSuggestToDepartement", getIsSuggestToDepartement());
+ attributes.put("imageId", getImageId());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long recetteId = (Long)attributes.get("recetteId");
+
+ if (recetteId != null) {
+ setRecetteId(recetteId);
+ }
+
+ Long userId = (Long)attributes.get("userId");
+
+ if (userId != null) {
+ setUserId(userId);
+ }
+
+ String typeRecette = (String)attributes.get("typeRecette");
+
+ if (typeRecette != null) {
+ setTypeRecette(typeRecette);
+ }
+
+ Long categorieRecetteId = (Long)attributes.get("categorieRecetteId");
+
+ if (categorieRecetteId != null) {
+ setCategorieRecetteId(categorieRecetteId);
+ }
+
+ String titreRecette = (String)attributes.get("titreRecette");
+
+ if (titreRecette != null) {
+ setTitreRecette(titreRecette);
+ }
+
+ Integer effectif = (Integer)attributes.get("effectif");
+
+ if (effectif != null) {
+ setEffectif(effectif);
+ }
+
+ String methode = (String)attributes.get("methode");
+
+ if (methode != null) {
+ setMethode(methode);
+ }
+
+ String haccp = (String)attributes.get("haccp");
+
+ if (haccp != null) {
+ setHaccp(haccp);
+ }
+
+ Boolean isSuggestToDepartement = (Boolean)attributes.get(
+ "isSuggestToDepartement");
+
+ if (isSuggestToDepartement != null) {
+ setIsSuggestToDepartement(isSuggestToDepartement);
+ }
+
+ Long imageId = (Long)attributes.get("imageId");
+
+ if (imageId != null) {
+ setImageId(imageId);
+ }
+ }
+
+ /**
+ * Returns the primary key of this cantine recette.
+ *
+ * @return the primary key of this cantine recette
+ */
+ public long getPrimaryKey() {
+ return _cantineRecette.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this cantine recette.
+ *
+ * @param primaryKey the primary key of this cantine recette
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _cantineRecette.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the recette ID of this cantine recette.
+ *
+ * @return the recette ID of this cantine recette
+ */
+ public long getRecetteId() {
+ return _cantineRecette.getRecetteId();
+ }
+
+ /**
+ * Sets the recette ID of this cantine recette.
+ *
+ * @param recetteId the recette ID of this cantine recette
+ */
+ public void setRecetteId(long recetteId) {
+ _cantineRecette.setRecetteId(recetteId);
+ }
+
+ /**
+ * Returns the user ID of this cantine recette.
+ *
+ * @return the user ID of this cantine recette
+ */
+ public long getUserId() {
+ return _cantineRecette.getUserId();
+ }
+
+ /**
+ * Sets the user ID of this cantine recette.
+ *
+ * @param userId the user ID of this cantine recette
+ */
+ public void setUserId(long userId) {
+ _cantineRecette.setUserId(userId);
+ }
+
+ /**
+ * Returns the user uuid of this cantine recette.
+ *
+ * @return the user uuid of this cantine recette
+ * @throws SystemException if a system exception occurred
+ */
+ public java.lang.String getUserUuid()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _cantineRecette.getUserUuid();
+ }
+
+ /**
+ * Sets the user uuid of this cantine recette.
+ *
+ * @param userUuid the user uuid of this cantine recette
+ */
+ public void setUserUuid(java.lang.String userUuid) {
+ _cantineRecette.setUserUuid(userUuid);
+ }
+
+ /**
+ * Returns the type recette of this cantine recette.
+ *
+ * @return the type recette of this cantine recette
+ */
+ public java.lang.String getTypeRecette() {
+ return _cantineRecette.getTypeRecette();
+ }
+
+ /**
+ * Sets the type recette of this cantine recette.
+ *
+ * @param typeRecette the type recette of this cantine recette
+ */
+ public void setTypeRecette(java.lang.String typeRecette) {
+ _cantineRecette.setTypeRecette(typeRecette);
+ }
+
+ /**
+ * Returns the categorie recette ID of this cantine recette.
+ *
+ * @return the categorie recette ID of this cantine recette
+ */
+ public long getCategorieRecetteId() {
+ return _cantineRecette.getCategorieRecetteId();
+ }
+
+ /**
+ * Sets the categorie recette ID of this cantine recette.
+ *
+ * @param categorieRecetteId the categorie recette ID of this cantine recette
+ */
+ public void setCategorieRecetteId(long categorieRecetteId) {
+ _cantineRecette.setCategorieRecetteId(categorieRecetteId);
+ }
+
+ /**
+ * Returns the titre recette of this cantine recette.
+ *
+ * @return the titre recette of this cantine recette
+ */
+ public java.lang.String getTitreRecette() {
+ return _cantineRecette.getTitreRecette();
+ }
+
+ /**
+ * Sets the titre recette of this cantine recette.
+ *
+ * @param titreRecette the titre recette of this cantine recette
+ */
+ public void setTitreRecette(java.lang.String titreRecette) {
+ _cantineRecette.setTitreRecette(titreRecette);
+ }
+
+ /**
+ * Returns the effectif of this cantine recette.
+ *
+ * @return the effectif of this cantine recette
+ */
+ public int getEffectif() {
+ return _cantineRecette.getEffectif();
+ }
+
+ /**
+ * Sets the effectif of this cantine recette.
+ *
+ * @param effectif the effectif of this cantine recette
+ */
+ public void setEffectif(int effectif) {
+ _cantineRecette.setEffectif(effectif);
+ }
+
+ /**
+ * Returns the methode of this cantine recette.
+ *
+ * @return the methode of this cantine recette
+ */
+ public java.lang.String getMethode() {
+ return _cantineRecette.getMethode();
+ }
+
+ /**
+ * Sets the methode of this cantine recette.
+ *
+ * @param methode the methode of this cantine recette
+ */
+ public void setMethode(java.lang.String methode) {
+ _cantineRecette.setMethode(methode);
+ }
+
+ /**
+ * Returns the haccp of this cantine recette.
+ *
+ * @return the haccp of this cantine recette
+ */
+ public java.lang.String getHaccp() {
+ return _cantineRecette.getHaccp();
+ }
+
+ /**
+ * Sets the haccp of this cantine recette.
+ *
+ * @param haccp the haccp of this cantine recette
+ */
+ public void setHaccp(java.lang.String haccp) {
+ _cantineRecette.setHaccp(haccp);
+ }
+
+ /**
+ * Returns the is suggest to departement of this cantine recette.
+ *
+ * @return the is suggest to departement of this cantine recette
+ */
+ public boolean getIsSuggestToDepartement() {
+ return _cantineRecette.getIsSuggestToDepartement();
+ }
+
+ /**
+ * Returns <code>true</code> if this cantine recette is is suggest to departement.
+ *
+ * @return <code>true</code> if this cantine recette is is suggest to departement; <code>false</code> otherwise
+ */
+ public boolean isIsSuggestToDepartement() {
+ return _cantineRecette.isIsSuggestToDepartement();
+ }
+
+ /**
+ * Sets whether this cantine recette is is suggest to departement.
+ *
+ * @param isSuggestToDepartement the is suggest to departement of this cantine recette
+ */
+ public void setIsSuggestToDepartement(boolean isSuggestToDepartement) {
+ _cantineRecette.setIsSuggestToDepartement(isSuggestToDepartement);
+ }
+
+ /**
+ * Returns the image ID of this cantine recette.
+ *
+ * @return the image ID of this cantine recette
+ */
+ public long getImageId() {
+ return _cantineRecette.getImageId();
+ }
+
+ /**
+ * Sets the image ID of this cantine recette.
+ *
+ * @param imageId the image ID of this cantine recette
+ */
+ public void setImageId(long imageId) {
+ _cantineRecette.setImageId(imageId);
+ }
+
+ public boolean isNew() {
+ return _cantineRecette.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _cantineRecette.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _cantineRecette.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _cantineRecette.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _cantineRecette.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _cantineRecette.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _cantineRecette.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _cantineRecette.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _cantineRecette.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new CantineRecetteWrapper((CantineRecette)_cantineRecette.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.cantine.model.CantineRecette cantineRecette) {
+ return _cantineRecette.compareTo(cantineRecette);
+ }
+
+ @Override
+ public int hashCode() {
+ return _cantineRecette.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.cantine.model.CantineRecette> toCacheModel() {
+ return _cantineRecette.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.cantine.model.CantineRecette toEscapedModel() {
+ return new CantineRecetteWrapper(_cantineRecette.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _cantineRecette.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _cantineRecette.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _cantineRecette.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public CantineRecette getWrappedCantineRecette() {
+ return _cantineRecette;
+ }
+
+ public CantineRecette getWrappedModel() {
+ return _cantineRecette;
+ }
+
+ public void resetOriginalValues() {
+ _cantineRecette.resetOriginalValues();
+ }
+
+ private CantineRecette _cantineRecette;
+}
\ No newline at end of file