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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
121         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.asset.NoSuchVocabularyException;
124 
125     public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
126         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.asset.NoSuchVocabularyException;
129 
130     public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
131         long vocabularyId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.asset.NoSuchVocabularyException;
135 
136     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
137         long companyId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
150         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.asset.NoSuchVocabularyException;
153 
154     public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
155         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.asset.NoSuchVocabularyException;
158 
159     public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
160         long vocabularyId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.asset.NoSuchVocabularyException;
164 
165     public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
166         long groupId, java.lang.String name)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.asset.NoSuchVocabularyException;
169 
170     public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
171         long groupId, java.lang.String name)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
175         long groupId, java.lang.String name, boolean retrieveFromCache)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
182         int start, int end)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public void removeByUuid(java.lang.String uuid)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public void removeByUUID_G(java.lang.String uuid, long groupId)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.asset.NoSuchVocabularyException;
195 
196     public void removeByGroupId(long groupId)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public void removeByCompanyId(long companyId)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public void removeByG_N(long groupId, java.lang.String name)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.asset.NoSuchVocabularyException;
205 
206     public void removeAll()
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public int countByUuid(java.lang.String uuid)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public int countByUUID_G(java.lang.String uuid, long groupId)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public int countByGroupId(long groupId)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public int countByCompanyId(long companyId)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public int countByG_N(long groupId, java.lang.String name)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public int countAll()
225         throws com.liferay.portal.kernel.exception.SystemException;
226 }