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  import com.liferay.portlet.tags.model.TagsEntry;
28  
29  /**
30   * <a href="TagsEntryPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       TagsEntryPersistenceImpl
39   * @see       TagsEntryUtil
40   * @generated
41   */
42  public interface TagsEntryPersistence extends BasePersistence<TagsEntry> {
43      public void cacheResult(com.liferay.portlet.tags.model.TagsEntry tagsEntry);
44  
45      public void cacheResult(
46          java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries);
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      /**
55       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
56       */
57      public com.liferay.portlet.tags.model.TagsEntry update(
58          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.tags.model.TagsEntry updateImpl(
62          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
63          throws com.liferay.portal.SystemException;
64  
65      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
66          long entryId)
67          throws com.liferay.portal.SystemException,
68              com.liferay.portlet.tags.NoSuchEntryException;
69  
70      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
71          long entryId) throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
74          long vocabularyId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
77          long vocabularyId, int start, int end)
78          throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
81          long vocabularyId, int start, int end,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_First(
86          long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tags.NoSuchEntryException;
89  
90      public com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_Last(
91          long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portlet.tags.NoSuchEntryException;
94  
95      public com.liferay.portlet.tags.model.TagsEntry[] findByVocabularyId_PrevAndNext(
96          long entryId, long vocabularyId,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.tags.NoSuchEntryException;
100 
101     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
102         long parentEntryId, long vocabularyId)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
106         long parentEntryId, long vocabularyId, int start, int end)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
110         long parentEntryId, long vocabularyId, int start, int end,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.tags.model.TagsEntry findByP_V_First(
115         long parentEntryId, long vocabularyId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchEntryException;
119 
120     public com.liferay.portlet.tags.model.TagsEntry findByP_V_Last(
121         long parentEntryId, long vocabularyId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchEntryException;
125 
126     public com.liferay.portlet.tags.model.TagsEntry[] findByP_V_PrevAndNext(
127         long entryId, long parentEntryId, long vocabularyId,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.tags.NoSuchEntryException;
131 
132     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
136         int start, int end) throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
139         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException;
141 
142     public void removeByVocabularyId(long vocabularyId)
143         throws com.liferay.portal.SystemException;
144 
145     public void removeByP_V(long parentEntryId, long vocabularyId)
146         throws com.liferay.portal.SystemException;
147 
148     public void removeAll() throws com.liferay.portal.SystemException;
149 
150     public int countByVocabularyId(long vocabularyId)
151         throws com.liferay.portal.SystemException;
152 
153     public int countByP_V(long parentEntryId, long vocabularyId)
154         throws com.liferay.portal.SystemException;
155 
156     public int countAll() throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
159         long pk) throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
162         long pk, int start, int end) throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
165         long pk, int start, int end,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException;
168 
169     public int getTagsAssetsSize(long pk)
170         throws com.liferay.portal.SystemException;
171 
172     public boolean containsTagsAsset(long pk, long tagsAssetPK)
173         throws com.liferay.portal.SystemException;
174 
175     public boolean containsTagsAssets(long pk)
176         throws com.liferay.portal.SystemException;
177 
178     public void addTagsAsset(long pk, long tagsAssetPK)
179         throws com.liferay.portal.SystemException;
180 
181     public void addTagsAsset(long pk,
182         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
183         throws com.liferay.portal.SystemException;
184 
185     public void addTagsAssets(long pk, long[] tagsAssetPKs)
186         throws com.liferay.portal.SystemException;
187 
188     public void addTagsAssets(long pk,
189         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
190         throws com.liferay.portal.SystemException;
191 
192     public void clearTagsAssets(long pk)
193         throws com.liferay.portal.SystemException;
194 
195     public void removeTagsAsset(long pk, long tagsAssetPK)
196         throws com.liferay.portal.SystemException;
197 
198     public void removeTagsAsset(long pk,
199         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
200         throws com.liferay.portal.SystemException;
201 
202     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
203         throws com.liferay.portal.SystemException;
204 
205     public void removeTagsAssets(long pk,
206         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
207         throws com.liferay.portal.SystemException;
208 
209     public void setTagsAssets(long pk, long[] tagsAssetPKs)
210         throws com.liferay.portal.SystemException;
211 
212     public void setTagsAssets(long pk,
213         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
214         throws com.liferay.portal.SystemException;
215 }