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 VirtualHost}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       VirtualHost
024     * @generated
025     */
026    public class VirtualHostWrapper implements VirtualHost {
027            public VirtualHostWrapper(VirtualHost virtualHost) {
028                    _virtualHost = virtualHost;
029            }
030    
031            public Class<?> getModelClass() {
032                    return VirtualHost.class;
033            }
034    
035            public String getModelClassName() {
036                    return VirtualHost.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this virtual host.
041            *
042            * @return the primary key of this virtual host
043            */
044            public long getPrimaryKey() {
045                    return _virtualHost.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this virtual host.
050            *
051            * @param primaryKey the primary key of this virtual host
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _virtualHost.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the virtual host ID of this virtual host.
059            *
060            * @return the virtual host ID of this virtual host
061            */
062            public long getVirtualHostId() {
063                    return _virtualHost.getVirtualHostId();
064            }
065    
066            /**
067            * Sets the virtual host ID of this virtual host.
068            *
069            * @param virtualHostId the virtual host ID of this virtual host
070            */
071            public void setVirtualHostId(long virtualHostId) {
072                    _virtualHost.setVirtualHostId(virtualHostId);
073            }
074    
075            /**
076            * Returns the company ID of this virtual host.
077            *
078            * @return the company ID of this virtual host
079            */
080            public long getCompanyId() {
081                    return _virtualHost.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this virtual host.
086            *
087            * @param companyId the company ID of this virtual host
088            */
089            public void setCompanyId(long companyId) {
090                    _virtualHost.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the layout set ID of this virtual host.
095            *
096            * @return the layout set ID of this virtual host
097            */
098            public long getLayoutSetId() {
099                    return _virtualHost.getLayoutSetId();
100            }
101    
102            /**
103            * Sets the layout set ID of this virtual host.
104            *
105            * @param layoutSetId the layout set ID of this virtual host
106            */
107            public void setLayoutSetId(long layoutSetId) {
108                    _virtualHost.setLayoutSetId(layoutSetId);
109            }
110    
111            /**
112            * Returns the hostname of this virtual host.
113            *
114            * @return the hostname of this virtual host
115            */
116            public java.lang.String getHostname() {
117                    return _virtualHost.getHostname();
118            }
119    
120            /**
121            * Sets the hostname of this virtual host.
122            *
123            * @param hostname the hostname of this virtual host
124            */
125            public void setHostname(java.lang.String hostname) {
126                    _virtualHost.setHostname(hostname);
127            }
128    
129            public boolean isNew() {
130                    return _virtualHost.isNew();
131            }
132    
133            public void setNew(boolean n) {
134                    _virtualHost.setNew(n);
135            }
136    
137            public boolean isCachedModel() {
138                    return _virtualHost.isCachedModel();
139            }
140    
141            public void setCachedModel(boolean cachedModel) {
142                    _virtualHost.setCachedModel(cachedModel);
143            }
144    
145            public boolean isEscapedModel() {
146                    return _virtualHost.isEscapedModel();
147            }
148    
149            public java.io.Serializable getPrimaryKeyObj() {
150                    return _virtualHost.getPrimaryKeyObj();
151            }
152    
153            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
154                    _virtualHost.setPrimaryKeyObj(primaryKeyObj);
155            }
156    
157            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
158                    return _virtualHost.getExpandoBridge();
159            }
160    
161            public void setExpandoBridgeAttributes(
162                    com.liferay.portal.service.ServiceContext serviceContext) {
163                    _virtualHost.setExpandoBridgeAttributes(serviceContext);
164            }
165    
166            @Override
167            public java.lang.Object clone() {
168                    return new VirtualHostWrapper((VirtualHost)_virtualHost.clone());
169            }
170    
171            public int compareTo(com.liferay.portal.model.VirtualHost virtualHost) {
172                    return _virtualHost.compareTo(virtualHost);
173            }
174    
175            @Override
176            public int hashCode() {
177                    return _virtualHost.hashCode();
178            }
179    
180            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.VirtualHost> toCacheModel() {
181                    return _virtualHost.toCacheModel();
182            }
183    
184            public com.liferay.portal.model.VirtualHost toEscapedModel() {
185                    return new VirtualHostWrapper(_virtualHost.toEscapedModel());
186            }
187    
188            @Override
189            public java.lang.String toString() {
190                    return _virtualHost.toString();
191            }
192    
193            public java.lang.String toXmlString() {
194                    return _virtualHost.toXmlString();
195            }
196    
197            public void persist()
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    _virtualHost.persist();
200            }
201    
202            public VirtualHost getWrappedVirtualHost() {
203                    return _virtualHost;
204            }
205    
206            public void resetOriginalValues() {
207                    _virtualHost.resetOriginalValues();
208            }
209    
210            private VirtualHost _virtualHost;
211    }