1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.PasswordTracker;
18  
19  /**
20   * <a href="PasswordTrackerPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       PasswordTrackerPersistenceImpl
29   * @see       PasswordTrackerUtil
30   * @generated
31   */
32  public interface PasswordTrackerPersistence extends BasePersistence<PasswordTracker> {
33      public void cacheResult(
34          com.liferay.portal.model.PasswordTracker passwordTracker);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers);
38  
39      public com.liferay.portal.model.PasswordTracker create(
40          long passwordTrackerId);
41  
42      public com.liferay.portal.model.PasswordTracker remove(
43          long passwordTrackerId)
44          throws com.liferay.portal.NoSuchPasswordTrackerException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.PasswordTracker updateImpl(
48          com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.PasswordTracker findByPrimaryKey(
52          long passwordTrackerId)
53          throws com.liferay.portal.NoSuchPasswordTrackerException,
54              com.liferay.portal.kernel.exception.SystemException;
55  
56      public com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
57          long passwordTrackerId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
61          long userId) throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
64          long userId, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
68          long userId, int start, int end,
69          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.PasswordTracker findByUserId_First(
73          long userId,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.NoSuchPasswordTrackerException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.PasswordTracker findByUserId_Last(
79          long userId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchPasswordTrackerException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
85          long passwordTrackerId, long userId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.NoSuchPasswordTrackerException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
94          int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
98          int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public void removeByUserId(long userId)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public void removeAll()
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public int countByUserId(long userId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public int countAll()
112         throws com.liferay.portal.kernel.exception.SystemException;
113 }