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         Session session = null;
175 
176         try {
177             session = openSession();
178 
179             if (browserTracker.isCachedModel() || BatchSessionUtil.isEnabled()) {
180                 Object staleObject = session.get(BrowserTrackerImpl.class,
181                         browserTracker.getPrimaryKeyObj());
182 
183                 if (staleObject != null) {
184                     session.evict(staleObject);
185                 }
186             }
187 
188             session.delete(browserTracker);
189 
190             session.flush();
191         }
192         catch (Exception e) {
193             throw processException(e);
194         }
195         finally {
196             closeSession(session);
197         }
198 
199         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
200 
201         BrowserTrackerModelImpl browserTrackerModelImpl = (BrowserTrackerModelImpl)browserTracker;
202 
203         FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID,
204             new Object[] { new Long(browserTrackerModelImpl.getOriginalUserId()) });
205 
206         EntityCacheUtil.removeResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
207             BrowserTrackerImpl.class, browserTracker.getPrimaryKey());
208 
209         return browserTracker;
210     }
211 
212     /**
213      * @deprecated Use {@link #update(BrowserTracker, boolean merge)}.
214      */
215     public BrowserTracker update(BrowserTracker browserTracker)
216         throws SystemException {
217         if (_log.isWarnEnabled()) {
218             _log.warn(
219                 "Using the deprecated update(BrowserTracker browserTracker) method. Use update(BrowserTracker browserTracker, boolean merge) instead.");
220         }
221 
222         return update(browserTracker, false);
223     }
224 
225     /**
226      * Add, update, or merge, the entity. This method also calls the model
227      * listeners to trigger the proper events associated with adding, deleting,
228      * or updating an entity.
229      *
230      * @param  browserTracker the entity to add, update, or merge
231      * @param  merge boolean value for whether to merge the entity. The default
232      *         value is false. Setting merge to true is more expensive and
233      *         should only be true when browserTracker is transient. See
234      *         LEP-5473 for a detailed discussion of this method.
235      * @return the entity that was added, updated, or merged
236      */
237     public BrowserTracker update(BrowserTracker browserTracker, boolean merge)
238         throws SystemException {
239         boolean isNew = browserTracker.isNew();
240 
241         for (ModelListener<BrowserTracker> listener : listeners) {
242             if (isNew) {
243                 listener.onBeforeCreate(browserTracker);
244             }
245             else {
246                 listener.onBeforeUpdate(browserTracker);
247             }
248         }
249 
250         browserTracker = updateImpl(browserTracker, merge);
251 
252         for (ModelListener<BrowserTracker> listener : listeners) {
253             if (isNew) {
254                 listener.onAfterCreate(browserTracker);
255             }
256             else {
257                 listener.onAfterUpdate(browserTracker);
258             }
259         }
260 
261         return browserTracker;
262     }
263 
264     public BrowserTracker updateImpl(
265         com.liferay.portal.model.BrowserTracker browserTracker, boolean merge)
266         throws SystemException {
267         boolean isNew = browserTracker.isNew();
268 
269         BrowserTrackerModelImpl browserTrackerModelImpl = (BrowserTrackerModelImpl)browserTracker;
270 
271         Session session = null;
272 
273         try {
274             session = openSession();
275 
276             BatchSessionUtil.update(session, browserTracker, merge);
277 
278             browserTracker.setNew(false);
279         }
280         catch (Exception e) {
281             throw processException(e);
282         }
283         finally {
284             closeSession(session);
285         }
286 
287         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
288 
289         EntityCacheUtil.putResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
290             BrowserTrackerImpl.class, browserTracker.getPrimaryKey(),
291             browserTracker);
292 
293         if (!isNew &&
294                 (browserTracker.getUserId() != browserTrackerModelImpl.getOriginalUserId())) {
295             FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID,
296                 new Object[] {
297                     new Long(browserTrackerModelImpl.getOriginalUserId())
298                 });
299         }
300 
301         if (isNew ||
302                 (browserTracker.getUserId() != browserTrackerModelImpl.getOriginalUserId())) {
303             FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
304                 new Object[] { new Long(browserTracker.getUserId()) },
305                 browserTracker);
306         }
307 
308         return browserTracker;
309     }
310 
311     public BrowserTracker findByPrimaryKey(long browserTrackerId)
312         throws NoSuchBrowserTrackerException, SystemException {
313         BrowserTracker browserTracker = fetchByPrimaryKey(browserTrackerId);
314 
315         if (browserTracker == null) {
316             if (_log.isWarnEnabled()) {
317                 _log.warn("No BrowserTracker exists with the primary key " +
318                     browserTrackerId);
319             }
320 
321             throw new NoSuchBrowserTrackerException(
322                 "No BrowserTracker exists with the primary key " +
323                 browserTrackerId);
324         }
325 
326         return browserTracker;
327     }
328 
329     public BrowserTracker fetchByPrimaryKey(long browserTrackerId)
330         throws SystemException {
331         BrowserTracker browserTracker = (BrowserTracker)EntityCacheUtil.getResult(BrowserTrackerModelImpl.ENTITY_CACHE_ENABLED,
332                 BrowserTrackerImpl.class, browserTrackerId, this);
333 
334         if (browserTracker == null) {
335             Session session = null;
336 
337             try {
338                 session = openSession();
339 
340                 browserTracker = (BrowserTracker)session.get(BrowserTrackerImpl.class,
341                         new Long(browserTrackerId));
342             }
343             catch (Exception e) {
344                 throw processException(e);
345             }
346             finally {
347                 if (browserTracker != null) {
348                     cacheResult(browserTracker);
349                 }
350 
351                 closeSession(session);
352             }
353         }
354 
355         return browserTracker;
356     }
357 
358     public BrowserTracker findByUserId(long userId)
359         throws NoSuchBrowserTrackerException, SystemException {
360         BrowserTracker browserTracker = fetchByUserId(userId);
361 
362         if (browserTracker == null) {
363             StringBuilder msg = new StringBuilder();
364 
365             msg.append("No BrowserTracker exists with the key {");
366 
367             msg.append("userId=" + userId);
368 
369             msg.append(StringPool.CLOSE_CURLY_BRACE);
370 
371             if (_log.isWarnEnabled()) {
372                 _log.warn(msg.toString());
373             }
374 
375             throw new NoSuchBrowserTrackerException(msg.toString());
376         }
377 
378         return browserTracker;
379     }
380 
381     public BrowserTracker fetchByUserId(long userId) throws SystemException {
382         return fetchByUserId(userId, true);
383     }
384 
385     public BrowserTracker fetchByUserId(long userId, boolean retrieveFromCache)
386         throws SystemException {
387         Object[] finderArgs = new Object[] { new Long(userId) };
388 
389         Object result = null;
390 
391         if (retrieveFromCache) {
392             result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_USERID,
393                     finderArgs, this);
394         }
395 
396         if (result == null) {
397             Session session = null;
398 
399             try {
400                 session = openSession();
401 
402                 StringBuilder query = new StringBuilder();
403 
404                 query.append(
405                     "SELECT browserTracker FROM BrowserTracker browserTracker WHERE ");
406 
407                 query.append("browserTracker.userId = ?");
408 
409                 query.append(" ");
410 
411                 Query q = session.createQuery(query.toString());
412 
413                 QueryPos qPos = QueryPos.getInstance(q);
414 
415                 qPos.add(userId);
416 
417                 List<BrowserTracker> list = q.list();
418 
419                 result = list;
420 
421                 BrowserTracker browserTracker = null;
422 
423                 if (list.isEmpty()) {
424                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
425                         finderArgs, list);
426                 }
427                 else {
428                     browserTracker = list.get(0);
429 
430                     cacheResult(browserTracker);
431 
432                     if ((browserTracker.getUserId() != userId)) {
433                         FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
434                             finderArgs, browserTracker);
435                     }
436                 }
437 
438                 return browserTracker;
439             }
440             catch (Exception e) {
441                 throw processException(e);
442             }
443             finally {
444                 if (result == null) {
445                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
446                         finderArgs, new ArrayList<BrowserTracker>());
447                 }
448 
449                 closeSession(session);
450             }
451         }
452         else {
453             if (result instanceof List<?>) {
454                 return null;
455             }
456             else {
457                 return (BrowserTracker)result;
458             }
459         }
460     }
461 
462     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
463         throws SystemException {
464         Session session = null;
465 
466         try {
467             session = openSession();
468 
469             dynamicQuery.compile(session);
470 
471             return dynamicQuery.list();
472         }
473         catch (Exception e) {
474             throw processException(e);
475         }
476         finally {
477             closeSession(session);
478         }
479     }
480 
481     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
482         int start, int end) throws SystemException {
483         Session session = null;
484 
485         try {
486             session = openSession();
487 
488             dynamicQuery.setLimit(start, end);
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<BrowserTracker> findAll() throws SystemException {
503         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
504     }
505 
506     public List<BrowserTracker> findAll(int start, int end)
507         throws SystemException {
508         return findAll(start, end, null);
509     }
510 
511     public List<BrowserTracker> findAll(int start, int end,
512         OrderByComparator obc) throws SystemException {
513         Object[] finderArgs = new Object[] {
514                 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
515             };
516 
517         List<BrowserTracker> list = (List<BrowserTracker>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
518                 finderArgs, this);
519 
520         if (list == null) {
521             Session session = null;
522 
523             try {
524                 session = openSession();
525 
526                 StringBuilder query = new StringBuilder();
527 
528                 query.append(
529                     "SELECT browserTracker FROM BrowserTracker browserTracker ");
530 
531                 if (obc != null) {
532                     query.append("ORDER BY ");
533 
534                     String[] orderByFields = obc.getOrderByFields();
535 
536                     for (int i = 0; i < orderByFields.length; i++) {
537                         query.append("browserTracker.");
538                         query.append(orderByFields[i]);
539 
540                         if (obc.isAscending()) {
541                             query.append(" ASC");
542                         }
543                         else {
544                             query.append(" DESC");
545                         }
546 
547                         if ((i + 1) < orderByFields.length) {
548                             query.append(", ");
549                         }
550                     }
551                 }
552 
553                 Query q = session.createQuery(query.toString());
554 
555                 if (obc == null) {
556                     list = (List<BrowserTracker>)QueryUtil.list(q,
557                             getDialect(), start, end, false);
558 
559                     Collections.sort(list);
560                 }
561                 else {
562                     list = (List<BrowserTracker>)QueryUtil.list(q,
563                             getDialect(), start, end);
564                 }
565             }
566             catch (Exception e) {
567                 throw processException(e);
568             }
569             finally {
570                 if (list == null) {
571                     list = new ArrayList<BrowserTracker>();
572                 }
573 
574                 cacheResult(list);
575 
576                 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
577 
578                 closeSession(session);
579             }
580         }
581 
582         return list;
583     }
584 
585     public void removeByUserId(long userId)
586         throws NoSuchBrowserTrackerException, SystemException {
587         BrowserTracker browserTracker = findByUserId(userId);
588 
589         remove(browserTracker);
590     }
591 
592     public void removeAll() throws SystemException {
593         for (BrowserTracker browserTracker : findAll()) {
594             remove(browserTracker);
595         }
596     }
597 
598     public int countByUserId(long userId) throws SystemException {
599         Object[] finderArgs = new Object[] { new Long(userId) };
600 
601         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_USERID,
602                 finderArgs, this);
603 
604         if (count == null) {
605             Session session = null;
606 
607             try {
608                 session = openSession();
609 
610                 StringBuilder query = new StringBuilder();
611 
612                 query.append("SELECT COUNT(browserTracker) ");
613                 query.append("FROM BrowserTracker browserTracker WHERE ");
614 
615                 query.append("browserTracker.userId = ?");
616 
617                 query.append(" ");
618 
619                 Query q = session.createQuery(query.toString());
620 
621                 QueryPos qPos = QueryPos.getInstance(q);
622 
623                 qPos.add(userId);
624 
625                 count = (Long)q.uniqueResult();
626             }
627             catch (Exception e) {
628                 throw processException(e);
629             }
630             finally {
631                 if (count == null) {
632                     count = Long.valueOf(0);
633                 }
634 
635                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_USERID,
636                     finderArgs, count);
637 
638                 closeSession(session);
639             }
640         }
641 
642         return count.intValue();
643     }
644 
645     public int countAll() throws SystemException {
646         Object[] finderArgs = new Object[0];
647 
648         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
649                 finderArgs, this);
650 
651         if (count == null) {
652             Session session = null;
653 
654             try {
655                 session = openSession();
656 
657                 Query q = session.createQuery(
658                         "SELECT COUNT(browserTracker) FROM BrowserTracker browserTracker");
659 
660                 count = (Long)q.uniqueResult();
661             }
662             catch (Exception e) {
663                 throw processException(e);
664             }
665             finally {
666                 if (count == null) {
667                     count = Long.valueOf(0);
668                 }
669 
670                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
671                     count);
672 
673                 closeSession(session);
674             }
675         }
676 
677         return count.intValue();
678     }
679 
680     public void afterPropertiesSet() {
681         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
682                     com.liferay.portal.util.PropsUtil.get(
683                         "value.object.listener.com.liferay.portal.model.BrowserTracker")));
684 
685         if (listenerClassNames.length > 0) {
686             try {
687                 List<ModelListener<BrowserTracker>> listenersList = new ArrayList<ModelListener<BrowserTracker>>();
688 
689                 for (String listenerClassName : listenerClassNames) {
690                     listenersList.add((ModelListener<BrowserTracker>)Class.forName(
691                             listenerClassName).newInstance());
692                 }
693 
694                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
695             }
696             catch (Exception e) {
697                 _log.error(e);
698             }
699         }
700     }
701 
702     @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
703     protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
704     @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
705     protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
706     @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence.impl")
707     protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
708     @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
709     protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
710     @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
711     protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
712     @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
713     protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
714     @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
715     protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
716     @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
717     protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
718     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
719     protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
720     @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
721     protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
722     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
723     protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
724     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
725     protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
726     @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
727     protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
728     @BeanReference(name = "com.liferay.portal.service.persistence.LockPersistence.impl")
729     protected com.liferay.portal.service.persistence.LockPersistence lockPersistence;
730     @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
731     protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
732     @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
733     protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
734     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
735     protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
736     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
737     protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
738     @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
739     protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
740     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
741     protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
742     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
743     protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
744     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
745     protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
746     @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
747     protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
748     @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
749     protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
750     @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
751     protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
752     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
753     protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
754     @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
755     protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
756     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
757     protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
758     @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
759     protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
760     @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
761     protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
762     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
763     protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
764     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence.impl")
765     protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
766     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
767     protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
768     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence.impl")
769     protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
770     @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
771     protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
772     @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
773     protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
774     @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence.impl")
775     protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
776     @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
777     protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
778     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
779     protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
780     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
781     protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
782     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
783     protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
784     @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
785     protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
786     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
787     protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
788     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
789     protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
790     @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
791     protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
792     @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
793     protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
794     private static Log _log = LogFactoryUtil.getLog(BrowserTrackerPersistenceImpl.class);
795 }