001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ServiceComponent}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ServiceComponent
024     * @generated
025     */
026    public class ServiceComponentWrapper implements ServiceComponent {
027            public ServiceComponentWrapper(ServiceComponent serviceComponent) {
028                    _serviceComponent = serviceComponent;
029            }
030    
031            public Class<?> getModelClass() {
032                    return ServiceComponent.class;
033            }
034    
035            public String getModelClassName() {
036                    return ServiceComponent.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this service component.
041            *
042            * @return the primary key of this service component
043            */
044            public long getPrimaryKey() {
045                    return _serviceComponent.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this service component.
050            *
051            * @param primaryKey the primary key of this service component
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _serviceComponent.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the service component ID of this service component.
059            *
060            * @return the service component ID of this service component
061            */
062            public long getServiceComponentId() {
063                    return _serviceComponent.getServiceComponentId();
064            }
065    
066            /**
067            * Sets the service component ID of this service component.
068            *
069            * @param serviceComponentId the service component ID of this service component
070            */
071            public void setServiceComponentId(long serviceComponentId) {
072                    _serviceComponent.setServiceComponentId(serviceComponentId);
073            }
074    
075            /**
076            * Returns the build namespace of this service component.
077            *
078            * @return the build namespace of this service component
079            */
080            public java.lang.String getBuildNamespace() {
081                    return _serviceComponent.getBuildNamespace();
082            }
083    
084            /**
085            * Sets the build namespace of this service component.
086            *
087            * @param buildNamespace the build namespace of this service component
088            */
089            public void setBuildNamespace(java.lang.String buildNamespace) {
090                    _serviceComponent.setBuildNamespace(buildNamespace);
091            }
092    
093            /**
094            * Returns the build number of this service component.
095            *
096            * @return the build number of this service component
097            */
098            public long getBuildNumber() {
099                    return _serviceComponent.getBuildNumber();
100            }
101    
102            /**
103            * Sets the build number of this service component.
104            *
105            * @param buildNumber the build number of this service component
106            */
107            public void setBuildNumber(long buildNumber) {
108                    _serviceComponent.setBuildNumber(buildNumber);
109            }
110    
111            /**
112            * Returns the build date of this service component.
113            *
114            * @return the build date of this service component
115            */
116            public long getBuildDate() {
117                    return _serviceComponent.getBuildDate();
118            }
119    
120            /**
121            * Sets the build date of this service component.
122            *
123            * @param buildDate the build date of this service component
124            */
125            public void setBuildDate(long buildDate) {
126                    _serviceComponent.setBuildDate(buildDate);
127            }
128    
129            /**
130            * Returns the data of this service component.
131            *
132            * @return the data of this service component
133            */
134            public java.lang.String getData() {
135                    return _serviceComponent.getData();
136            }
137    
138            /**
139            * Sets the data of this service component.
140            *
141            * @param data the data of this service component
142            */
143            public void setData(java.lang.String data) {
144                    _serviceComponent.setData(data);
145            }
146    
147            public boolean isNew() {
148                    return _serviceComponent.isNew();
149            }
150    
151            public void setNew(boolean n) {
152                    _serviceComponent.setNew(n);
153            }
154    
155            public boolean isCachedModel() {
156                    return _serviceComponent.isCachedModel();
157            }
158    
159            public void setCachedModel(boolean cachedModel) {
160                    _serviceComponent.setCachedModel(cachedModel);
161            }
162    
163            public boolean isEscapedModel() {
164                    return _serviceComponent.isEscapedModel();
165            }
166    
167            public java.io.Serializable getPrimaryKeyObj() {
168                    return _serviceComponent.getPrimaryKeyObj();
169            }
170    
171            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
172                    _serviceComponent.setPrimaryKeyObj(primaryKeyObj);
173            }
174    
175            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
176                    return _serviceComponent.getExpandoBridge();
177            }
178    
179            public void setExpandoBridgeAttributes(
180                    com.liferay.portal.service.ServiceContext serviceContext) {
181                    _serviceComponent.setExpandoBridgeAttributes(serviceContext);
182            }
183    
184            @Override
185            public java.lang.Object clone() {
186                    return new ServiceComponentWrapper((ServiceComponent)_serviceComponent.clone());
187            }
188    
189            public int compareTo(
190                    com.liferay.portal.model.ServiceComponent serviceComponent) {
191                    return _serviceComponent.compareTo(serviceComponent);
192            }
193    
194            @Override
195            public int hashCode() {
196                    return _serviceComponent.hashCode();
197            }
198    
199            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ServiceComponent> toCacheModel() {
200                    return _serviceComponent.toCacheModel();
201            }
202    
203            public com.liferay.portal.model.ServiceComponent toEscapedModel() {
204                    return new ServiceComponentWrapper(_serviceComponent.toEscapedModel());
205            }
206    
207            @Override
208            public java.lang.String toString() {
209                    return _serviceComponent.toString();
210            }
211    
212            public java.lang.String toXmlString() {
213                    return _serviceComponent.toXmlString();
214            }
215    
216            public void persist()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    _serviceComponent.persist();
219            }
220    
221            public java.lang.String getTablesSQL() {
222                    return _serviceComponent.getTablesSQL();
223            }
224    
225            public java.lang.String getSequencesSQL() {
226                    return _serviceComponent.getSequencesSQL();
227            }
228    
229            public java.lang.String getIndexesSQL() {
230                    return _serviceComponent.getIndexesSQL();
231            }
232    
233            public ServiceComponent getWrappedServiceComponent() {
234                    return _serviceComponent;
235            }
236    
237            public void resetOriginalValues() {
238                    _serviceComponent.resetOriginalValues();
239            }
240    
241            private ServiceComponent _serviceComponent;
242    }