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.PasswordPolicy;
26  
27  /**
28   * <a href="PasswordPolicyPersistence.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       PasswordPolicyPersistenceImpl
37   * @see       PasswordPolicyUtil
38   * @generated
39   */
40  public interface PasswordPolicyPersistence extends BasePersistence<PasswordPolicy> {
41      public void cacheResult(
42          com.liferay.portal.model.PasswordPolicy passwordPolicy);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies);
46  
47      public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId);
48  
49      public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
50          throws com.liferay.portal.NoSuchPasswordPolicyException,
51              com.liferay.portal.SystemException;
52  
53      /**
54       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
55       */
56      public com.liferay.portal.model.PasswordPolicy update(
57          com.liferay.portal.model.PasswordPolicy passwordPolicy)
58          throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.PasswordPolicy updateImpl(
61          com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(
65          long passwordPolicyId)
66          throws com.liferay.portal.NoSuchPasswordPolicyException,
67              com.liferay.portal.SystemException;
68  
69      public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(
70          long passwordPolicyId) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
73          boolean defaultPolicy)
74          throws com.liferay.portal.NoSuchPasswordPolicyException,
75              com.liferay.portal.SystemException;
76  
77      public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
78          boolean defaultPolicy) throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
81          boolean defaultPolicy, boolean retrieveFromCache)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
85          java.lang.String name)
86          throws com.liferay.portal.NoSuchPasswordPolicyException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
90          java.lang.String name) throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
93          java.lang.String name, boolean retrieveFromCache)
94          throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll()
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
100         int start, int end) throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
103         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public void removeByC_DP(long companyId, boolean defaultPolicy)
107         throws com.liferay.portal.NoSuchPasswordPolicyException,
108             com.liferay.portal.SystemException;
109 
110     public void removeByC_N(long companyId, java.lang.String name)
111         throws com.liferay.portal.NoSuchPasswordPolicyException,
112             com.liferay.portal.SystemException;
113 
114     public void removeAll() throws com.liferay.portal.SystemException;
115 
116     public int countByC_DP(long companyId, boolean defaultPolicy)
117         throws com.liferay.portal.SystemException;
118 
119     public int countByC_N(long companyId, java.lang.String name)
120         throws com.liferay.portal.SystemException;
121 
122     public int countAll() throws com.liferay.portal.SystemException;
123 }