1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tags.model.TagsVocabulary;
20  
21  /**
22   * <a href="TagsVocabularyPersistence.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       TagsVocabularyPersistenceImpl
31   * @see       TagsVocabularyUtil
32   * @generated
33   */
34  public interface TagsVocabularyPersistence extends BasePersistence<TagsVocabulary> {
35      public void cacheResult(
36          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies);
40  
41      public com.liferay.portlet.tags.model.TagsVocabulary create(
42          long vocabularyId);
43  
44      public com.liferay.portlet.tags.model.TagsVocabulary remove(
45          long vocabularyId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.tags.NoSuchVocabularyException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.tags.model.TagsVocabulary update(
53          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
57          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
61          long vocabularyId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.tags.NoSuchVocabularyException;
64  
65      public com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
66          long vocabularyId) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
69          long groupId, java.lang.String name)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.tags.NoSuchVocabularyException;
72  
73      public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
74          long groupId, java.lang.String name)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
78          long groupId, java.lang.String name, boolean retrieveFromCache)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
82          long groupId, boolean folksonomy)
83          throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
86          long groupId, boolean folksonomy, int start, int end)
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, int start, int end,
91          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
95          long groupId, boolean folksonomy,
96          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.tags.NoSuchVocabularyException;
99  
100     public com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
101         long groupId, boolean folksonomy,
102         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.tags.NoSuchVocabularyException;
105 
106     public com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
107         long vocabularyId, long groupId, boolean folksonomy,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.SystemException,
110             com.liferay.portlet.tags.NoSuchVocabularyException;
111 
112     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
113         long companyId, boolean folksonomy)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
117         long companyId, boolean folksonomy, int start, int end)
118         throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
121         long companyId, boolean folksonomy, int start, int end,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
126         long companyId, boolean folksonomy,
127         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.tags.NoSuchVocabularyException;
130 
131     public com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
132         long companyId, boolean folksonomy,
133         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.tags.NoSuchVocabularyException;
136 
137     public com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
138         long vocabularyId, long companyId, boolean folksonomy,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.tags.NoSuchVocabularyException;
142 
143     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
147         int start, int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
150         int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.SystemException;
153 
154     public void removeByG_N(long groupId, java.lang.String name)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.tags.NoSuchVocabularyException;
157 
158     public void removeByG_F(long groupId, boolean folksonomy)
159         throws com.liferay.portal.SystemException;
160 
161     public void removeByC_F(long companyId, boolean folksonomy)
162         throws com.liferay.portal.SystemException;
163 
164     public void removeAll() throws com.liferay.portal.SystemException;
165 
166     public int countByG_N(long groupId, java.lang.String name)
167         throws com.liferay.portal.SystemException;
168 
169     public int countByG_F(long groupId, boolean folksonomy)
170         throws com.liferay.portal.SystemException;
171 
172     public int countByC_F(long companyId, boolean folksonomy)
173         throws com.liferay.portal.SystemException;
174 
175     public int countAll() throws com.liferay.portal.SystemException;
176 }