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  import com.liferay.portlet.tags.model.TagsVocabulary;
28  
29  /**
30   * <a href="TagsVocabularyPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       TagsVocabularyPersistenceImpl
39   * @see       TagsVocabularyUtil
40   * @generated
41   */
42  public interface TagsVocabularyPersistence extends BasePersistence<TagsVocabulary> {
43      public void cacheResult(
44          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies);
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      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.tags.model.TagsVocabulary update(
61          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
65          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
69          long vocabularyId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.tags.NoSuchVocabularyException;
72  
73      public com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
74          long vocabularyId) throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
77          long groupId, java.lang.String name)
78          throws com.liferay.portal.SystemException,
79              com.liferay.portlet.tags.NoSuchVocabularyException;
80  
81      public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
82          long groupId, java.lang.String name)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
86          long groupId, java.lang.String name, boolean retrieveFromCache)
87          throws com.liferay.portal.SystemException;
88  
89      public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
90          long groupId, boolean folksonomy)
91          throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
94          long groupId, boolean folksonomy, int start, int end)
95          throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
98          long groupId, boolean folksonomy, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
103         long groupId, boolean folksonomy,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.tags.NoSuchVocabularyException;
107 
108     public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
109         long groupId, boolean folksonomy,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tags.NoSuchVocabularyException;
113 
114     public com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
115         long vocabularyId, long groupId, boolean folksonomy,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchVocabularyException;
119 
120     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
121         long companyId, boolean folksonomy)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
125         long companyId, boolean folksonomy, int start, int end)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
129         long companyId, boolean folksonomy, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
134         long companyId, boolean folksonomy,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.tags.NoSuchVocabularyException;
138 
139     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
140         long companyId, boolean folksonomy,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.tags.NoSuchVocabularyException;
144 
145     public com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
146         long vocabularyId, long companyId, boolean folksonomy,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.tags.NoSuchVocabularyException;
150 
151     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
155         int start, int end) throws com.liferay.portal.SystemException;
156 
157     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
158         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException;
160 
161     public void removeByG_N(long groupId, java.lang.String name)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tags.NoSuchVocabularyException;
164 
165     public void removeByG_F(long groupId, boolean folksonomy)
166         throws com.liferay.portal.SystemException;
167 
168     public void removeByC_F(long companyId, boolean folksonomy)
169         throws com.liferay.portal.SystemException;
170 
171     public void removeAll() throws com.liferay.portal.SystemException;
172 
173     public int countByG_N(long groupId, java.lang.String name)
174         throws com.liferay.portal.SystemException;
175 
176     public int countByG_F(long groupId, boolean folksonomy)
177         throws com.liferay.portal.SystemException;
178 
179     public int countByC_F(long companyId, boolean folksonomy)
180         throws com.liferay.portal.SystemException;
181 
182     public int countAll() throws com.liferay.portal.SystemException;
183 }