--- /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.cartable.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link DlLink}.
+ * </p>
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see DlLink
+ * @generated
+ */
+public class DlLinkWrapper implements DlLink, ModelWrapper<DlLink> {
+ public DlLinkWrapper(DlLink dlLink) {
+ _dlLink = dlLink;
+ }
+
+ public Class<?> getModelClass() {
+ return DlLink.class;
+ }
+
+ public String getModelClassName() {
+ return DlLink.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("dlLinkId", getDlLinkId());
+ attributes.put("sourceId", getSourceId());
+ attributes.put("targetId", getTargetId());
+ attributes.put("type", getType());
+ attributes.put("sourceOriginPortlet", getSourceOriginPortlet());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long dlLinkId = (Long)attributes.get("dlLinkId");
+
+ if (dlLinkId != null) {
+ setDlLinkId(dlLinkId);
+ }
+
+ Long sourceId = (Long)attributes.get("sourceId");
+
+ if (sourceId != null) {
+ setSourceId(sourceId);
+ }
+
+ Long targetId = (Long)attributes.get("targetId");
+
+ if (targetId != null) {
+ setTargetId(targetId);
+ }
+
+ String type = (String)attributes.get("type");
+
+ if (type != null) {
+ setType(type);
+ }
+
+ String sourceOriginPortlet = (String)attributes.get(
+ "sourceOriginPortlet");
+
+ if (sourceOriginPortlet != null) {
+ setSourceOriginPortlet(sourceOriginPortlet);
+ }
+ }
+
+ /**
+ * Returns the primary key of this dl link.
+ *
+ * @return the primary key of this dl link
+ */
+ public long getPrimaryKey() {
+ return _dlLink.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this dl link.
+ *
+ * @param primaryKey the primary key of this dl link
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _dlLink.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the dl link ID of this dl link.
+ *
+ * @return the dl link ID of this dl link
+ */
+ public long getDlLinkId() {
+ return _dlLink.getDlLinkId();
+ }
+
+ /**
+ * Sets the dl link ID of this dl link.
+ *
+ * @param dlLinkId the dl link ID of this dl link
+ */
+ public void setDlLinkId(long dlLinkId) {
+ _dlLink.setDlLinkId(dlLinkId);
+ }
+
+ /**
+ * Returns the source ID of this dl link.
+ *
+ * @return the source ID of this dl link
+ */
+ public long getSourceId() {
+ return _dlLink.getSourceId();
+ }
+
+ /**
+ * Sets the source ID of this dl link.
+ *
+ * @param sourceId the source ID of this dl link
+ */
+ public void setSourceId(long sourceId) {
+ _dlLink.setSourceId(sourceId);
+ }
+
+ /**
+ * Returns the target ID of this dl link.
+ *
+ * @return the target ID of this dl link
+ */
+ public long getTargetId() {
+ return _dlLink.getTargetId();
+ }
+
+ /**
+ * Sets the target ID of this dl link.
+ *
+ * @param targetId the target ID of this dl link
+ */
+ public void setTargetId(long targetId) {
+ _dlLink.setTargetId(targetId);
+ }
+
+ /**
+ * Returns the type of this dl link.
+ *
+ * @return the type of this dl link
+ */
+ public java.lang.String getType() {
+ return _dlLink.getType();
+ }
+
+ /**
+ * Sets the type of this dl link.
+ *
+ * @param type the type of this dl link
+ */
+ public void setType(java.lang.String type) {
+ _dlLink.setType(type);
+ }
+
+ /**
+ * Returns the source origin portlet of this dl link.
+ *
+ * @return the source origin portlet of this dl link
+ */
+ public java.lang.String getSourceOriginPortlet() {
+ return _dlLink.getSourceOriginPortlet();
+ }
+
+ /**
+ * Sets the source origin portlet of this dl link.
+ *
+ * @param sourceOriginPortlet the source origin portlet of this dl link
+ */
+ public void setSourceOriginPortlet(java.lang.String sourceOriginPortlet) {
+ _dlLink.setSourceOriginPortlet(sourceOriginPortlet);
+ }
+
+ public boolean isNew() {
+ return _dlLink.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _dlLink.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _dlLink.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _dlLink.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _dlLink.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _dlLink.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _dlLink.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _dlLink.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _dlLink.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new DlLinkWrapper((DlLink)_dlLink.clone());
+ }
+
+ public int compareTo(com.pentila.entSavoie.cartable.model.DlLink dlLink) {
+ return _dlLink.compareTo(dlLink);
+ }
+
+ @Override
+ public int hashCode() {
+ return _dlLink.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.cartable.model.DlLink> toCacheModel() {
+ return _dlLink.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.cartable.model.DlLink toEscapedModel() {
+ return new DlLinkWrapper(_dlLink.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _dlLink.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _dlLink.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _dlLink.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public DlLink getWrappedDlLink() {
+ return _dlLink;
+ }
+
+ public DlLink getWrappedModel() {
+ return _dlLink;
+ }
+
+ public void resetOriginalValues() {
+ _dlLink.resetOriginalValues();
+ }
+
+ private DlLink _dlLink;
+}
\ No newline at end of file