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.PasswordPolicyRel;
26  
27  /**
28   * <a href="PasswordPolicyRelPersistence.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       PasswordPolicyRelPersistenceImpl
37   * @see       PasswordPolicyRelUtil
38   * @generated
39   */
40  public interface PasswordPolicyRelPersistence extends BasePersistence<PasswordPolicyRel> {
41      public void cacheResult(
42          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels);
46  
47      public com.liferay.portal.model.PasswordPolicyRel create(
48          long passwordPolicyRelId);
49  
50      public com.liferay.portal.model.PasswordPolicyRel remove(
51          long passwordPolicyRelId)
52          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
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.PasswordPolicyRel update(
59          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.PasswordPolicyRel updateImpl(
63          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
67          long passwordPolicyRelId)
68          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
69              com.liferay.portal.SystemException;
70  
71      public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
72          long passwordPolicyRelId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
75          long passwordPolicyId) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
78          long passwordPolicyId, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
82          long passwordPolicyId, 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.PasswordPolicyRel findByPasswordPolicyId_First(
87          long passwordPolicyId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
93          long passwordPolicyId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
99          long passwordPolicyRelId, long passwordPolicyId,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.PasswordPolicyRel findByC_C(
105         long classNameId, long classPK)
106         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
110         long classNameId, long classPK)
111         throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
114         long classNameId, long classPK, boolean retrieveFromCache)
115         throws com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
118         long passwordPolicyId, long classNameId, long classPK)
119         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
123         long passwordPolicyId, long classNameId, long classPK)
124         throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
127         long passwordPolicyId, long classNameId, long classPK,
128         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
134         int start, int end) throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
137         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException;
139 
140     public void removeByPasswordPolicyId(long passwordPolicyId)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByC_C(long classNameId, long classPK)
144         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
145             com.liferay.portal.SystemException;
146 
147     public void removeByP_C_C(long passwordPolicyId, long classNameId,
148         long classPK)
149         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
150             com.liferay.portal.SystemException;
151 
152     public void removeAll() throws com.liferay.portal.SystemException;
153 
154     public int countByPasswordPolicyId(long passwordPolicyId)
155         throws com.liferay.portal.SystemException;
156 
157     public int countByC_C(long classNameId, long classPK)
158         throws com.liferay.portal.SystemException;
159 
160     public int countByP_C_C(long passwordPolicyId, long classNameId,
161         long classPK) throws com.liferay.portal.SystemException;
162 
163     public int countAll() throws com.liferay.portal.SystemException;
164 }