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 java.lang.Object clone() {
104         return _resource.clone();
105     }
106 
107     public int compareTo(com.liferay.portal.model.Resource resource) {
108         return _resource.compareTo(resource);
109     }
110 
111     public int hashCode() {
112         return _resource.hashCode();
113     }
114 
115     public java.lang.String toString() {
116         return _resource.toString();
117     }
118 
119     public java.lang.String toXmlString() {
120         return _resource.toXmlString();
121     }
122 
123     public long getCompanyId()
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _resource.getCompanyId();
127     }
128 
129     public java.lang.String getName()
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return _resource.getName();
133     }
134 
135     public int getScope()
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return _resource.getScope();
139     }
140 
141     public void setCompanyId(long companyId) {
142         _resource.setCompanyId(companyId);
143     }
144 
145     public void setName(java.lang.String name) {
146         _resource.setName(name);
147     }
148 
149     public void setScope(int scope) {
150         _resource.setScope(scope);
151     }
152 
153     public Resource getWrappedResource() {
154         return _resource;
155     }
156 
157     private Resource _resource;
158 }