1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.ServiceComponent;
18  
19  /**
20   * <a href="ServiceComponentPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ServiceComponentPersistenceImpl
29   * @see       ServiceComponentUtil
30   * @generated
31   */
32  public interface ServiceComponentPersistence extends BasePersistence<ServiceComponent> {
33      public void cacheResult(
34          com.liferay.portal.model.ServiceComponent serviceComponent);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.ServiceComponent> serviceComponents);
38  
39      public com.liferay.portal.model.ServiceComponent create(
40          long serviceComponentId);
41  
42      public com.liferay.portal.model.ServiceComponent remove(
43          long serviceComponentId)
44          throws com.liferay.portal.NoSuchServiceComponentException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.ServiceComponent updateImpl(
48          com.liferay.portal.model.ServiceComponent serviceComponent,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
53          long serviceComponentId)
54          throws com.liferay.portal.NoSuchServiceComponentException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
58          long serviceComponentId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
62          java.lang.String buildNamespace)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
66          java.lang.String buildNamespace, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
70          java.lang.String buildNamespace, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
75          java.lang.String buildNamespace,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.NoSuchServiceComponentException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
81          java.lang.String buildNamespace,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.NoSuchServiceComponentException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
87          long serviceComponentId, java.lang.String buildNamespace,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchServiceComponentException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
93          java.lang.String buildNamespace, long buildNumber)
94          throws com.liferay.portal.NoSuchServiceComponentException,
95              com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
98          java.lang.String buildNamespace, long buildNumber)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
102         java.lang.String buildNamespace, long buildNumber,
103         boolean retrieveFromCache)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll()
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
110         int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
114         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public void removeByBuildNamespace(java.lang.String buildNamespace)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public void removeByBNS_BNU(java.lang.String buildNamespace,
121         long buildNumber)
122         throws com.liferay.portal.NoSuchServiceComponentException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void removeAll()
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countByBuildNamespace(java.lang.String buildNamespace)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public int countByBNS_BNU(java.lang.String buildNamespace, long buildNumber)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public int countAll()
135         throws com.liferay.portal.kernel.exception.SystemException;
136 }