001    /**
002     * Copyright (c) 2000-2010 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.service.persistence;
016    
017    import com.liferay.portal.model.BrowserTracker;
018    
019    /**
020     * The persistence interface for the browser tracker service.
021     *
022     * <p>
023     * Never modify or reference this interface directly. Always use {@link BrowserTrackerUtil} to access the browser tracker persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see BrowserTrackerPersistenceImpl
032     * @see BrowserTrackerUtil
033     * @generated
034     */
035    public interface BrowserTrackerPersistence extends BasePersistence<BrowserTracker> {
036            /**
037            * Caches the browser tracker in the entity cache if it is enabled.
038            *
039            * @param browserTracker the browser tracker to cache
040            */
041            public void cacheResult(
042                    com.liferay.portal.model.BrowserTracker browserTracker);
043    
044            /**
045            * Caches the browser trackers in the entity cache if it is enabled.
046            *
047            * @param browserTrackers the browser trackers to cache
048            */
049            public void cacheResult(
050                    java.util.List<com.liferay.portal.model.BrowserTracker> browserTrackers);
051    
052            /**
053            * Creates a new browser tracker with the primary key. Does not add the browser tracker to the database.
054            *
055            * @param browserTrackerId the primary key for the new browser tracker
056            * @return the new browser tracker
057            */
058            public com.liferay.portal.model.BrowserTracker create(long browserTrackerId);
059    
060            /**
061            * Removes the browser tracker with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param browserTrackerId the primary key of the browser tracker to remove
064            * @return the browser tracker that was removed
065            * @throws com.liferay.portal.NoSuchBrowserTrackerException if a browser tracker with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portal.model.BrowserTracker remove(long browserTrackerId)
069                    throws com.liferay.portal.NoSuchBrowserTrackerException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public com.liferay.portal.model.BrowserTracker updateImpl(
073                    com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            /**
077            * Finds the browser tracker with the primary key or throws a {@link com.liferay.portal.NoSuchBrowserTrackerException} if it could not be found.
078            *
079            * @param browserTrackerId the primary key of the browser tracker to find
080            * @return the browser tracker
081            * @throws com.liferay.portal.NoSuchBrowserTrackerException if a browser tracker with the primary key could not be found
082            * @throws SystemException if a system exception occurred
083            */
084            public com.liferay.portal.model.BrowserTracker findByPrimaryKey(
085                    long browserTrackerId)
086                    throws com.liferay.portal.NoSuchBrowserTrackerException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            /**
090            * Finds the browser tracker with the primary key or returns <code>null</code> if it could not be found.
091            *
092            * @param browserTrackerId the primary key of the browser tracker to find
093            * @return the browser tracker, or <code>null</code> if a browser tracker with the primary key could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portal.model.BrowserTracker fetchByPrimaryKey(
097                    long browserTrackerId)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Finds the browser tracker where userId = &#63; or throws a {@link com.liferay.portal.NoSuchBrowserTrackerException} if it could not be found.
102            *
103            * @param userId the user id to search with
104            * @return the matching browser tracker
105            * @throws com.liferay.portal.NoSuchBrowserTrackerException if a matching browser tracker could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.BrowserTracker findByUserId(long userId)
109                    throws com.liferay.portal.NoSuchBrowserTrackerException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds the browser tracker where userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
114            *
115            * @param userId the user id to search with
116            * @return the matching browser tracker, or <code>null</code> if a matching browser tracker could not be found
117            * @throws SystemException if a system exception occurred
118            */
119            public com.liferay.portal.model.BrowserTracker fetchByUserId(long userId)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            /**
123            * Finds the browser tracker where userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
124            *
125            * @param userId the user id to search with
126            * @return the matching browser tracker, or <code>null</code> if a matching browser tracker could not be found
127            * @throws SystemException if a system exception occurred
128            */
129            public com.liferay.portal.model.BrowserTracker fetchByUserId(long userId,
130                    boolean retrieveFromCache)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds all the browser trackers.
135            *
136            * @return the browser trackers
137            * @throws SystemException if a system exception occurred
138            */
139            public java.util.List<com.liferay.portal.model.BrowserTracker> findAll()
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            /**
143            * Finds a range of all the browser trackers.
144            *
145            * <p>
146            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
147            * </p>
148            *
149            * @param start the lower bound of the range of browser trackers to return
150            * @param end the upper bound of the range of browser trackers to return (not inclusive)
151            * @return the range of browser trackers
152            * @throws SystemException if a system exception occurred
153            */
154            public java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
155                    int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            /**
159            * Finds an ordered range of all the browser trackers.
160            *
161            * <p>
162            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
163            * </p>
164            *
165            * @param start the lower bound of the range of browser trackers to return
166            * @param end the upper bound of the range of browser trackers to return (not inclusive)
167            * @param orderByComparator the comparator to order the results by
168            * @return the ordered range of browser trackers
169            * @throws SystemException if a system exception occurred
170            */
171            public java.util.List<com.liferay.portal.model.BrowserTracker> findAll(
172                    int start, int end,
173                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Removes the browser tracker where userId = &#63; from the database.
178            *
179            * @param userId the user id to search with
180            * @throws SystemException if a system exception occurred
181            */
182            public void removeByUserId(long userId)
183                    throws com.liferay.portal.NoSuchBrowserTrackerException,
184                            com.liferay.portal.kernel.exception.SystemException;
185    
186            /**
187            * Removes all the browser trackers from the database.
188            *
189            * @throws SystemException if a system exception occurred
190            */
191            public void removeAll()
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Counts all the browser trackers where userId = &#63;.
196            *
197            * @param userId the user id to search with
198            * @return the number of matching browser trackers
199            * @throws SystemException if a system exception occurred
200            */
201            public int countByUserId(long userId)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            /**
205            * Counts all the browser trackers.
206            *
207            * @return the number of browser trackers
208            * @throws SystemException if a system exception occurred
209            */
210            public int countAll()
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    }