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="PasswordPolicyPersistence.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       PasswordPolicyPersistenceImpl
36   * @see       PasswordPolicyUtil
37   * @generated
38   */
39  public interface PasswordPolicyPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.PasswordPolicy passwordPolicy);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId);
49  
50      public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
51          throws com.liferay.portal.NoSuchPasswordPolicyException,
52              com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.PasswordPolicy remove(
55          com.liferay.portal.model.PasswordPolicy passwordPolicy)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(PasswordPolicy, boolean merge)}.
60       */
61      public com.liferay.portal.model.PasswordPolicy update(
62          com.liferay.portal.model.PasswordPolicy passwordPolicy)
63          throws com.liferay.portal.SystemException;
64  
65      /**
66       * Add, update, or merge, the entity. This method also calls the model
67       * listeners to trigger the proper events associated with adding, deleting,
68       * or updating an entity.
69       *
70       * @param  passwordPolicy the entity to add, update, or merge
71       * @param  merge boolean value for whether to merge the entity. The default
72       *         value is false. Setting merge to true is more expensive and
73       *         should only be true when passwordPolicy is transient. See
74       *         LEP-5473 for a detailed discussion of this method.
75       * @return the entity that was added, updated, or merged
76       */
77      public com.liferay.portal.model.PasswordPolicy update(
78          com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.PasswordPolicy updateImpl(
82          com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(
86          long passwordPolicyId)
87          throws com.liferay.portal.NoSuchPasswordPolicyException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(
91          long passwordPolicyId) throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
94          boolean defaultPolicy)
95          throws com.liferay.portal.NoSuchPasswordPolicyException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
99          boolean defaultPolicy) throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
102         boolean defaultPolicy, boolean retrieveFromCache)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
106         java.lang.String name)
107         throws com.liferay.portal.NoSuchPasswordPolicyException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
111         java.lang.String name) throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
114         java.lang.String name, boolean retrieveFromCache)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<Object> findWithDynamicQuery(
118         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List<Object> findWithDynamicQuery(
122         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
123         int end) throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll()
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
129         int start, int end) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
132         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public void removeByC_DP(long companyId, boolean defaultPolicy)
136         throws com.liferay.portal.NoSuchPasswordPolicyException,
137             com.liferay.portal.SystemException;
138 
139     public void removeByC_N(long companyId, java.lang.String name)
140         throws com.liferay.portal.NoSuchPasswordPolicyException,
141             com.liferay.portal.SystemException;
142 
143     public void removeAll() throws com.liferay.portal.SystemException;
144 
145     public int countByC_DP(long companyId, boolean defaultPolicy)
146         throws com.liferay.portal.SystemException;
147 
148     public int countByC_N(long companyId, java.lang.String name)
149         throws com.liferay.portal.SystemException;
150 
151     public int countAll() throws com.liferay.portal.SystemException;
152 }