1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <a href="PasswordPolicyRelUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class PasswordPolicyRelUtil {
32      public static com.liferay.portal.model.PasswordPolicyRel create(
33          long passwordPolicyRelId) {
34          return getPersistence().create(passwordPolicyRelId);
35      }
36  
37      public static com.liferay.portal.model.PasswordPolicyRel remove(
38          long passwordPolicyRelId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portal.NoSuchPasswordPolicyRelException {
41          return getPersistence().remove(passwordPolicyRelId);
42      }
43  
44      public static com.liferay.portal.model.PasswordPolicyRel remove(
45          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(passwordPolicyRel);
48      }
49  
50      public static com.liferay.portal.model.PasswordPolicyRel update(
51          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(passwordPolicyRel);
54      }
55  
56      public static com.liferay.portal.model.PasswordPolicyRel update(
57          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
58          boolean merge) throws com.liferay.portal.SystemException {
59          return getPersistence().update(passwordPolicyRel, merge);
60      }
61  
62      public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
63          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
64          boolean merge) throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(passwordPolicyRel, merge);
66      }
67  
68      public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
69          long passwordPolicyRelId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portal.NoSuchPasswordPolicyRelException {
72          return getPersistence().findByPrimaryKey(passwordPolicyRelId);
73      }
74  
75      public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
76          long passwordPolicyRelId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
78      }
79  
80      public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
81          long classNameId, long classPK)
82          throws com.liferay.portal.SystemException, 
83              com.liferay.portal.NoSuchPasswordPolicyRelException {
84          return getPersistence().findByC_C(classNameId, classPK);
85      }
86  
87      public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
88          long classNameId, long classPK)
89          throws com.liferay.portal.SystemException {
90          return getPersistence().fetchByC_C(classNameId, classPK);
91      }
92  
93      public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
94          long passwordPolicyId, long classNameId, long classPK)
95          throws com.liferay.portal.SystemException, 
96              com.liferay.portal.NoSuchPasswordPolicyRelException {
97          return getPersistence().findByP_C_C(passwordPolicyId, classNameId,
98              classPK);
99      }
100 
101     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
102         long passwordPolicyId, long classNameId, long classPK)
103         throws com.liferay.portal.SystemException {
104         return getPersistence().fetchByP_C_C(passwordPolicyId, classNameId,
105             classPK);
106     }
107 
108     public static java.util.List findWithDynamicQuery(
109         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().findWithDynamicQuery(queryInitializer);
112     }
113 
114     public static java.util.List findWithDynamicQuery(
115         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
116         int begin, int end) throws com.liferay.portal.SystemException {
117         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
118             end);
119     }
120 
121     public static java.util.List findAll()
122         throws com.liferay.portal.SystemException {
123         return getPersistence().findAll();
124     }
125 
126     public static java.util.List findAll(int begin, int end)
127         throws com.liferay.portal.SystemException {
128         return getPersistence().findAll(begin, end);
129     }
130 
131     public static java.util.List findAll(int begin, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException {
134         return getPersistence().findAll(begin, end, obc);
135     }
136 
137     public static void removeByC_C(long classNameId, long classPK)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portal.NoSuchPasswordPolicyRelException {
140         getPersistence().removeByC_C(classNameId, classPK);
141     }
142 
143     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
144         long classPK)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portal.NoSuchPasswordPolicyRelException {
147         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
148     }
149 
150     public static void removeAll() throws com.liferay.portal.SystemException {
151         getPersistence().removeAll();
152     }
153 
154     public static int countByC_C(long classNameId, long classPK)
155         throws com.liferay.portal.SystemException {
156         return getPersistence().countByC_C(classNameId, classPK);
157     }
158 
159     public static int countByP_C_C(long passwordPolicyId, long classNameId,
160         long classPK) throws com.liferay.portal.SystemException {
161         return getPersistence().countByP_C_C(passwordPolicyId, classNameId,
162             classPK);
163     }
164 
165     public static int countAll() throws com.liferay.portal.SystemException {
166         return getPersistence().countAll();
167     }
168 
169     public static PasswordPolicyRelPersistence getPersistence() {
170         return _getUtil()._persistence;
171     }
172 
173     public void setPersistence(PasswordPolicyRelPersistence persistence) {
174         _persistence = persistence;
175     }
176 
177     private static PasswordPolicyRelUtil _getUtil() {
178         if (_util == null) {
179             _util = (PasswordPolicyRelUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
180         }
181 
182         return _util;
183     }
184 
185     private static final String _UTIL = PasswordPolicyRelUtil.class.getName();
186     private static PasswordPolicyRelUtil _util;
187     private PasswordPolicyRelPersistence _persistence;
188 }