--- /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.cdt.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link HomeworkDone}.
+ * </p>
+ *
+ * @author Cedric Lecarpentier
+ * @see HomeworkDone
+ * @generated
+ */
+public class HomeworkDoneWrapper implements HomeworkDone,
+ ModelWrapper<HomeworkDone> {
+ public HomeworkDoneWrapper(HomeworkDone homeworkDone) {
+ _homeworkDone = homeworkDone;
+ }
+
+ public Class<?> getModelClass() {
+ return HomeworkDone.class;
+ }
+
+ public String getModelClassName() {
+ return HomeworkDone.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("homeworkDoneId", getHomeworkDoneId());
+ attributes.put("homeworkId", getHomeworkId());
+ attributes.put("groupId", getGroupId());
+ attributes.put("studentId", getStudentId());
+ attributes.put("isDone", getIsDone());
+ attributes.put("isSent", getIsSent());
+ attributes.put("sentFileId", getSentFileId());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long homeworkDoneId = (Long)attributes.get("homeworkDoneId");
+
+ if (homeworkDoneId != null) {
+ setHomeworkDoneId(homeworkDoneId);
+ }
+
+ Long homeworkId = (Long)attributes.get("homeworkId");
+
+ if (homeworkId != null) {
+ setHomeworkId(homeworkId);
+ }
+
+ Long groupId = (Long)attributes.get("groupId");
+
+ if (groupId != null) {
+ setGroupId(groupId);
+ }
+
+ Long studentId = (Long)attributes.get("studentId");
+
+ if (studentId != null) {
+ setStudentId(studentId);
+ }
+
+ Boolean isDone = (Boolean)attributes.get("isDone");
+
+ if (isDone != null) {
+ setIsDone(isDone);
+ }
+
+ Boolean isSent = (Boolean)attributes.get("isSent");
+
+ if (isSent != null) {
+ setIsSent(isSent);
+ }
+
+ Long sentFileId = (Long)attributes.get("sentFileId");
+
+ if (sentFileId != null) {
+ setSentFileId(sentFileId);
+ }
+ }
+
+ /**
+ * Returns the primary key of this homework done.
+ *
+ * @return the primary key of this homework done
+ */
+ public long getPrimaryKey() {
+ return _homeworkDone.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this homework done.
+ *
+ * @param primaryKey the primary key of this homework done
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _homeworkDone.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the homework done ID of this homework done.
+ *
+ * @return the homework done ID of this homework done
+ */
+ public long getHomeworkDoneId() {
+ return _homeworkDone.getHomeworkDoneId();
+ }
+
+ /**
+ * Sets the homework done ID of this homework done.
+ *
+ * @param homeworkDoneId the homework done ID of this homework done
+ */
+ public void setHomeworkDoneId(long homeworkDoneId) {
+ _homeworkDone.setHomeworkDoneId(homeworkDoneId);
+ }
+
+ /**
+ * Returns the homework ID of this homework done.
+ *
+ * @return the homework ID of this homework done
+ */
+ public long getHomeworkId() {
+ return _homeworkDone.getHomeworkId();
+ }
+
+ /**
+ * Sets the homework ID of this homework done.
+ *
+ * @param homeworkId the homework ID of this homework done
+ */
+ public void setHomeworkId(long homeworkId) {
+ _homeworkDone.setHomeworkId(homeworkId);
+ }
+
+ /**
+ * Returns the group ID of this homework done.
+ *
+ * @return the group ID of this homework done
+ */
+ public long getGroupId() {
+ return _homeworkDone.getGroupId();
+ }
+
+ /**
+ * Sets the group ID of this homework done.
+ *
+ * @param groupId the group ID of this homework done
+ */
+ public void setGroupId(long groupId) {
+ _homeworkDone.setGroupId(groupId);
+ }
+
+ /**
+ * Returns the student ID of this homework done.
+ *
+ * @return the student ID of this homework done
+ */
+ public long getStudentId() {
+ return _homeworkDone.getStudentId();
+ }
+
+ /**
+ * Sets the student ID of this homework done.
+ *
+ * @param studentId the student ID of this homework done
+ */
+ public void setStudentId(long studentId) {
+ _homeworkDone.setStudentId(studentId);
+ }
+
+ /**
+ * Returns the is done of this homework done.
+ *
+ * @return the is done of this homework done
+ */
+ public boolean getIsDone() {
+ return _homeworkDone.getIsDone();
+ }
+
+ /**
+ * Returns <code>true</code> if this homework done is is done.
+ *
+ * @return <code>true</code> if this homework done is is done; <code>false</code> otherwise
+ */
+ public boolean isIsDone() {
+ return _homeworkDone.isIsDone();
+ }
+
+ /**
+ * Sets whether this homework done is is done.
+ *
+ * @param isDone the is done of this homework done
+ */
+ public void setIsDone(boolean isDone) {
+ _homeworkDone.setIsDone(isDone);
+ }
+
+ /**
+ * Returns the is sent of this homework done.
+ *
+ * @return the is sent of this homework done
+ */
+ public boolean getIsSent() {
+ return _homeworkDone.getIsSent();
+ }
+
+ /**
+ * Returns <code>true</code> if this homework done is is sent.
+ *
+ * @return <code>true</code> if this homework done is is sent; <code>false</code> otherwise
+ */
+ public boolean isIsSent() {
+ return _homeworkDone.isIsSent();
+ }
+
+ /**
+ * Sets whether this homework done is is sent.
+ *
+ * @param isSent the is sent of this homework done
+ */
+ public void setIsSent(boolean isSent) {
+ _homeworkDone.setIsSent(isSent);
+ }
+
+ /**
+ * Returns the sent file ID of this homework done.
+ *
+ * @return the sent file ID of this homework done
+ */
+ public long getSentFileId() {
+ return _homeworkDone.getSentFileId();
+ }
+
+ /**
+ * Sets the sent file ID of this homework done.
+ *
+ * @param sentFileId the sent file ID of this homework done
+ */
+ public void setSentFileId(long sentFileId) {
+ _homeworkDone.setSentFileId(sentFileId);
+ }
+
+ public boolean isNew() {
+ return _homeworkDone.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _homeworkDone.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _homeworkDone.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _homeworkDone.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _homeworkDone.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _homeworkDone.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _homeworkDone.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _homeworkDone.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _homeworkDone.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new HomeworkDoneWrapper((HomeworkDone)_homeworkDone.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.cdt.model.HomeworkDone homeworkDone) {
+ return _homeworkDone.compareTo(homeworkDone);
+ }
+
+ @Override
+ public int hashCode() {
+ return _homeworkDone.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.cdt.model.HomeworkDone> toCacheModel() {
+ return _homeworkDone.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.cdt.model.HomeworkDone toEscapedModel() {
+ return new HomeworkDoneWrapper(_homeworkDone.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _homeworkDone.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _homeworkDone.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _homeworkDone.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public HomeworkDone getWrappedHomeworkDone() {
+ return _homeworkDone;
+ }
+
+ public HomeworkDone getWrappedModel() {
+ return _homeworkDone;
+ }
+
+ public void resetOriginalValues() {
+ _homeworkDone.resetOriginalValues();
+ }
+
+ private HomeworkDone _homeworkDone;
+}
\ No newline at end of file