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.portlet.tags.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="TagsEntryPersistence.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       TagsEntryPersistenceImpl
37   * @see       TagsEntryUtil
38   * @generated
39   */
40  public interface TagsEntryPersistence extends BasePersistence {
41      public void cacheResult(com.liferay.portlet.tags.model.TagsEntry tagsEntry);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries);
45  
46      public void clearCache();
47  
48      public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
49  
50      public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.tags.NoSuchEntryException;
53  
54      public com.liferay.portlet.tags.model.TagsEntry remove(
55          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(TagsEntry, boolean merge)}.
60       */
61      public com.liferay.portlet.tags.model.TagsEntry update(
62          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
63          throws com.liferay.portal.SystemException;
64  
65      /**
66       * Add, update, or merge, the entity. This method also calls the model
67       * listeners to trigger the proper events associated with adding, deleting,
68       * or updating an entity.
69       *
70       * @param  tagsEntry the entity to add, update, or merge
71       * @param  merge boolean value for whether to merge the entity. The default
72       *         value is false. Setting merge to true is more expensive and
73       *         should only be true when tagsEntry is transient. See
74       *         LEP-5473 for a detailed discussion of this method.
75       * @return the entity that was added, updated, or merged
76       */
77      public com.liferay.portlet.tags.model.TagsEntry update(
78          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.tags.model.TagsEntry updateImpl(
82          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
86          long entryId)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tags.NoSuchEntryException;
89  
90      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
91          long entryId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
94          long vocabularyId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
97          long vocabularyId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
101         long vocabularyId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_First(
106         long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.tags.NoSuchEntryException;
109 
110     public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_Last(
111         long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.tags.NoSuchEntryException;
114 
115     public com.liferay.portlet.tags.model.TagsEntry[] findByVocabularyId_PrevAndNext(
116         long entryId, long vocabularyId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.tags.NoSuchEntryException;
120 
121     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
122         long parentEntryId, long vocabularyId)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
126         long parentEntryId, long vocabularyId, int start, int end)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
130         long parentEntryId, long vocabularyId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.tags.model.TagsEntry findByP_V_First(
135         long parentEntryId, long vocabularyId,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.tags.NoSuchEntryException;
139 
140     public com.liferay.portlet.tags.model.TagsEntry findByP_V_Last(
141         long parentEntryId, long vocabularyId,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.tags.NoSuchEntryException;
145 
146     public com.liferay.portlet.tags.model.TagsEntry[] findByP_V_PrevAndNext(
147         long entryId, long parentEntryId, long vocabularyId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.tags.NoSuchEntryException;
151 
152     public java.util.List<Object> findWithDynamicQuery(
153         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<Object> findWithDynamicQuery(
157         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158         int end) throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
164         int start, int end) throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
167         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException;
169 
170     public void removeByVocabularyId(long vocabularyId)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeByP_V(long parentEntryId, long vocabularyId)
174         throws com.liferay.portal.SystemException;
175 
176     public void removeAll() throws com.liferay.portal.SystemException;
177 
178     public int countByVocabularyId(long vocabularyId)
179         throws com.liferay.portal.SystemException;
180 
181     public int countByP_V(long parentEntryId, long vocabularyId)
182         throws com.liferay.portal.SystemException;
183 
184     public int countAll() throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
187         long pk) throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
190         long pk, int start, int end) throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
193         long pk, int start, int end,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException;
196 
197     public int getTagsAssetsSize(long pk)
198         throws com.liferay.portal.SystemException;
199 
200     public boolean containsTagsAsset(long pk, long tagsAssetPK)
201         throws com.liferay.portal.SystemException;
202 
203     public boolean containsTagsAssets(long pk)
204         throws com.liferay.portal.SystemException;
205 
206     public void addTagsAsset(long pk, long tagsAssetPK)
207         throws com.liferay.portal.SystemException;
208 
209     public void addTagsAsset(long pk,
210         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
211         throws com.liferay.portal.SystemException;
212 
213     public void addTagsAssets(long pk, long[] tagsAssetPKs)
214         throws com.liferay.portal.SystemException;
215 
216     public void addTagsAssets(long pk,
217         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
218         throws com.liferay.portal.SystemException;
219 
220     public void clearTagsAssets(long pk)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeTagsAsset(long pk, long tagsAssetPK)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeTagsAsset(long pk,
227         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
228         throws com.liferay.portal.SystemException;
229 
230     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
231         throws com.liferay.portal.SystemException;
232 
233     public void removeTagsAssets(long pk,
234         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
235         throws com.liferay.portal.SystemException;
236 
237     public void setTagsAssets(long pk, long[] tagsAssetPKs)
238         throws com.liferay.portal.SystemException;
239 
240     public void setTagsAssets(long pk,
241         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
242         throws com.liferay.portal.SystemException;
243 }