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="ServiceComponentPersistence.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       ServiceComponentPersistenceImpl
36   * @see       ServiceComponentUtil
37   * @generated
38   */
39  public interface ServiceComponentPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.ServiceComponent serviceComponent);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.ServiceComponent> serviceComponents);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.ServiceComponent create(
49          long serviceComponentId);
50  
51      public com.liferay.portal.model.ServiceComponent remove(
52          long serviceComponentId)
53          throws com.liferay.portal.NoSuchServiceComponentException,
54              com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.ServiceComponent remove(
57          com.liferay.portal.model.ServiceComponent serviceComponent)
58          throws com.liferay.portal.SystemException;
59  
60      /**
61       * @deprecated Use {@link #update(ServiceComponent, boolean merge)}.
62       */
63      public com.liferay.portal.model.ServiceComponent update(
64          com.liferay.portal.model.ServiceComponent serviceComponent)
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  serviceComponent 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 serviceComponent 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.ServiceComponent update(
80          com.liferay.portal.model.ServiceComponent serviceComponent,
81          boolean merge) throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.ServiceComponent updateImpl(
84          com.liferay.portal.model.ServiceComponent serviceComponent,
85          boolean merge) throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
88          long serviceComponentId)
89          throws com.liferay.portal.NoSuchServiceComponentException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
93          long serviceComponentId) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
96          java.lang.String buildNamespace)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
100         java.lang.String buildNamespace, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
104         java.lang.String buildNamespace, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
109         java.lang.String buildNamespace,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchServiceComponentException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
115         java.lang.String buildNamespace,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchServiceComponentException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
121         long serviceComponentId, java.lang.String buildNamespace,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.NoSuchServiceComponentException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
127         java.lang.String buildNamespace, long buildNumber)
128         throws com.liferay.portal.NoSuchServiceComponentException,
129             com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
132         java.lang.String buildNamespace, long buildNumber)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
136         java.lang.String buildNamespace, long buildNumber,
137         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<Object> findWithDynamicQuery(
140         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
141         throws com.liferay.portal.SystemException;
142 
143     public java.util.List<Object> findWithDynamicQuery(
144         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145         int end) throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll()
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
151         int start, int end) throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
154         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException;
156 
157     public void removeByBuildNamespace(java.lang.String buildNamespace)
158         throws com.liferay.portal.SystemException;
159 
160     public void removeByBNS_BNU(java.lang.String buildNamespace,
161         long buildNumber)
162         throws com.liferay.portal.NoSuchServiceComponentException,
163             com.liferay.portal.SystemException;
164 
165     public void removeAll() throws com.liferay.portal.SystemException;
166 
167     public int countByBuildNamespace(java.lang.String buildNamespace)
168         throws com.liferay.portal.SystemException;
169 
170     public int countByBNS_BNU(java.lang.String buildNamespace, long buildNumber)
171         throws com.liferay.portal.SystemException;
172 
173     public int countAll() throws com.liferay.portal.SystemException;
174 }