1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tags.model.TagsEntry;
20  
21  /**
22   * <a href="TagsEntryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       TagsEntryPersistenceImpl
31   * @see       TagsEntryUtil
32   * @generated
33   */
34  public interface TagsEntryPersistence extends BasePersistence<TagsEntry> {
35      public void cacheResult(com.liferay.portlet.tags.model.TagsEntry tagsEntry);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries);
39  
40      public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
41  
42      public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.tags.NoSuchEntryException;
45  
46      /**
47       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
48       */
49      public com.liferay.portlet.tags.model.TagsEntry update(
50          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
51          throws com.liferay.portal.SystemException;
52  
53      public com.liferay.portlet.tags.model.TagsEntry updateImpl(
54          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
55          throws com.liferay.portal.SystemException;
56  
57      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
58          long entryId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portlet.tags.NoSuchEntryException;
61  
62      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
63          long entryId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
66          long vocabularyId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
69          long vocabularyId, int start, int end)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
73          long vocabularyId, int start, int end,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_First(
78          long vocabularyId,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.tags.NoSuchEntryException;
82  
83      public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_Last(
84          long vocabularyId,
85          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portlet.tags.NoSuchEntryException;
88  
89      public com.liferay.portlet.tags.model.TagsEntry[] findByVocabularyId_PrevAndNext(
90          long entryId, long vocabularyId,
91          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portlet.tags.NoSuchEntryException;
94  
95      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
96          long parentEntryId, long vocabularyId)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
100         long parentEntryId, long vocabularyId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
104         long parentEntryId, long vocabularyId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.tags.model.TagsEntry findByP_V_First(
109         long parentEntryId, long vocabularyId,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tags.NoSuchEntryException;
113 
114     public com.liferay.portlet.tags.model.TagsEntry findByP_V_Last(
115         long parentEntryId, long vocabularyId,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchEntryException;
119 
120     public com.liferay.portlet.tags.model.TagsEntry[] findByP_V_PrevAndNext(
121         long entryId, long parentEntryId, long vocabularyId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchEntryException;
125 
126     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
130         int start, int end) throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
133         int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.SystemException;
136 
137     public void removeByVocabularyId(long vocabularyId)
138         throws com.liferay.portal.SystemException;
139 
140     public void removeByP_V(long parentEntryId, long vocabularyId)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeAll() throws com.liferay.portal.SystemException;
144 
145     public int countByVocabularyId(long vocabularyId)
146         throws com.liferay.portal.SystemException;
147 
148     public int countByP_V(long parentEntryId, long vocabularyId)
149         throws com.liferay.portal.SystemException;
150 
151     public int countAll() throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
154         long pk) throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
157         long pk, int start, int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
160         long pk, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.SystemException;
163 
164     public int getTagsAssetsSize(long pk)
165         throws com.liferay.portal.SystemException;
166 
167     public boolean containsTagsAsset(long pk, long tagsAssetPK)
168         throws com.liferay.portal.SystemException;
169 
170     public boolean containsTagsAssets(long pk)
171         throws com.liferay.portal.SystemException;
172 
173     public void addTagsAsset(long pk, long tagsAssetPK)
174         throws com.liferay.portal.SystemException;
175 
176     public void addTagsAsset(long pk,
177         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
178         throws com.liferay.portal.SystemException;
179 
180     public void addTagsAssets(long pk, long[] tagsAssetPKs)
181         throws com.liferay.portal.SystemException;
182 
183     public void addTagsAssets(long pk,
184         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
185         throws com.liferay.portal.SystemException;
186 
187     public void clearTagsAssets(long pk)
188         throws com.liferay.portal.SystemException;
189 
190     public void removeTagsAsset(long pk, long tagsAssetPK)
191         throws com.liferay.portal.SystemException;
192 
193     public void removeTagsAsset(long pk,
194         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
195         throws com.liferay.portal.SystemException;
196 
197     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeTagsAssets(long pk,
201         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
202         throws com.liferay.portal.SystemException;
203 
204     public void setTagsAssets(long pk, long[] tagsAssetPKs)
205         throws com.liferay.portal.SystemException;
206 
207     public void setTagsAssets(long pk,
208         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
209         throws com.liferay.portal.SystemException;
210 }