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.portlet.tags.service.persistence;
24  
25  /**
26   * <a href="TagsPropertyPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface TagsPropertyPersistence {
32      public com.liferay.portlet.tags.model.TagsProperty create(long propertyId);
33  
34      public com.liferay.portlet.tags.model.TagsProperty remove(long propertyId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.tags.NoSuchPropertyException;
37  
38      public com.liferay.portlet.tags.model.TagsProperty remove(
39          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.tags.model.TagsProperty update(
43          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.tags.model.TagsProperty update(
47          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.tags.model.TagsProperty updateImpl(
51          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
55          long propertyId)
56          throws com.liferay.portal.SystemException, 
57              com.liferay.portlet.tags.NoSuchPropertyException;
58  
59      public com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
60          long propertyId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List findByCompanyId(long companyId)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List findByCompanyId(long companyId, int begin, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List findByCompanyId(long companyId, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
73          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException, 
75              com.liferay.portlet.tags.NoSuchPropertyException;
76  
77      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
78          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException, 
80              com.liferay.portlet.tags.NoSuchPropertyException;
81  
82      public com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
83          long propertyId, long companyId,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException, 
86              com.liferay.portlet.tags.NoSuchPropertyException;
87  
88      public java.util.List findByEntryId(long entryId)
89          throws com.liferay.portal.SystemException;
90  
91      public java.util.List findByEntryId(long entryId, int begin, int end)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List findByEntryId(long entryId, int begin, int end,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
99          long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException, 
101             com.liferay.portlet.tags.NoSuchPropertyException;
102 
103     public com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
104         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.tags.NoSuchPropertyException;
107 
108     public com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
109         long propertyId, long entryId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException, 
112             com.liferay.portlet.tags.NoSuchPropertyException;
113 
114     public java.util.List findByC_K(long companyId, java.lang.String key)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List findByC_K(long companyId, java.lang.String key,
118         int begin, int end) throws com.liferay.portal.SystemException;
119 
120     public java.util.List findByC_K(long companyId, java.lang.String key,
121         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException;
123 
124     public com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
125         long companyId, java.lang.String key,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException, 
128             com.liferay.portlet.tags.NoSuchPropertyException;
129 
130     public com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
131         long companyId, java.lang.String key,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portlet.tags.NoSuchPropertyException;
135 
136     public com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
137         long propertyId, long companyId, java.lang.String key,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException, 
140             com.liferay.portlet.tags.NoSuchPropertyException;
141 
142     public com.liferay.portlet.tags.model.TagsProperty findByE_K(long entryId,
143         java.lang.String key)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.tags.NoSuchPropertyException;
146 
147     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
148         long entryId, java.lang.String key)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List findWithDynamicQuery(
152         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List findWithDynamicQuery(
156         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
157         int begin, int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List findAll() throws com.liferay.portal.SystemException;
160 
161     public java.util.List findAll(int begin, int end)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List findAll(int begin, int end,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException;
167 
168     public void removeByCompanyId(long companyId)
169         throws com.liferay.portal.SystemException;
170 
171     public void removeByEntryId(long entryId)
172         throws com.liferay.portal.SystemException;
173 
174     public void removeByC_K(long companyId, java.lang.String key)
175         throws com.liferay.portal.SystemException;
176 
177     public void removeByE_K(long entryId, java.lang.String key)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portlet.tags.NoSuchPropertyException;
180 
181     public void removeAll() throws com.liferay.portal.SystemException;
182 
183     public int countByCompanyId(long companyId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countByEntryId(long entryId)
187         throws com.liferay.portal.SystemException;
188 
189     public int countByC_K(long companyId, java.lang.String key)
190         throws com.liferay.portal.SystemException;
191 
192     public int countByE_K(long entryId, java.lang.String key)
193         throws com.liferay.portal.SystemException;
194 
195     public int countAll() throws com.liferay.portal.SystemException;
196 }