001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model.impl;
016    
017    import com.liferay.portal.kernel.util.StringBundler;
018    import com.liferay.portal.model.BrowserTracker;
019    import com.liferay.portal.model.CacheModel;
020    
021    import java.io.Serializable;
022    
023    /**
024     * The cache model class for representing BrowserTracker in entity cache.
025     *
026     * @author Brian Wing Shun Chan
027     * @see BrowserTracker
028     * @generated
029     */
030    public class BrowserTrackerCacheModel implements CacheModel<BrowserTracker>,
031            Serializable {
032            @Override
033            public String toString() {
034                    StringBundler sb = new StringBundler(7);
035    
036                    sb.append("{browserTrackerId=");
037                    sb.append(browserTrackerId);
038                    sb.append(", userId=");
039                    sb.append(userId);
040                    sb.append(", browserKey=");
041                    sb.append(browserKey);
042                    sb.append("}");
043    
044                    return sb.toString();
045            }
046    
047            public BrowserTracker toEntityModel() {
048                    BrowserTrackerImpl browserTrackerImpl = new BrowserTrackerImpl();
049    
050                    browserTrackerImpl.setBrowserTrackerId(browserTrackerId);
051                    browserTrackerImpl.setUserId(userId);
052                    browserTrackerImpl.setBrowserKey(browserKey);
053    
054                    browserTrackerImpl.resetOriginalValues();
055    
056                    return browserTrackerImpl;
057            }
058    
059            public long browserTrackerId;
060            public long userId;
061            public long browserKey;
062    }