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