1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portal.model.PasswordTracker update(
51          com.liferay.portal.model.PasswordTracker passwordTracker)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.PasswordTracker updateImpl(
55          com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portal.model.PasswordTracker findByPrimaryKey(
59          long passwordTrackerId)
60          throws com.liferay.portal.NoSuchPasswordTrackerException,
61              com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
64          long passwordTrackerId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
67          long userId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
70          long userId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
74          long userId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.PasswordTracker findByUserId_First(
79          long userId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchPasswordTrackerException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.PasswordTracker findByUserId_Last(
85          long userId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.NoSuchPasswordTrackerException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
91          long passwordTrackerId, long userId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.NoSuchPasswordTrackerException,
94              com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
100         int start, int end) throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
103         int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.SystemException;
106 
107     public void removeByUserId(long userId)
108         throws com.liferay.portal.SystemException;
109 
110     public void removeAll() throws com.liferay.portal.SystemException;
111 
112     public int countByUserId(long userId)
113         throws com.liferay.portal.SystemException;
114 
115     public int countAll() throws com.liferay.portal.SystemException;
116 }