1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.NoSuchBrowserTrackerException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.BeanReference;
28  import com.liferay.portal.kernel.cache.CacheRegistry;
29  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
30  import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
31  import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
32  import com.liferay.portal.kernel.dao.orm.FinderPath;
33  import com.liferay.portal.kernel.dao.orm.Query;
34  import com.liferay.portal.kernel.dao.orm.QueryPos;
35  import com.liferay.portal.kernel.dao.orm.QueryUtil;
36  import com.liferay.portal.kernel.dao.orm.Session;
37  import com.liferay.portal.kernel.log.Log;
38  import com.liferay.portal.kernel.log.LogFactoryUtil;
39  import com.liferay.portal.kernel.util.GetterUtil;
40  import com.liferay.portal.kernel.util.OrderByComparator;
41  import com.liferay.portal.kernel.util.StringPool;
42  import com.liferay.portal.kernel.util.StringUtil;
43  import com.liferay.portal.model.BrowserTracker;
44  import com.liferay.portal.model.ModelListener;
45  import com.liferay.portal.model.impl.BrowserTrackerImpl;
46  import com.liferay.portal.model.impl.BrowserTrackerModelImpl;
47  import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
48  
49  import java.util.ArrayList;
50  import java.util.Collections;
51  import java.util.List;
52  
53  /**
54   * <a href="BrowserTrackerPersistenceImpl.java.html"><b><i>View Source</i></b></a>
55   *
56   * <p>
57   * ServiceBuilder generated this class. Modifications in this class will be
58   * overwritten the next time is generated.
59   * </p>
60   *
61   * @author    Brian Wing Shun Chan
62   * @see       BrowserTrackerPersistence
63   * @see       BrowserTrackerUtil
64   * @generated
65   */
66  public class BrowserTrackerPersistenceImpl extends BasePersistenceImpl
67      implements BrowserTrackerPersistence {
68      public static final String FINDER_CLASS_NAME_ENTITY = BrowserTrackerImpl.class.getName();
69      public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
70          ".List";
71      public static final FinderPath FINDER_PATH_FETCH_BY_USERID = new FinderPath(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
72              BrowserTrackerModelImpl.FINDER_CACHE_ENABLED,
73              FINDER_CLASS_NAME_ENTITY, "fetchByUserId",
74              new String[] { Long.class.getName() });
75      public static final FinderPath FINDER_PATH_COUNT_BY_USERID = new FinderPath(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
76              BrowserTrackerModelImpl.FINDER_CACHE_ENABLED,
77              FINDER_CLASS_NAME_LIST, "countByUserId",
78              new String[] { Long.class.getName() });
79      public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
80              BrowserTrackerModelImpl.FINDER_CACHE_ENABLED,
81              FINDER_CLASS_NAME_LIST, "findAll", new String[0]);
82      public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
83              BrowserTrackerModelImpl.FINDER_CACHE_ENABLED,
84              FINDER_CLASS_NAME_LIST, "countAll", new String[0]);
85  
86      public void cacheResult(BrowserTracker browserTracker) {
87          EntityCacheUtil.putResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
88              BrowserTrackerImpl.class, browserTracker.getPrimaryKey(),
89              browserTracker);
90  
91          FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
92              new Object[] { new Long(browserTracker.getUserId()) },
93              browserTracker);
94      }
95  
96      public void cacheResult(List<BrowserTracker> browserTrackers) {
97          for (BrowserTracker browserTracker : browserTrackers) {
98              if (EntityCacheUtil.getResult(
99                          BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
100                         BrowserTrackerImpl.class,
101                         browserTracker.getPrimaryKey(), this) == null) {
102                 cacheResult(browserTracker);
103             }
104         }
105     }
106 
107     public void clearCache() {
108         CacheRegistry.clear(BrowserTrackerImpl.class.getName());
109         EntityCacheUtil.clearCache(BrowserTrackerImpl.class.getName());
110         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
111         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
112     }
113 
114     public BrowserTracker create(long browserTrackerId) {
115         BrowserTracker browserTracker = new BrowserTrackerImpl();
116 
117         browserTracker.setNew(true);
118         browserTracker.setPrimaryKey(browserTrackerId);
119 
120         return browserTracker;
121     }
122 
123     public BrowserTracker remove(long browserTrackerId)
124         throws NoSuchBrowserTrackerException, SystemException {
125         Session session = null;
126 
127         try {
128             session = openSession();
129 
130             BrowserTracker browserTracker = (BrowserTracker)session.get(BrowserTrackerImpl.class,
131                     new Long(browserTrackerId));
132 
133             if (browserTracker == null) {
134                 if (_log.isWarnEnabled()) {
135                     _log.warn("No BrowserTracker exists with the primary key " +
136                         browserTrackerId);
137                 }
138 
139                 throw new NoSuchBrowserTrackerException(
140                     "No BrowserTracker exists with the primary key " +
141                     browserTrackerId);
142             }
143 
144             return remove(browserTracker);
145         }
146         catch (NoSuchBrowserTrackerException nsee) {
147             throw nsee;
148         }
149         catch (Exception e) {
150             throw processException(e);
151         }
152         finally {
153             closeSession(session);
154         }
155     }
156 
157     public BrowserTracker remove(BrowserTracker browserTracker)
158         throws SystemException {
159         for (ModelListener<BrowserTracker> listener : listeners) {
160             listener.onBeforeRemove(browserTracker);
161         }
162 
163         browserTracker = removeImpl(browserTracker);
164 
165         for (ModelListener<BrowserTracker> listener : listeners) {
166             listener.onAfterRemove(browserTracker);
167         }
168 
169         return browserTracker;
170     }
171 
172     protected BrowserTracker removeImpl(BrowserTracker browserTracker)
173         throws SystemException {
174         browserTracker = toUnwrappedModel(browserTracker);
175 
176         Session session = null;
177 
178         try {
179             session = openSession();
180 
181             if (browserTracker.isCachedModel() || BatchSessionUtil.isEnabled()) {
182                 Object staleObject = session.get(BrowserTrackerImpl.class,
183                         browserTracker.getPrimaryKeyObj());
184 
185                 if (staleObject != null) {
186                     session.evict(staleObject);
187                 }
188             }
189 
190             session.delete(browserTracker);
191 
192             session.flush();
193         }
194         catch (Exception e) {
195             throw processException(e);
196         }
197         finally {
198             closeSession(session);
199         }
200 
201         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
202 
203         BrowserTrackerModelImpl browserTrackerModelImpl = (BrowserTrackerModelImpl)browserTracker;
204 
205         FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID,
206             new Object[] { new Long(browserTrackerModelImpl.getOriginalUserId()) });
207 
208         EntityCacheUtil.removeResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
209             BrowserTrackerImpl.class, browserTracker.getPrimaryKey());
210 
211         return browserTracker;
212     }
213 
214     /**
215      * @deprecated Use {@link #update(BrowserTracker, boolean merge)}.
216      */
217     public BrowserTracker update(BrowserTracker browserTracker)
218         throws SystemException {
219         if (_log.isWarnEnabled()) {
220             _log.warn(
221                 "Using the deprecated update(BrowserTracker browserTracker) method. Use update(BrowserTracker browserTracker, boolean merge) instead.");
222         }
223 
224         return update(browserTracker, false);
225     }
226 
227     /**
228      * Add, update, or merge, the entity. This method also calls the model
229      * listeners to trigger the proper events associated with adding, deleting,
230      * or updating an entity.
231      *
232      * @param  browserTracker the entity to add, update, or merge
233      * @param  merge boolean value for whether to merge the entity. The default
234      *         value is false. Setting merge to true is more expensive and
235      *         should only be true when browserTracker is transient. See
236      *         LEP-5473 for a detailed discussion of this method.
237      * @return the entity that was added, updated, or merged
238      */
239     public BrowserTracker update(BrowserTracker browserTracker, boolean merge)
240         throws SystemException {
241         boolean isNew = browserTracker.isNew();
242 
243         for (ModelListener<BrowserTracker> listener : listeners) {
244             if (isNew) {
245                 listener.onBeforeCreate(browserTracker);
246             }
247             else {
248                 listener.onBeforeUpdate(browserTracker);
249             }
250         }
251 
252         browserTracker = updateImpl(browserTracker, merge);
253 
254         for (ModelListener<BrowserTracker> listener : listeners) {
255             if (isNew) {
256                 listener.onAfterCreate(browserTracker);
257             }
258             else {
259                 listener.onAfterUpdate(browserTracker);
260             }
261         }
262 
263         return browserTracker;
264     }
265 
266     public BrowserTracker updateImpl(
267         com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
268         throws SystemException {
269         browserTracker = toUnwrappedModel(browserTracker);
270 
271         boolean isNew = browserTracker.isNew();
272 
273         BrowserTrackerModelImpl browserTrackerModelImpl = (BrowserTrackerModelImpl)browserTracker;
274 
275         Session session = null;
276 
277         try {
278             session = openSession();
279 
280             BatchSessionUtil.update(session, browserTracker, merge);
281 
282             browserTracker.setNew(false);
283         }
284         catch (Exception e) {
285             throw processException(e);
286         }
287         finally {
288             closeSession(session);
289         }
290 
291         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
292 
293         EntityCacheUtil.putResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
294             BrowserTrackerImpl.class, browserTracker.getPrimaryKey(),
295             browserTracker);
296 
297         if (!isNew &&
298                 (browserTracker.getUserId() != browserTrackerModelImpl.getOriginalUserId())) {
299             FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID,
300                 new Object[] {
301                     new Long(browserTrackerModelImpl.getOriginalUserId())
302                 });
303         }
304 
305         if (isNew ||
306                 (browserTracker.getUserId() != browserTrackerModelImpl.getOriginalUserId())) {
307             FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
308                 new Object[] { new Long(browserTracker.getUserId()) },
309                 browserTracker);
310         }
311 
312         return browserTracker;
313     }
314 
315     protected BrowserTracker toUnwrappedModel(BrowserTracker browserTracker) {
316         if (browserTracker instanceof BrowserTrackerImpl) {
317             return browserTracker;
318         }
319 
320         BrowserTrackerImpl browserTrackerImpl = new BrowserTrackerImpl();
321 
322         browserTrackerImpl.setNew(browserTracker.isNew());
323         browserTrackerImpl.setPrimaryKey(browserTracker.getPrimaryKey());
324 
325         browserTrackerImpl.setBrowserTrackerId(browserTracker.getBrowserTrackerId());
326         browserTrackerImpl.setUserId(browserTracker.getUserId());
327         browserTrackerImpl.setBrowserKey(browserTracker.getBrowserKey());
328 
329         return browserTrackerImpl;
330     }
331 
332     public BrowserTracker findByPrimaryKey(long browserTrackerId)
333         throws NoSuchBrowserTrackerException, SystemException {
334         BrowserTracker browserTracker = fetchByPrimaryKey(browserTrackerId);
335 
336         if (browserTracker == null) {
337             if (_log.isWarnEnabled()) {
338                 _log.warn("No BrowserTracker exists with the primary key " +
339                     browserTrackerId);
340             }
341 
342             throw new NoSuchBrowserTrackerException(
343                 "No BrowserTracker exists with the primary key " +
344                 browserTrackerId);
345         }
346 
347         return browserTracker;
348     }
349 
350     public BrowserTracker fetchByPrimaryKey(long browserTrackerId)
351         throws SystemException {
352         BrowserTracker browserTracker = (BrowserTracker)EntityCacheUtil.getResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
353                 BrowserTrackerImpl.class, browserTrackerId, this);
354 
355         if (browserTracker == null) {
356             Session session = null;
357 
358             try {
359                 session = openSession();
360 
361                 browserTracker = (BrowserTracker)session.get(BrowserTrackerImpl.class,
362                         new Long(browserTrackerId));
363             }
364             catch (Exception e) {
365                 throw processException(e);
366             }
367             finally {
368                 if (browserTracker != null) {
369                     cacheResult(browserTracker);
370                 }
371 
372                 closeSession(session);
373             }
374         }
375 
376         return browserTracker;
377     }
378 
379     public BrowserTracker findByUserId(long userId)
380         throws NoSuchBrowserTrackerException, SystemException {
381         BrowserTracker browserTracker = fetchByUserId(userId);
382 
383         if (browserTracker == null) {
384             StringBuilder msg = new StringBuilder();
385 
386             msg.append("No BrowserTracker exists with the key {");
387 
388             msg.append("userId=" + userId);
389 
390             msg.append(StringPool.CLOSE_CURLY_BRACE);
391 
392             if (_log.isWarnEnabled()) {
393                 _log.warn(msg.toString());
394             }
395 
396             throw new NoSuchBrowserTrackerException(msg.toString());
397         }
398 
399         return browserTracker;
400     }
401 
402     public BrowserTracker fetchByUserId(long userId) throws SystemException {
403         return fetchByUserId(userId, true);
404     }
405 
406     public BrowserTracker fetchByUserId(long userId, boolean retrieveFromCache)
407         throws SystemException {
408         Object[] finderArgs = new Object[] { new Long(userId) };
409 
410         Object result = null;
411 
412         if (retrieveFromCache) {
413             result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_USERID,
414                     finderArgs, this);
415         }
416 
417         if (result == null) {
418             Session session = null;
419 
420             try {
421                 session = openSession();
422 
423                 StringBuilder query = new StringBuilder();
424 
425                 query.append(
426                     "SELECT browserTracker FROM BrowserTracker browserTracker WHERE ");
427 
428                 query.append("browserTracker.userId = ?");
429 
430                 query.append(" ");
431 
432                 Query q = session.createQuery(query.toString());
433 
434                 QueryPos qPos = QueryPos.getInstance(q);
435 
436                 qPos.add(userId);
437 
438                 List<BrowserTracker> list = q.list();
439 
440                 result = list;
441 
442                 BrowserTracker browserTracker = null;
443 
444                 if (list.isEmpty()) {
445                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
446                         finderArgs, list);
447                 }
448                 else {
449                     browserTracker = list.get(0);
450 
451                     cacheResult(browserTracker);
452 
453                     if ((browserTracker.getUserId() != userId)) {
454                         FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
455                             finderArgs, browserTracker);
456                     }
457                 }
458 
459                 return browserTracker;
460             }
461             catch (Exception e) {
462                 throw processException(e);
463             }
464             finally {
465                 if (result == null) {
466                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
467                         finderArgs, new ArrayList<BrowserTracker>());
468                 }
469 
470                 closeSession(session);
471             }
472         }
473         else {
474             if (result instanceof List<?>) {
475                 return null;
476             }
477             else {
478                 return (BrowserTracker)result;
479             }
480         }
481     }
482 
483     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
484         throws SystemException {
485         Session session = null;
486 
487         try {
488             session = openSession();
489 
490             dynamicQuery.compile(session);
491 
492             return dynamicQuery.list();
493         }
494         catch (Exception e) {
495             throw processException(e);
496         }
497         finally {
498             closeSession(session);
499         }
500     }
501 
502     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
503         int start, int end) throws SystemException {
504         Session session = null;
505 
506         try {
507             session = openSession();
508 
509             dynamicQuery.setLimit(start, end);
510 
511             dynamicQuery.compile(session);
512 
513             return dynamicQuery.list();
514         }
515         catch (Exception e) {
516             throw processException(e);
517         }
518         finally {
519             closeSession(session);
520         }
521     }
522 
523     public List<BrowserTracker> findAll() throws SystemException {
524         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
525     }
526 
527     public List<BrowserTracker> findAll(int start, int end)
528         throws SystemException {
529         return findAll(start, end, null);
530     }
531 
532     public List<BrowserTracker> findAll(int start, int end,
533         OrderByComparator obc) throws SystemException {
534         Object[] finderArgs = new Object[] {
535                 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
536             };
537 
538         List<BrowserTracker> list = (List<BrowserTracker>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
539                 finderArgs, this);
540 
541         if (list == null) {
542             Session session = null;
543 
544             try {
545                 session = openSession();
546 
547                 StringBuilder query = new StringBuilder();
548 
549                 query.append(
550                     "SELECT browserTracker FROM BrowserTracker browserTracker ");
551 
552                 if (obc != null) {
553                     query.append("ORDER BY ");
554 
555                     String[] orderByFields = obc.getOrderByFields();
556 
557                     for (int i = 0; i < orderByFields.length; i++) {
558                         query.append("browserTracker.");
559                         query.append(orderByFields[i]);
560 
561                         if (obc.isAscending()) {
562                             query.append(" ASC");
563                         }
564                         else {
565                             query.append(" DESC");
566                         }
567 
568                         if ((i + 1) < orderByFields.length) {
569                             query.append(", ");
570                         }
571                     }
572                 }
573 
574                 Query q = session.createQuery(query.toString());
575 
576                 if (obc == null) {
577                     list = (List<BrowserTracker>)QueryUtil.list(q,
578                             getDialect(), start, end, false);
579 
580                     Collections.sort(list);
581                 }
582                 else {
583                     list = (List<BrowserTracker>)QueryUtil.list(q,
584                             getDialect(), start, end);
585                 }
586             }
587             catch (Exception e) {
588                 throw processException(e);
589             }
590             finally {
591                 if (list == null) {
592                     list = new ArrayList<BrowserTracker>();
593                 }
594 
595                 cacheResult(list);
596 
597                 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
598 
599                 closeSession(session);
600             }
601         }
602 
603         return list;
604     }
605 
606     public void removeByUserId(long userId)
607         throws NoSuchBrowserTrackerException, SystemException {
608         BrowserTracker browserTracker = findByUserId(userId);
609 
610         remove(browserTracker);
611     }
612 
613     public void removeAll() throws SystemException {
614         for (BrowserTracker browserTracker : findAll()) {
615             remove(browserTracker);
616         }
617     }
618 
619     public int countByUserId(long userId) throws SystemException {
620         Object[] finderArgs = new Object[] { new Long(userId) };
621 
622         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_USERID,
623                 finderArgs, this);
624 
625         if (count == null) {
626             Session session = null;
627 
628             try {
629                 session = openSession();
630 
631                 StringBuilder query = new StringBuilder();
632 
633                 query.append("SELECT COUNT(browserTracker) ");
634                 query.append("FROM BrowserTracker browserTracker WHERE ");
635 
636                 query.append("browserTracker.userId = ?");
637 
638                 query.append(" ");
639 
640                 Query q = session.createQuery(query.toString());
641 
642                 QueryPos qPos = QueryPos.getInstance(q);
643 
644                 qPos.add(userId);
645 
646                 count = (Long)q.uniqueResult();
647             }
648             catch (Exception e) {
649                 throw processException(e);
650             }
651             finally {
652                 if (count == null) {
653                     count = Long.valueOf(0);
654                 }
655 
656                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_USERID,
657                     finderArgs, count);
658 
659                 closeSession(session);
660             }
661         }
662 
663         return count.intValue();
664     }
665 
666     public int countAll() throws SystemException {
667         Object[] finderArgs = new Object[0];
668 
669         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
670                 finderArgs, this);
671 
672         if (count == null) {
673             Session session = null;
674 
675             try {
676                 session = openSession();
677 
678                 Query q = session.createQuery(
679                         "SELECT COUNT(browserTracker) FROM BrowserTracker browserTracker");
680 
681                 count = (Long)q.uniqueResult();
682             }
683             catch (Exception e) {
684                 throw processException(e);
685             }
686             finally {
687                 if (count == null) {
688                     count = Long.valueOf(0);
689                 }
690 
691                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
692                     count);
693 
694                 closeSession(session);
695             }
696         }
697 
698         return count.intValue();
699     }
700 
701     public void afterPropertiesSet() {
702         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
703                     com.liferay.portal.util.PropsUtil.get(
704                         "value.object.listener.com.liferay.portal.model.BrowserTracker")));
705 
706         if (listenerClassNames.length > 0) {
707             try {
708                 List<ModelListener<BrowserTracker>> listenersList = new ArrayList<ModelListener<BrowserTracker>>();
709 
710                 for (String listenerClassName : listenerClassNames) {
711                     listenersList.add((ModelListener<BrowserTracker>)Class.forName(
712                             listenerClassName).newInstance());
713                 }
714 
715                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
716             }
717             catch (Exception e) {
718                 _log.error(e);
719             }
720         }
721     }
722 
723     @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
724     protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
725     @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
726     protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
727     @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence.impl")
728     protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
729     @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
730     protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
731     @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
732     protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
733     @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
734     protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
735     @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
736     protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
737     @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
738     protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
739     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
740     protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
741     @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
742     protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
743     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
744     protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
745     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
746     protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
747     @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
748     protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
749     @BeanReference(name = "com.liferay.portal.service.persistence.LockPersistence.impl")
750     protected com.liferay.portal.service.persistence.LockPersistence lockPersistence;
751     @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
752     protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
753     @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
754     protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
755     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
756     protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
757     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
758     protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
759     @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
760     protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
761     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
762     protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
763     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
764     protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
765     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
766     protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
767     @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
768     protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
769     @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
770     protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
771     @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
772     protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
773     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
774     protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
775     @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
776     protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
777     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
778     protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
779     @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
780     protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
781     @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
782     protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
783     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
784     protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
785     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence.impl")
786     protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
787     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
788     protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
789     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence.impl")
790     protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
791     @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
792     protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
793     @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
794     protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
795     @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence.impl")
796     protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
797     @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
798     protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
799     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
800     protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
801     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
802     protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
803     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.impl")
804     protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence;
805     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
806     protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
807     @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
808     protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
809     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
810     protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
811     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
812     protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
813     @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
814     protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
815     @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
816     protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
817     private static Log _log = LogFactoryUtil.getLog(BrowserTrackerPersistenceImpl.class);
818 }