1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
28   * <a href="TagsVocabularyPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       TagsVocabularyPersistenceImpl
37   * @see       TagsVocabularyUtil
38   * @generated
39   */
40  public interface TagsVocabularyPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.tags.model.TagsVocabulary create(
50          long vocabularyId);
51  
52      public com.liferay.portlet.tags.model.TagsVocabulary remove(
53          long vocabularyId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.tags.NoSuchVocabularyException;
56  
57      public com.liferay.portlet.tags.model.TagsVocabulary remove(
58          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(TagsVocabulary, boolean merge)}.
63       */
64      public com.liferay.portlet.tags.model.TagsVocabulary update(
65          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  tagsVocabulary the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when tagsVocabulary is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.tags.model.TagsVocabulary update(
81          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
85          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
89          long vocabularyId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.tags.NoSuchVocabularyException;
92  
93      public com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
94          long vocabularyId) throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
97          long groupId, java.lang.String name)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.tags.NoSuchVocabularyException;
100 
101     public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
102         long groupId, java.lang.String name)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
106         long groupId, java.lang.String name, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
110         long groupId, boolean folksonomy)
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
114         long groupId, boolean folksonomy, int start, int end)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
118         long groupId, boolean folksonomy, int start, int end,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
123         long groupId, boolean folksonomy,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.tags.NoSuchVocabularyException;
127 
128     public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
129         long groupId, boolean folksonomy,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.tags.NoSuchVocabularyException;
133 
134     public com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
135         long vocabularyId, long groupId, boolean folksonomy,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.tags.NoSuchVocabularyException;
139 
140     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
141         long companyId, boolean folksonomy)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
145         long companyId, boolean folksonomy, int start, int end)
146         throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
149         long companyId, boolean folksonomy, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
154         long companyId, boolean folksonomy,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.tags.NoSuchVocabularyException;
158 
159     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
160         long companyId, boolean folksonomy,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tags.NoSuchVocabularyException;
164 
165     public com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
166         long vocabularyId, long companyId, boolean folksonomy,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.tags.NoSuchVocabularyException;
170 
171     public java.util.List<Object> findWithDynamicQuery(
172         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
173         throws com.liferay.portal.SystemException;
174 
175     public java.util.List<Object> findWithDynamicQuery(
176         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
177         int end) throws com.liferay.portal.SystemException;
178 
179     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
183         int start, int end) throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
186         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException;
188 
189     public void removeByG_N(long groupId, java.lang.String name)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.tags.NoSuchVocabularyException;
192 
193     public void removeByG_F(long groupId, boolean folksonomy)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByC_F(long companyId, boolean folksonomy)
197         throws com.liferay.portal.SystemException;
198 
199     public void removeAll() throws com.liferay.portal.SystemException;
200 
201     public int countByG_N(long groupId, java.lang.String name)
202         throws com.liferay.portal.SystemException;
203 
204     public int countByG_F(long groupId, boolean folksonomy)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByC_F(long companyId, boolean folksonomy)
208         throws com.liferay.portal.SystemException;
209 
210     public int countAll() throws com.liferay.portal.SystemException;
211 }