1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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.model.PasswordTracker;
26  
27  /**
28   * <a href="PasswordTrackerPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       PasswordTrackerPersistenceImpl
37   * @see       PasswordTrackerUtil
38   * @generated
39   */
40  public interface PasswordTrackerPersistence extends BasePersistence<PasswordTracker> {
41      public void cacheResult(
42          com.liferay.portal.model.PasswordTracker passwordTracker);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers);
46  
47      public com.liferay.portal.model.PasswordTracker create(
48          long passwordTrackerId);
49  
50      public com.liferay.portal.model.PasswordTracker remove(
51          long passwordTrackerId)
52          throws com.liferay.portal.NoSuchPasswordTrackerException,
53              com.liferay.portal.SystemException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portal.model.PasswordTracker update(
59          com.liferay.portal.model.PasswordTracker passwordTracker)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.PasswordTracker updateImpl(
63          com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
64          throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.PasswordTracker findByPrimaryKey(
67          long passwordTrackerId)
68          throws com.liferay.portal.NoSuchPasswordTrackerException,
69              com.liferay.portal.SystemException;
70  
71      public com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
72          long passwordTrackerId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
75          long userId) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
78          long userId, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
82          long userId, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.PasswordTracker findByUserId_First(
87          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.NoSuchPasswordTrackerException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.PasswordTracker findByUserId_Last(
92          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.NoSuchPasswordTrackerException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
97          long passwordTrackerId, long userId,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.NoSuchPasswordTrackerException,
100             com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
106         int start, int end) throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
109         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException;
111 
112     public void removeByUserId(long userId)
113         throws com.liferay.portal.SystemException;
114 
115     public void removeAll() throws com.liferay.portal.SystemException;
116 
117     public int countByUserId(long userId)
118         throws com.liferay.portal.SystemException;
119 
120     public int countAll() throws com.liferay.portal.SystemException;
121 }