1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.service.persistence;
21  
22  /**
23   * <a href="PasswordTrackerPersistence.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface PasswordTrackerPersistence extends BasePersistence {
29      public void cacheResult(
30          com.liferay.portal.model.PasswordTracker passwordTracker);
31  
32      public void cacheResult(
33          java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers);
34  
35      public void clearCache();
36  
37      public com.liferay.portal.model.PasswordTracker create(
38          long passwordTrackerId);
39  
40      public com.liferay.portal.model.PasswordTracker remove(
41          long passwordTrackerId)
42          throws com.liferay.portal.NoSuchPasswordTrackerException,
43              com.liferay.portal.SystemException;
44  
45      public com.liferay.portal.model.PasswordTracker remove(
46          com.liferay.portal.model.PasswordTracker passwordTracker)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(PasswordTracker passwordTracker, boolean merge)</code>.
51       */
52      public com.liferay.portal.model.PasswordTracker update(
53          com.liferay.portal.model.PasswordTracker passwordTracker)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        passwordTracker the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when passwordTracker is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portal.model.PasswordTracker update(
70          com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portal.model.PasswordTracker updateImpl(
74          com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portal.model.PasswordTracker findByPrimaryKey(
78          long passwordTrackerId)
79          throws com.liferay.portal.NoSuchPasswordTrackerException,
80              com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
83          long passwordTrackerId) throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
86          long userId) throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
89          long userId, int start, int end)
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
93          long userId, int start, int end,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.PasswordTracker findByUserId_First(
98          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.NoSuchPasswordTrackerException,
100             com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.PasswordTracker findByUserId_Last(
103         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.NoSuchPasswordTrackerException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
108         long passwordTrackerId, long userId,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.NoSuchPasswordTrackerException,
111             com.liferay.portal.SystemException;
112 
113     public java.util.List<Object> findWithDynamicQuery(
114         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<Object> findWithDynamicQuery(
118         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119         int end) throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
125         int start, int end) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
128         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public void removeByUserId(long userId)
132         throws com.liferay.portal.SystemException;
133 
134     public void removeAll() throws com.liferay.portal.SystemException;
135 
136     public int countByUserId(long userId)
137         throws com.liferay.portal.SystemException;
138 
139     public int countAll() throws com.liferay.portal.SystemException;
140 }