1   /**
2    * Copyright (c) 2000-2008 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 updateImpl(
53          com.liferay.portal.model.ServiceComponent serviceComponent,
54          boolean merge) throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.ServiceComponent findByPrimaryKey(
57          long serviceComponentId)
58          throws com.liferay.portal.NoSuchServiceComponentException, 
59              com.liferay.portal.SystemException;
60  
61      public com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
62          long serviceComponentId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByBuildNamespace(java.lang.String buildNamespace)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByBuildNamespace(
68          java.lang.String buildNamespace, int begin, int end)
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List findByBuildNamespace(
72          java.lang.String buildNamespace, int begin, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
77          java.lang.String buildNamespace,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.NoSuchServiceComponentException, 
80              com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
83          java.lang.String buildNamespace,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchServiceComponentException, 
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
89          long serviceComponentId, java.lang.String buildNamespace,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.NoSuchServiceComponentException, 
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portal.model.ServiceComponent findByBNS_BNU(
95          java.lang.String buildNamespace, long buildNumber)
96          throws com.liferay.portal.NoSuchServiceComponentException, 
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
100         java.lang.String buildNamespace, long buildNumber)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List findWithDynamicQuery(
104         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List findWithDynamicQuery(
108         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
109         int begin, int end) throws com.liferay.portal.SystemException;
110 
111     public java.util.List findAll() throws com.liferay.portal.SystemException;
112 
113     public java.util.List findAll(int begin, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List findAll(int begin, int end,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException;
119 
120     public void removeByBuildNamespace(java.lang.String buildNamespace)
121         throws com.liferay.portal.SystemException;
122 
123     public void removeByBNS_BNU(java.lang.String buildNamespace,
124         long buildNumber)
125         throws com.liferay.portal.NoSuchServiceComponentException, 
126             com.liferay.portal.SystemException;
127 
128     public void removeAll() throws com.liferay.portal.SystemException;
129 
130     public int countByBuildNamespace(java.lang.String buildNamespace)
131         throws com.liferay.portal.SystemException;
132 
133     public int countByBNS_BNU(java.lang.String buildNamespace, long buildNumber)
134         throws com.liferay.portal.SystemException;
135 
136     public int countAll() throws com.liferay.portal.SystemException;
137 }