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.NoSuchPasswordTrackerException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.BeanReference;
28  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29  import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
30  import com.liferay.portal.kernel.dao.orm.Query;
31  import com.liferay.portal.kernel.dao.orm.QueryPos;
32  import com.liferay.portal.kernel.dao.orm.QueryUtil;
33  import com.liferay.portal.kernel.dao.orm.Session;
34  import com.liferay.portal.kernel.log.Log;
35  import com.liferay.portal.kernel.log.LogFactoryUtil;
36  import com.liferay.portal.kernel.util.GetterUtil;
37  import com.liferay.portal.kernel.util.OrderByComparator;
38  import com.liferay.portal.kernel.util.StringPool;
39  import com.liferay.portal.kernel.util.StringUtil;
40  import com.liferay.portal.model.ModelListener;
41  import com.liferay.portal.model.PasswordTracker;
42  import com.liferay.portal.model.impl.PasswordTrackerImpl;
43  import com.liferay.portal.model.impl.PasswordTrackerModelImpl;
44  import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
45  
46  import java.util.ArrayList;
47  import java.util.Collections;
48  import java.util.Iterator;
49  import java.util.List;
50  
51  /**
52   * <a href="PasswordTrackerPersistenceImpl.java.html"><b><i>View Source</i></b></a>
53   *
54   * @author Brian Wing Shun Chan
55   *
56   */
57  public class PasswordTrackerPersistenceImpl extends BasePersistenceImpl
58      implements PasswordTrackerPersistence {
59      public PasswordTracker create(long passwordTrackerId) {
60          PasswordTracker passwordTracker = new PasswordTrackerImpl();
61  
62          passwordTracker.setNew(true);
63          passwordTracker.setPrimaryKey(passwordTrackerId);
64  
65          return passwordTracker;
66      }
67  
68      public PasswordTracker remove(long passwordTrackerId)
69          throws NoSuchPasswordTrackerException, SystemException {
70          Session session = null;
71  
72          try {
73              session = openSession();
74  
75              PasswordTracker passwordTracker = (PasswordTracker)session.get(PasswordTrackerImpl.class,
76                      new Long(passwordTrackerId));
77  
78              if (passwordTracker == null) {
79                  if (_log.isWarnEnabled()) {
80                      _log.warn("No PasswordTracker exists with the primary key " +
81                          passwordTrackerId);
82                  }
83  
84                  throw new NoSuchPasswordTrackerException(
85                      "No PasswordTracker exists with the primary key " +
86                      passwordTrackerId);
87              }
88  
89              return remove(passwordTracker);
90          }
91          catch (NoSuchPasswordTrackerException nsee) {
92              throw nsee;
93          }
94          catch (Exception e) {
95              throw processException(e);
96          }
97          finally {
98              closeSession(session);
99          }
100     }
101 
102     public PasswordTracker remove(PasswordTracker passwordTracker)
103         throws SystemException {
104         for (ModelListener listener : listeners) {
105             listener.onBeforeRemove(passwordTracker);
106         }
107 
108         passwordTracker = removeImpl(passwordTracker);
109 
110         for (ModelListener listener : listeners) {
111             listener.onAfterRemove(passwordTracker);
112         }
113 
114         return passwordTracker;
115     }
116 
117     protected PasswordTracker removeImpl(PasswordTracker passwordTracker)
118         throws SystemException {
119         Session session = null;
120 
121         try {
122             session = openSession();
123 
124             if (BatchSessionUtil.isEnabled()) {
125                 Object staleObject = session.get(PasswordTrackerImpl.class,
126                         passwordTracker.getPrimaryKeyObj());
127 
128                 if (staleObject != null) {
129                     session.evict(staleObject);
130                 }
131             }
132 
133             session.delete(passwordTracker);
134 
135             session.flush();
136 
137             return passwordTracker;
138         }
139         catch (Exception e) {
140             throw processException(e);
141         }
142         finally {
143             closeSession(session);
144 
145             FinderCacheUtil.clearCache(PasswordTracker.class.getName());
146         }
147     }
148 
149     /**
150      * @deprecated Use <code>update(PasswordTracker passwordTracker, boolean merge)</code>.
151      */
152     public PasswordTracker update(PasswordTracker passwordTracker)
153         throws SystemException {
154         if (_log.isWarnEnabled()) {
155             _log.warn(
156                 "Using the deprecated update(PasswordTracker passwordTracker) method. Use update(PasswordTracker passwordTracker, boolean merge) instead.");
157         }
158 
159         return update(passwordTracker, false);
160     }
161 
162     /**
163      * Add, update, or merge, the entity. This method also calls the model
164      * listeners to trigger the proper events associated with adding, deleting,
165      * or updating an entity.
166      *
167      * @param        passwordTracker the entity to add, update, or merge
168      * @param        merge boolean value for whether to merge the entity. The
169      *                default value is false. Setting merge to true is more
170      *                expensive and should only be true when passwordTracker is
171      *                transient. See LEP-5473 for a detailed discussion of this
172      *                method.
173      * @return        true if the portlet can be displayed via Ajax
174      */
175     public PasswordTracker update(PasswordTracker passwordTracker, boolean merge)
176         throws SystemException {
177         boolean isNew = passwordTracker.isNew();
178 
179         for (ModelListener listener : listeners) {
180             if (isNew) {
181                 listener.onBeforeCreate(passwordTracker);
182             }
183             else {
184                 listener.onBeforeUpdate(passwordTracker);
185             }
186         }
187 
188         passwordTracker = updateImpl(passwordTracker, merge);
189 
190         for (ModelListener listener : listeners) {
191             if (isNew) {
192                 listener.onAfterCreate(passwordTracker);
193             }
194             else {
195                 listener.onAfterUpdate(passwordTracker);
196             }
197         }
198 
199         return passwordTracker;
200     }
201 
202     public PasswordTracker updateImpl(
203         com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
204         throws SystemException {
205         Session session = null;
206 
207         try {
208             session = openSession();
209 
210             BatchSessionUtil.update(session, passwordTracker, merge);
211 
212             passwordTracker.setNew(false);
213 
214             return passwordTracker;
215         }
216         catch (Exception e) {
217             throw processException(e);
218         }
219         finally {
220             closeSession(session);
221 
222             FinderCacheUtil.clearCache(PasswordTracker.class.getName());
223         }
224     }
225 
226     public PasswordTracker findByPrimaryKey(long passwordTrackerId)
227         throws NoSuchPasswordTrackerException, SystemException {
228         PasswordTracker passwordTracker = fetchByPrimaryKey(passwordTrackerId);
229 
230         if (passwordTracker == null) {
231             if (_log.isWarnEnabled()) {
232                 _log.warn("No PasswordTracker exists with the primary key " +
233                     passwordTrackerId);
234             }
235 
236             throw new NoSuchPasswordTrackerException(
237                 "No PasswordTracker exists with the primary key " +
238                 passwordTrackerId);
239         }
240 
241         return passwordTracker;
242     }
243 
244     public PasswordTracker fetchByPrimaryKey(long passwordTrackerId)
245         throws SystemException {
246         Session session = null;
247 
248         try {
249             session = openSession();
250 
251             return (PasswordTracker)session.get(PasswordTrackerImpl.class,
252                 new Long(passwordTrackerId));
253         }
254         catch (Exception e) {
255             throw processException(e);
256         }
257         finally {
258             closeSession(session);
259         }
260     }
261 
262     public List<PasswordTracker> findByUserId(long userId)
263         throws SystemException {
264         boolean finderClassNameCacheEnabled = PasswordTrackerModelImpl.CACHE_ENABLED;
265         String finderClassName = PasswordTracker.class.getName();
266         String finderMethodName = "findByUserId";
267         String[] finderParams = new String[] { Long.class.getName() };
268         Object[] finderArgs = new Object[] { new Long(userId) };
269 
270         Object result = null;
271 
272         if (finderClassNameCacheEnabled) {
273             result = FinderCacheUtil.getResult(finderClassName,
274                     finderMethodName, finderParams, finderArgs, this);
275         }
276 
277         if (result == null) {
278             Session session = null;
279 
280             try {
281                 session = openSession();
282 
283                 StringBuilder query = new StringBuilder();
284 
285                 query.append(
286                     "FROM com.liferay.portal.model.PasswordTracker WHERE ");
287 
288                 query.append("userId = ?");
289 
290                 query.append(" ");
291 
292                 query.append("ORDER BY ");
293 
294                 query.append("userId DESC, ");
295                 query.append("createDate DESC");
296 
297                 Query q = session.createQuery(query.toString());
298 
299                 QueryPos qPos = QueryPos.getInstance(q);
300 
301                 qPos.add(userId);
302 
303                 List<PasswordTracker> list = q.list();
304 
305                 FinderCacheUtil.putResult(finderClassNameCacheEnabled,
306                     finderClassName, finderMethodName, finderParams,
307                     finderArgs, list);
308 
309                 return list;
310             }
311             catch (Exception e) {
312                 throw processException(e);
313             }
314             finally {
315                 closeSession(session);
316             }
317         }
318         else {
319             return (List<PasswordTracker>)result;
320         }
321     }
322 
323     public List<PasswordTracker> findByUserId(long userId, int start, int end)
324         throws SystemException {
325         return findByUserId(userId, start, end, null);
326     }
327 
328     public List<PasswordTracker> findByUserId(long userId, int start, int end,
329         OrderByComparator obc) throws SystemException {
330         boolean finderClassNameCacheEnabled = PasswordTrackerModelImpl.CACHE_ENABLED;
331         String finderClassName = PasswordTracker.class.getName();
332         String finderMethodName = "findByUserId";
333         String[] finderParams = new String[] {
334                 Long.class.getName(),
335                 
336                 "java.lang.Integer", "java.lang.Integer",
337                 "com.liferay.portal.kernel.util.OrderByComparator"
338             };
339         Object[] finderArgs = new Object[] {
340                 new Long(userId),
341                 
342                 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
343             };
344 
345         Object result = null;
346 
347         if (finderClassNameCacheEnabled) {
348             result = FinderCacheUtil.getResult(finderClassName,
349                     finderMethodName, finderParams, finderArgs, this);
350         }
351 
352         if (result == null) {
353             Session session = null;
354 
355             try {
356                 session = openSession();
357 
358                 StringBuilder query = new StringBuilder();
359 
360                 query.append(
361                     "FROM com.liferay.portal.model.PasswordTracker WHERE ");
362 
363                 query.append("userId = ?");
364 
365                 query.append(" ");
366 
367                 if (obc != null) {
368                     query.append("ORDER BY ");
369                     query.append(obc.getOrderBy());
370                 }
371 
372                 else {
373                     query.append("ORDER BY ");
374 
375                     query.append("userId DESC, ");
376                     query.append("createDate DESC");
377                 }
378 
379                 Query q = session.createQuery(query.toString());
380 
381                 QueryPos qPos = QueryPos.getInstance(q);
382 
383                 qPos.add(userId);
384 
385                 List<PasswordTracker> list = (List<PasswordTracker>)QueryUtil.list(q,
386                         getDialect(), start, end);
387 
388                 FinderCacheUtil.putResult(finderClassNameCacheEnabled,
389                     finderClassName, finderMethodName, finderParams,
390                     finderArgs, list);
391 
392                 return list;
393             }
394             catch (Exception e) {
395                 throw processException(e);
396             }
397             finally {
398                 closeSession(session);
399             }
400         }
401         else {
402             return (List<PasswordTracker>)result;
403         }
404     }
405 
406     public PasswordTracker findByUserId_First(long userId, OrderByComparator obc)
407         throws NoSuchPasswordTrackerException, SystemException {
408         List<PasswordTracker> list = findByUserId(userId, 0, 1, obc);
409 
410         if (list.size() == 0) {
411             StringBuilder msg = new StringBuilder();
412 
413             msg.append("No PasswordTracker exists with the key {");
414 
415             msg.append("userId=" + userId);
416 
417             msg.append(StringPool.CLOSE_CURLY_BRACE);
418 
419             throw new NoSuchPasswordTrackerException(msg.toString());
420         }
421         else {
422             return list.get(0);
423         }
424     }
425 
426     public PasswordTracker findByUserId_Last(long userId, OrderByComparator obc)
427         throws NoSuchPasswordTrackerException, SystemException {
428         int count = countByUserId(userId);
429 
430         List<PasswordTracker> list = findByUserId(userId, count - 1, count, obc);
431 
432         if (list.size() == 0) {
433             StringBuilder msg = new StringBuilder();
434 
435             msg.append("No PasswordTracker exists with the key {");
436 
437             msg.append("userId=" + userId);
438 
439             msg.append(StringPool.CLOSE_CURLY_BRACE);
440 
441             throw new NoSuchPasswordTrackerException(msg.toString());
442         }
443         else {
444             return list.get(0);
445         }
446     }
447 
448     public PasswordTracker[] findByUserId_PrevAndNext(long passwordTrackerId,
449         long userId, OrderByComparator obc)
450         throws NoSuchPasswordTrackerException, SystemException {
451         PasswordTracker passwordTracker = findByPrimaryKey(passwordTrackerId);
452 
453         int count = countByUserId(userId);
454 
455         Session session = null;
456 
457         try {
458             session = openSession();
459 
460             StringBuilder query = new StringBuilder();
461 
462             query.append("FROM com.liferay.portal.model.PasswordTracker WHERE ");
463 
464             query.append("userId = ?");
465 
466             query.append(" ");
467 
468             if (obc != null) {
469                 query.append("ORDER BY ");
470                 query.append(obc.getOrderBy());
471             }
472 
473             else {
474                 query.append("ORDER BY ");
475 
476                 query.append("userId DESC, ");
477                 query.append("createDate DESC");
478             }
479 
480             Query q = session.createQuery(query.toString());
481 
482             QueryPos qPos = QueryPos.getInstance(q);
483 
484             qPos.add(userId);
485 
486             Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
487                     passwordTracker);
488 
489             PasswordTracker[] array = new PasswordTrackerImpl[3];
490 
491             array[0] = (PasswordTracker)objArray[0];
492             array[1] = (PasswordTracker)objArray[1];
493             array[2] = (PasswordTracker)objArray[2];
494 
495             return array;
496         }
497         catch (Exception e) {
498             throw processException(e);
499         }
500         finally {
501             closeSession(session);
502         }
503     }
504 
505     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
506         throws SystemException {
507         Session session = null;
508 
509         try {
510             session = openSession();
511 
512             dynamicQuery.compile(session);
513 
514             return dynamicQuery.list();
515         }
516         catch (Exception e) {
517             throw processException(e);
518         }
519         finally {
520             closeSession(session);
521         }
522     }
523 
524     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
525         int start, int end) throws SystemException {
526         Session session = null;
527 
528         try {
529             session = openSession();
530 
531             dynamicQuery.setLimit(start, end);
532 
533             dynamicQuery.compile(session);
534 
535             return dynamicQuery.list();
536         }
537         catch (Exception e) {
538             throw processException(e);
539         }
540         finally {
541             closeSession(session);
542         }
543     }
544 
545     public List<PasswordTracker> findAll() throws SystemException {
546         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
547     }
548 
549     public List<PasswordTracker> findAll(int start, int end)
550         throws SystemException {
551         return findAll(start, end, null);
552     }
553 
554     public List<PasswordTracker> findAll(int start, int end,
555         OrderByComparator obc) throws SystemException {
556         boolean finderClassNameCacheEnabled = PasswordTrackerModelImpl.CACHE_ENABLED;
557         String finderClassName = PasswordTracker.class.getName();
558         String finderMethodName = "findAll";
559         String[] finderParams = new String[] {
560                 "java.lang.Integer", "java.lang.Integer",
561                 "com.liferay.portal.kernel.util.OrderByComparator"
562             };
563         Object[] finderArgs = new Object[] {
564                 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
565             };
566 
567         Object result = null;
568 
569         if (finderClassNameCacheEnabled) {
570             result = FinderCacheUtil.getResult(finderClassName,
571                     finderMethodName, finderParams, finderArgs, this);
572         }
573 
574         if (result == null) {
575             Session session = null;
576 
577             try {
578                 session = openSession();
579 
580                 StringBuilder query = new StringBuilder();
581 
582                 query.append("FROM com.liferay.portal.model.PasswordTracker ");
583 
584                 if (obc != null) {
585                     query.append("ORDER BY ");
586                     query.append(obc.getOrderBy());
587                 }
588 
589                 else {
590                     query.append("ORDER BY ");
591 
592                     query.append("userId DESC, ");
593                     query.append("createDate DESC");
594                 }
595 
596                 Query q = session.createQuery(query.toString());
597 
598                 List<PasswordTracker> list = null;
599 
600                 if (obc == null) {
601                     list = (List<PasswordTracker>)QueryUtil.list(q,
602                             getDialect(), start, end, false);
603 
604                     Collections.sort(list);
605                 }
606                 else {
607                     list = (List<PasswordTracker>)QueryUtil.list(q,
608                             getDialect(), start, end);
609                 }
610 
611                 FinderCacheUtil.putResult(finderClassNameCacheEnabled,
612                     finderClassName, finderMethodName, finderParams,
613                     finderArgs, list);
614 
615                 return list;
616             }
617             catch (Exception e) {
618                 throw processException(e);
619             }
620             finally {
621                 closeSession(session);
622             }
623         }
624         else {
625             return (List<PasswordTracker>)result;
626         }
627     }
628 
629     public void removeByUserId(long userId) throws SystemException {
630         for (PasswordTracker passwordTracker : findByUserId(userId)) {
631             remove(passwordTracker);
632         }
633     }
634 
635     public void removeAll() throws SystemException {
636         for (PasswordTracker passwordTracker : findAll()) {
637             remove(passwordTracker);
638         }
639     }
640 
641     public int countByUserId(long userId) throws SystemException {
642         boolean finderClassNameCacheEnabled = PasswordTrackerModelImpl.CACHE_ENABLED;
643         String finderClassName = PasswordTracker.class.getName();
644         String finderMethodName = "countByUserId";
645         String[] finderParams = new String[] { Long.class.getName() };
646         Object[] finderArgs = new Object[] { new Long(userId) };
647 
648         Object result = null;
649 
650         if (finderClassNameCacheEnabled) {
651             result = FinderCacheUtil.getResult(finderClassName,
652                     finderMethodName, finderParams, finderArgs, this);
653         }
654 
655         if (result == null) {
656             Session session = null;
657 
658             try {
659                 session = openSession();
660 
661                 StringBuilder query = new StringBuilder();
662 
663                 query.append("SELECT COUNT(*) ");
664                 query.append(
665                     "FROM com.liferay.portal.model.PasswordTracker WHERE ");
666 
667                 query.append("userId = ?");
668 
669                 query.append(" ");
670 
671                 Query q = session.createQuery(query.toString());
672 
673                 QueryPos qPos = QueryPos.getInstance(q);
674 
675                 qPos.add(userId);
676 
677                 Long count = null;
678 
679                 Iterator<Long> itr = q.list().iterator();
680 
681                 if (itr.hasNext()) {
682                     count = itr.next();
683                 }
684 
685                 if (count == null) {
686                     count = new Long(0);
687                 }
688 
689                 FinderCacheUtil.putResult(finderClassNameCacheEnabled,
690                     finderClassName, finderMethodName, finderParams,
691                     finderArgs, count);
692 
693                 return count.intValue();
694             }
695             catch (Exception e) {
696                 throw processException(e);
697             }
698             finally {
699                 closeSession(session);
700             }
701         }
702         else {
703             return ((Long)result).intValue();
704         }
705     }
706 
707     public int countAll() throws SystemException {
708         boolean finderClassNameCacheEnabled = PasswordTrackerModelImpl.CACHE_ENABLED;
709         String finderClassName = PasswordTracker.class.getName();
710         String finderMethodName = "countAll";
711         String[] finderParams = new String[] {  };
712         Object[] finderArgs = new Object[] {  };
713 
714         Object result = null;
715 
716         if (finderClassNameCacheEnabled) {
717             result = FinderCacheUtil.getResult(finderClassName,
718                     finderMethodName, finderParams, finderArgs, this);
719         }
720 
721         if (result == null) {
722             Session session = null;
723 
724             try {
725                 session = openSession();
726 
727                 Query q = session.createQuery(
728                         "SELECT COUNT(*) FROM com.liferay.portal.model.PasswordTracker");
729 
730                 Long count = null;
731 
732                 Iterator<Long> itr = q.list().iterator();
733 
734                 if (itr.hasNext()) {
735                     count = itr.next();
736                 }
737 
738                 if (count == null) {
739                     count = new Long(0);
740                 }
741 
742                 FinderCacheUtil.putResult(finderClassNameCacheEnabled,
743                     finderClassName, finderMethodName, finderParams,
744                     finderArgs, count);
745 
746                 return count.intValue();
747             }
748             catch (Exception e) {
749                 throw processException(e);
750             }
751             finally {
752                 closeSession(session);
753             }
754         }
755         else {
756             return ((Long)result).intValue();
757         }
758     }
759 
760     public void afterPropertiesSet() {
761         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
762                     com.liferay.portal.util.PropsUtil.get(
763                         "value.object.listener.com.liferay.portal.model.PasswordTracker")));
764 
765         if (listenerClassNames.length > 0) {
766             try {
767                 List<ModelListener> listenersList = new ArrayList<ModelListener>();
768 
769                 for (String listenerClassName : listenerClassNames) {
770                     listenersList.add((ModelListener)Class.forName(
771                             listenerClassName).newInstance());
772                 }
773 
774                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
775             }
776             catch (Exception e) {
777                 _log.error(e);
778             }
779         }
780     }
781 
782     @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
783     protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
784     @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
785     protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
786     @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
787     protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
788     @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
789     protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
790     @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
791     protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
792     @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
793     protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
794     @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
795     protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
796     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
797     protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
798     @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
799     protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
800     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
801     protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
802     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
803     protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
804     @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
805     protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
806     @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
807     protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
808     @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
809     protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
810     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
811     protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
812     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
813     protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
814     @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
815     protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
816     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
817     protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
818     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
819     protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
820     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
821     protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
822     @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
823     protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
824     @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
825     protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
826     @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
827     protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
828     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
829     protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
830     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
831     protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
832     @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
833     protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
834     @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
835     protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
836     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
837     protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
838     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
839     protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
840     @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
841     protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
842     @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
843     protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
844     @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
845     protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
846     @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
847     protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
848     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
849     protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
850     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
851     protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
852     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
853     protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
854     @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
855     protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
856     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
857     protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
858     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
859     protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
860     @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
861     protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
862     @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
863     protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
864     private static Log _log = LogFactoryUtil.getLog(PasswordTrackerPersistenceImpl.class);
865 }