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  
26  /**
27   * <a href="PasswordPolicyRelPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       PasswordPolicyRelPersistenceImpl
36   * @see       PasswordPolicyRelUtil
37   * @generated
38   */
39  public interface PasswordPolicyRelPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.PasswordPolicyRel create(
49          long passwordPolicyRelId);
50  
51      public com.liferay.portal.model.PasswordPolicyRel remove(
52          long passwordPolicyRelId)
53          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
54              com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.PasswordPolicyRel remove(
57          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
58          throws com.liferay.portal.SystemException;
59  
60      /**
61       * @deprecated Use {@link #update(PasswordPolicyRel, boolean merge)}.
62       */
63      public com.liferay.portal.model.PasswordPolicyRel update(
64          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
65          throws com.liferay.portal.SystemException;
66  
67      /**
68       * Add, update, or merge, the entity. This method also calls the model
69       * listeners to trigger the proper events associated with adding, deleting,
70       * or updating an entity.
71       *
72       * @param  passwordPolicyRel the entity to add, update, or merge
73       * @param  merge boolean value for whether to merge the entity. The default
74       *         value is false. Setting merge to true is more expensive and
75       *         should only be true when passwordPolicyRel is transient. See
76       *         LEP-5473 for a detailed discussion of this method.
77       * @return the entity that was added, updated, or merged
78       */
79      public com.liferay.portal.model.PasswordPolicyRel update(
80          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
81          boolean merge) throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.PasswordPolicyRel updateImpl(
84          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
85          boolean merge) throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
88          long passwordPolicyRelId)
89          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
93          long passwordPolicyRelId) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portal.model.PasswordPolicyRel findByC_C(
96          long classNameId, long classPK)
97          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
98              com.liferay.portal.SystemException;
99  
100     public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
101         long classNameId, long classPK)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
105         long classNameId, long classPK, boolean retrieveFromCache)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
109         long passwordPolicyId, long classNameId, long classPK)
110         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
114         long passwordPolicyId, long classNameId, long classPK)
115         throws com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
118         long passwordPolicyId, long classNameId, long classPK,
119         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
120 
121     public java.util.List<Object> findWithDynamicQuery(
122         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<Object> findWithDynamicQuery(
126         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127         int end) throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
133         int start, int end) throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
136         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     public void removeByC_C(long classNameId, long classPK)
140         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
141             com.liferay.portal.SystemException;
142 
143     public void removeByP_C_C(long passwordPolicyId, long classNameId,
144         long classPK)
145         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
146             com.liferay.portal.SystemException;
147 
148     public void removeAll() throws com.liferay.portal.SystemException;
149 
150     public int countByC_C(long classNameId, long classPK)
151         throws com.liferay.portal.SystemException;
152 
153     public int countByP_C_C(long passwordPolicyId, long classNameId,
154         long classPK) throws com.liferay.portal.SystemException;
155 
156     public int countAll() throws com.liferay.portal.SystemException;
157 }