1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <a href="ServiceComponentPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface ServiceComponentPersistence {
32      public com.liferay.portal.model.ServiceComponent create(
33          long serviceComponentId);
34  
35      public com.liferay.portal.model.ServiceComponent remove(
36          long serviceComponentId)
37          throws com.liferay.portal.NoSuchServiceComponentException, 
38              com.liferay.portal.SystemException;
39  
40      public com.liferay.portal.model.ServiceComponent remove(
41          com.liferay.portal.model.ServiceComponent serviceComponent)
42          throws com.liferay.portal.SystemException;
43  
44      public com.liferay.portal.model.ServiceComponent update(
45          com.liferay.portal.model.ServiceComponent serviceComponent)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portal.model.ServiceComponent update(
49          com.liferay.portal.model.ServiceComponent serviceComponent,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
53          long serviceComponentId)
54          throws com.liferay.portal.NoSuchServiceComponentException, 
55              com.liferay.portal.SystemException;
56  
57      public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
58          long serviceComponentId) throws com.liferay.portal.SystemException;
59  
60      public java.util.List findByBuildNamespace(java.lang.String buildNamespace)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List findByBuildNamespace(
64          java.lang.String buildNamespace, int begin, int end)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByBuildNamespace(
68          java.lang.String buildNamespace, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
73          java.lang.String buildNamespace,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchServiceComponentException, 
76              com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
79          java.lang.String buildNamespace,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchServiceComponentException, 
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
85          long serviceComponentId, java.lang.String buildNamespace,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchServiceComponentException, 
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
91          java.lang.String buildNamespace, long buildNumber)
92          throws com.liferay.portal.NoSuchServiceComponentException, 
93              com.liferay.portal.SystemException;
94  
95      public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
96          java.lang.String buildNamespace, long buildNumber)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List findWithDynamicQuery(
100         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List findWithDynamicQuery(
104         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
105         int begin, int end) throws com.liferay.portal.SystemException;
106 
107     public java.util.List findAll() throws com.liferay.portal.SystemException;
108 
109     public java.util.List findAll(int begin, int end)
110         throws com.liferay.portal.SystemException;
111 
112     public java.util.List findAll(int begin, int end,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException;
115 
116     public void removeByBuildNamespace(java.lang.String buildNamespace)
117         throws com.liferay.portal.SystemException;
118 
119     public void removeByBNS_BNU(java.lang.String buildNamespace,
120         long buildNumber)
121         throws com.liferay.portal.NoSuchServiceComponentException, 
122             com.liferay.portal.SystemException;
123 
124     public void removeAll() throws com.liferay.portal.SystemException;
125 
126     public int countByBuildNamespace(java.lang.String buildNamespace)
127         throws com.liferay.portal.SystemException;
128 
129     public int countByBNS_BNU(java.lang.String buildNamespace, long buildNumber)
130         throws com.liferay.portal.SystemException;
131 
132     public int countAll() throws com.liferay.portal.SystemException;
133 }