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