1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.asset.model.AssetEntry;
20  
21  /**
22   * <a href="AssetEntryPersistence.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       AssetEntryPersistenceImpl
31   * @see       AssetEntryUtil
32   * @generated
33   */
34  public interface AssetEntryPersistence extends BasePersistence<AssetEntry> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetEntry assetEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries);
40  
41      public com.liferay.portlet.asset.model.AssetEntry create(long entryId);
42  
43      public com.liferay.portlet.asset.model.AssetEntry remove(long entryId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.asset.NoSuchEntryException;
46  
47      public com.liferay.portlet.asset.model.AssetEntry updateImpl(
48          com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
52          long entryId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.asset.NoSuchEntryException;
55  
56      public com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
57          long entryId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
61          long companyId)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
65          long companyId, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
69          long companyId, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
74          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.asset.NoSuchEntryException;
77  
78      public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
79          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.kernel.exception.SystemException,
81              com.liferay.portlet.asset.NoSuchEntryException;
82  
83      public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
84          long entryId, long companyId,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.asset.NoSuchEntryException;
88  
89      public com.liferay.portlet.asset.model.AssetEntry findByC_C(
90          long classNameId, long classPK)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.asset.NoSuchEntryException;
93  
94      public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
95          long classNameId, long classPK)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
99          long classNameId, long classPK, boolean retrieveFromCache)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
106         int start, int end)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
110         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public void removeByCompanyId(long companyId)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public void removeByC_C(long classNameId, long classPK)
117         throws com.liferay.portal.kernel.exception.SystemException,
118             com.liferay.portlet.asset.NoSuchEntryException;
119 
120     public void removeAll()
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public int countByCompanyId(long companyId)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public int countByC_C(long classNameId, long classPK)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public int countAll()
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
133         long pk) throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
136         long pk, int start, int end)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
140         long pk, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public int getAssetCategoriesSize(long pk)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public boolean containsAssetCategory(long pk, long assetCategoryPK)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public boolean containsAssetCategories(long pk)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public void addAssetCategory(long pk, long assetCategoryPK)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public void addAssetCategory(long pk,
157         com.liferay.portlet.asset.model.AssetCategory assetCategory)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public void addAssetCategories(long pk, long[] assetCategoryPKs)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void addAssetCategories(long pk,
164         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public void clearAssetCategories(long pk)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public void removeAssetCategory(long pk, long assetCategoryPK)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public void removeAssetCategory(long pk,
174         com.liferay.portlet.asset.model.AssetCategory assetCategory)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public void removeAssetCategories(long pk, long[] assetCategoryPKs)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public void removeAssetCategories(long pk,
181         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void setAssetCategories(long pk, long[] assetCategoryPKs)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public void setAssetCategories(long pk,
188         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
192         long pk) throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
195         long pk, int start, int end)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
199         long pk, int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public int getAssetTagsSize(long pk)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public boolean containsAssetTag(long pk, long assetTagPK)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public boolean containsAssetTags(long pk)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public void addAssetTag(long pk, long assetTagPK)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public void addAssetTag(long pk,
216         com.liferay.portlet.asset.model.AssetTag assetTag)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public void addAssetTags(long pk, long[] assetTagPKs)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public void addAssetTags(long pk,
223         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public void clearAssetTags(long pk)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public void removeAssetTag(long pk, long assetTagPK)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeAssetTag(long pk,
233         com.liferay.portlet.asset.model.AssetTag assetTag)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void removeAssetTags(long pk, long[] assetTagPKs)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public void removeAssetTags(long pk,
240         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
241         throws com.liferay.portal.kernel.exception.SystemException;
242 
243     public void setAssetTags(long pk, long[] assetTagPKs)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public void setAssetTags(long pk,
247         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 }