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.AssetVocabulary;
20  
21  /**
22   * <a href="AssetVocabularyPersistence.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       AssetVocabularyPersistenceImpl
31   * @see       AssetVocabularyUtil
32   * @generated
33   */
34  public interface AssetVocabularyPersistence extends BasePersistence<AssetVocabulary> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies);
40  
41      public com.liferay.portlet.asset.model.AssetVocabulary create(
42          long vocabularyId);
43  
44      public com.liferay.portlet.asset.model.AssetVocabulary remove(
45          long vocabularyId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.asset.NoSuchVocabularyException;
48  
49      public com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
50          com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
55          long vocabularyId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.asset.NoSuchVocabularyException;
58  
59      public com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
60          long vocabularyId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.asset.NoSuchVocabularyException;
81  
82      public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.asset.NoSuchVocabularyException;
87  
88      public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
89          long vocabularyId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.asset.NoSuchVocabularyException;
93  
94      public com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
95          java.lang.String uuid, long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.asset.NoSuchVocabularyException;
98  
99      public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
104         java.lang.String uuid, long groupId, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
108         long groupId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
112         long groupId, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
116         long groupId, int start, int end,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
121         long groupId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.kernel.exception.SystemException,
124             com.liferay.portlet.asset.NoSuchVocabularyException;
125 
126     public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
127         long groupId,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.kernel.exception.SystemException,
130             com.liferay.portlet.asset.NoSuchVocabularyException;
131 
132     public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
133         long vocabularyId, long groupId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.asset.NoSuchVocabularyException;
137 
138     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
139         long companyId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
147         long companyId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
152         long companyId,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.kernel.exception.SystemException,
155             com.liferay.portlet.asset.NoSuchVocabularyException;
156 
157     public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
158         long companyId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.asset.NoSuchVocabularyException;
162 
163     public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
164         long vocabularyId, long companyId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.asset.NoSuchVocabularyException;
168 
169     public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
170         long groupId, java.lang.String name)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.asset.NoSuchVocabularyException;
173 
174     public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
175         long groupId, java.lang.String name)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
179         long groupId, java.lang.String name, boolean retrieveFromCache)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
186         int start, int end)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
190         int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public void removeByUuid(java.lang.String uuid)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public void removeByUUID_G(java.lang.String uuid, long groupId)
198         throws com.liferay.portal.kernel.exception.SystemException,
199             com.liferay.portlet.asset.NoSuchVocabularyException;
200 
201     public void removeByGroupId(long groupId)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public void removeByCompanyId(long companyId)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public void removeByG_N(long groupId, java.lang.String name)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.asset.NoSuchVocabularyException;
210 
211     public void removeAll()
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public int countByUuid(java.lang.String uuid)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public int countByUUID_G(java.lang.String uuid, long groupId)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public int countByGroupId(long groupId)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public int countByCompanyId(long companyId)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public int countByG_N(long groupId, java.lang.String name)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public int countAll()
230         throws com.liferay.portal.kernel.exception.SystemException;
231 }