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.ServiceComponent;
26  
27  /**
28   * <a href="ServiceComponentPersistence.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       ServiceComponentPersistenceImpl
37   * @see       ServiceComponentUtil
38   * @generated
39   */
40  public interface ServiceComponentPersistence extends BasePersistence<ServiceComponent> {
41      public void cacheResult(
42          com.liferay.portal.model.ServiceComponent serviceComponent);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.ServiceComponent> serviceComponents);
46  
47      public com.liferay.portal.model.ServiceComponent create(
48          long serviceComponentId);
49  
50      public com.liferay.portal.model.ServiceComponent remove(
51          long serviceComponentId)
52          throws com.liferay.portal.NoSuchServiceComponentException,
53              com.liferay.portal.SystemException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portal.model.ServiceComponent update(
59          com.liferay.portal.model.ServiceComponent serviceComponent)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.ServiceComponent updateImpl(
63          com.liferay.portal.model.ServiceComponent serviceComponent,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
67          long serviceComponentId)
68          throws com.liferay.portal.NoSuchServiceComponentException,
69              com.liferay.portal.SystemException;
70  
71      public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
72          long serviceComponentId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
75          java.lang.String buildNamespace)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
79          java.lang.String buildNamespace, int start, int end)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
83          java.lang.String buildNamespace, int start, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
88          java.lang.String buildNamespace,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.NoSuchServiceComponentException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
94          java.lang.String buildNamespace,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.NoSuchServiceComponentException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
100         long serviceComponentId, java.lang.String buildNamespace,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.NoSuchServiceComponentException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
106         java.lang.String buildNamespace, long buildNumber)
107         throws com.liferay.portal.NoSuchServiceComponentException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
111         java.lang.String buildNamespace, long buildNumber)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
115         java.lang.String buildNamespace, long buildNumber,
116         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll()
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
122         int start, int end) throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
125         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException;
127 
128     public void removeByBuildNamespace(java.lang.String buildNamespace)
129         throws com.liferay.portal.SystemException;
130 
131     public void removeByBNS_BNU(java.lang.String buildNamespace,
132         long buildNumber)
133         throws com.liferay.portal.NoSuchServiceComponentException,
134             com.liferay.portal.SystemException;
135 
136     public void removeAll() throws com.liferay.portal.SystemException;
137 
138     public int countByBuildNamespace(java.lang.String buildNamespace)
139         throws com.liferay.portal.SystemException;
140 
141     public int countByBNS_BNU(java.lang.String buildNamespace, long buildNumber)
142         throws com.liferay.portal.SystemException;
143 
144     public int countAll() throws com.liferay.portal.SystemException;
145 }