1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  
18  /**
19   * <a href="ResourceSoap.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link Resource}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       Resource
32   * @generated
33   */
34  public class ResourceWrapper implements Resource {
35      public ResourceWrapper(Resource resource) {
36          _resource = resource;
37      }
38  
39      public long getPrimaryKey() {
40          return _resource.getPrimaryKey();
41      }
42  
43      public void setPrimaryKey(long pk) {
44          _resource.setPrimaryKey(pk);
45      }
46  
47      public long getResourceId() {
48          return _resource.getResourceId();
49      }
50  
51      public void setResourceId(long resourceId) {
52          _resource.setResourceId(resourceId);
53      }
54  
55      public long getCodeId() {
56          return _resource.getCodeId();
57      }
58  
59      public void setCodeId(long codeId) {
60          _resource.setCodeId(codeId);
61      }
62  
63      public java.lang.String getPrimKey() {
64          return _resource.getPrimKey();
65      }
66  
67      public void setPrimKey(java.lang.String primKey) {
68          _resource.setPrimKey(primKey);
69      }
70  
71      public com.liferay.portal.model.Resource toEscapedModel() {
72          return _resource.toEscapedModel();
73      }
74  
75      public boolean isNew() {
76          return _resource.isNew();
77      }
78  
79      public boolean setNew(boolean n) {
80          return _resource.setNew(n);
81      }
82  
83      public boolean isCachedModel() {
84          return _resource.isCachedModel();
85      }
86  
87      public void setCachedModel(boolean cachedModel) {
88          _resource.setCachedModel(cachedModel);
89      }
90  
91      public boolean isEscapedModel() {
92          return _resource.isEscapedModel();
93      }
94  
95      public void setEscapedModel(boolean escapedModel) {
96          _resource.setEscapedModel(escapedModel);
97      }
98  
99      public java.io.Serializable getPrimaryKeyObj() {
100         return _resource.getPrimaryKeyObj();
101     }
102 
103     public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
104         return _resource.getExpandoBridge();
105     }
106 
107     public void setExpandoBridgeAttributes(
108         com.liferay.portal.service.ServiceContext serviceContext) {
109         _resource.setExpandoBridgeAttributes(serviceContext);
110     }
111 
112     public java.lang.Object clone() {
113         return _resource.clone();
114     }
115 
116     public int compareTo(com.liferay.portal.model.Resource resource) {
117         return _resource.compareTo(resource);
118     }
119 
120     public int hashCode() {
121         return _resource.hashCode();
122     }
123 
124     public java.lang.String toString() {
125         return _resource.toString();
126     }
127 
128     public java.lang.String toXmlString() {
129         return _resource.toXmlString();
130     }
131 
132     public long getCompanyId()
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         return _resource.getCompanyId();
136     }
137 
138     public java.lang.String getName()
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         return _resource.getName();
142     }
143 
144     public int getScope()
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return _resource.getScope();
148     }
149 
150     public void setCompanyId(long companyId) {
151         _resource.setCompanyId(companyId);
152     }
153 
154     public void setName(java.lang.String name) {
155         _resource.setName(name);
156     }
157 
158     public void setScope(int scope) {
159         _resource.setScope(scope);
160     }
161 
162     public Resource getWrappedResource() {
163         return _resource;
164     }
165 
166     private Resource _resource;
167 }