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 orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
74          long companyId,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.asset.NoSuchEntryException;
78  
79      public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
80          long companyId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.asset.NoSuchEntryException;
84  
85      public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
86          long entryId, long companyId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.asset.NoSuchEntryException;
90  
91      public com.liferay.portlet.asset.model.AssetEntry findByC_C(
92          long classNameId, long classPK)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.asset.NoSuchEntryException;
95  
96      public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
97          long classNameId, long classPK)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
101         long classNameId, long classPK, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
112         int start, int end,
113         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public void removeByCompanyId(long companyId)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public void removeByC_C(long classNameId, long classPK)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.asset.NoSuchEntryException;
122 
123     public void removeAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public int countByCompanyId(long companyId)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public int countByC_C(long classNameId, long classPK)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public int countAll()
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
136         long pk) throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
139         long pk, int start, int end)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
143         long pk, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public int getAssetCategoriesSize(long pk)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public boolean containsAssetCategory(long pk, long assetCategoryPK)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public boolean containsAssetCategories(long pk)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public void addAssetCategory(long pk, long assetCategoryPK)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public void addAssetCategory(long pk,
160         com.liferay.portlet.asset.model.AssetCategory assetCategory)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void addAssetCategories(long pk, long[] assetCategoryPKs)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void addAssetCategories(long pk,
167         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public void clearAssetCategories(long pk)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public void removeAssetCategory(long pk, long assetCategoryPK)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public void removeAssetCategory(long pk,
177         com.liferay.portlet.asset.model.AssetCategory assetCategory)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public void removeAssetCategories(long pk, long[] assetCategoryPKs)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public void removeAssetCategories(long pk,
184         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public void setAssetCategories(long pk, long[] assetCategoryPKs)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public void setAssetCategories(long pk,
191         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
195         long pk) throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
198         long pk, int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
202         long pk, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public int getAssetTagsSize(long pk)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public boolean containsAssetTag(long pk, long assetTagPK)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public boolean containsAssetTags(long pk)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public void addAssetTag(long pk, long assetTagPK)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public void addAssetTag(long pk,
219         com.liferay.portlet.asset.model.AssetTag assetTag)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public void addAssetTags(long pk, long[] assetTagPKs)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public void addAssetTags(long pk,
226         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public void clearAssetTags(long pk)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeAssetTag(long pk, long assetTagPK)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public void removeAssetTag(long pk,
236         com.liferay.portlet.asset.model.AssetTag assetTag)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public void removeAssetTags(long pk, long[] assetTagPKs)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public void removeAssetTags(long pk,
243         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public void setAssetTags(long pk, long[] assetTagPKs)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public void setAssetTags(long pk,
250         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 }