001    /**
002     * Copyright (c) 2000-2013 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    import java.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link BrowserTracker}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       BrowserTracker
027     * @generated
028     */
029    public class BrowserTrackerWrapper implements BrowserTracker,
030            ModelWrapper<BrowserTracker> {
031            public BrowserTrackerWrapper(BrowserTracker browserTracker) {
032                    _browserTracker = browserTracker;
033            }
034    
035            public Class<?> getModelClass() {
036                    return BrowserTracker.class;
037            }
038    
039            public String getModelClassName() {
040                    return BrowserTracker.class.getName();
041            }
042    
043            public Map<String, Object> getModelAttributes() {
044                    Map<String, Object> attributes = new HashMap<String, Object>();
045    
046                    attributes.put("browserTrackerId", getBrowserTrackerId());
047                    attributes.put("userId", getUserId());
048                    attributes.put("browserKey", getBrowserKey());
049    
050                    return attributes;
051            }
052    
053            public void setModelAttributes(Map<String, Object> attributes) {
054                    Long browserTrackerId = (Long)attributes.get("browserTrackerId");
055    
056                    if (browserTrackerId != null) {
057                            setBrowserTrackerId(browserTrackerId);
058                    }
059    
060                    Long userId = (Long)attributes.get("userId");
061    
062                    if (userId != null) {
063                            setUserId(userId);
064                    }
065    
066                    Long browserKey = (Long)attributes.get("browserKey");
067    
068                    if (browserKey != null) {
069                            setBrowserKey(browserKey);
070                    }
071            }
072    
073            /**
074            * Returns the primary key of this browser tracker.
075            *
076            * @return the primary key of this browser tracker
077            */
078            public long getPrimaryKey() {
079                    return _browserTracker.getPrimaryKey();
080            }
081    
082            /**
083            * Sets the primary key of this browser tracker.
084            *
085            * @param primaryKey the primary key of this browser tracker
086            */
087            public void setPrimaryKey(long primaryKey) {
088                    _browserTracker.setPrimaryKey(primaryKey);
089            }
090    
091            /**
092            * Returns the browser tracker ID of this browser tracker.
093            *
094            * @return the browser tracker ID of this browser tracker
095            */
096            public long getBrowserTrackerId() {
097                    return _browserTracker.getBrowserTrackerId();
098            }
099    
100            /**
101            * Sets the browser tracker ID of this browser tracker.
102            *
103            * @param browserTrackerId the browser tracker ID of this browser tracker
104            */
105            public void setBrowserTrackerId(long browserTrackerId) {
106                    _browserTracker.setBrowserTrackerId(browserTrackerId);
107            }
108    
109            /**
110            * Returns the user ID of this browser tracker.
111            *
112            * @return the user ID of this browser tracker
113            */
114            public long getUserId() {
115                    return _browserTracker.getUserId();
116            }
117    
118            /**
119            * Sets the user ID of this browser tracker.
120            *
121            * @param userId the user ID of this browser tracker
122            */
123            public void setUserId(long userId) {
124                    _browserTracker.setUserId(userId);
125            }
126    
127            /**
128            * Returns the user uuid of this browser tracker.
129            *
130            * @return the user uuid of this browser tracker
131            * @throws SystemException if a system exception occurred
132            */
133            public java.lang.String getUserUuid()
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _browserTracker.getUserUuid();
136            }
137    
138            /**
139            * Sets the user uuid of this browser tracker.
140            *
141            * @param userUuid the user uuid of this browser tracker
142            */
143            public void setUserUuid(java.lang.String userUuid) {
144                    _browserTracker.setUserUuid(userUuid);
145            }
146    
147            /**
148            * Returns the browser key of this browser tracker.
149            *
150            * @return the browser key of this browser tracker
151            */
152            public long getBrowserKey() {
153                    return _browserTracker.getBrowserKey();
154            }
155    
156            /**
157            * Sets the browser key of this browser tracker.
158            *
159            * @param browserKey the browser key of this browser tracker
160            */
161            public void setBrowserKey(long browserKey) {
162                    _browserTracker.setBrowserKey(browserKey);
163            }
164    
165            public boolean isNew() {
166                    return _browserTracker.isNew();
167            }
168    
169            public void setNew(boolean n) {
170                    _browserTracker.setNew(n);
171            }
172    
173            public boolean isCachedModel() {
174                    return _browserTracker.isCachedModel();
175            }
176    
177            public void setCachedModel(boolean cachedModel) {
178                    _browserTracker.setCachedModel(cachedModel);
179            }
180    
181            public boolean isEscapedModel() {
182                    return _browserTracker.isEscapedModel();
183            }
184    
185            public java.io.Serializable getPrimaryKeyObj() {
186                    return _browserTracker.getPrimaryKeyObj();
187            }
188    
189            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
190                    _browserTracker.setPrimaryKeyObj(primaryKeyObj);
191            }
192    
193            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
194                    return _browserTracker.getExpandoBridge();
195            }
196    
197            public void setExpandoBridgeAttributes(
198                    com.liferay.portal.model.BaseModel<?> baseModel) {
199                    _browserTracker.setExpandoBridgeAttributes(baseModel);
200            }
201    
202            public void setExpandoBridgeAttributes(
203                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
204                    _browserTracker.setExpandoBridgeAttributes(expandoBridge);
205            }
206    
207            public void setExpandoBridgeAttributes(
208                    com.liferay.portal.service.ServiceContext serviceContext) {
209                    _browserTracker.setExpandoBridgeAttributes(serviceContext);
210            }
211    
212            @Override
213            public java.lang.Object clone() {
214                    return new BrowserTrackerWrapper((BrowserTracker)_browserTracker.clone());
215            }
216    
217            public int compareTo(com.liferay.portal.model.BrowserTracker browserTracker) {
218                    return _browserTracker.compareTo(browserTracker);
219            }
220    
221            @Override
222            public int hashCode() {
223                    return _browserTracker.hashCode();
224            }
225    
226            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.BrowserTracker> toCacheModel() {
227                    return _browserTracker.toCacheModel();
228            }
229    
230            public com.liferay.portal.model.BrowserTracker toEscapedModel() {
231                    return new BrowserTrackerWrapper(_browserTracker.toEscapedModel());
232            }
233    
234            public com.liferay.portal.model.BrowserTracker toUnescapedModel() {
235                    return new BrowserTrackerWrapper(_browserTracker.toUnescapedModel());
236            }
237    
238            @Override
239            public java.lang.String toString() {
240                    return _browserTracker.toString();
241            }
242    
243            public java.lang.String toXmlString() {
244                    return _browserTracker.toXmlString();
245            }
246    
247            public void persist()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    _browserTracker.persist();
250            }
251    
252            /**
253             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
254             */
255            public BrowserTracker getWrappedBrowserTracker() {
256                    return _browserTracker;
257            }
258    
259            public BrowserTracker getWrappedModel() {
260                    return _browserTracker;
261            }
262    
263            public void resetOriginalValues() {
264                    _browserTracker.resetOriginalValues();
265            }
266    
267            private BrowserTracker _browserTracker;
268    }