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