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.TagsProperty;
20  
21  /**
22   * <a href="TagsPropertyPersistence.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       TagsPropertyPersistenceImpl
31   * @see       TagsPropertyUtil
32   * @generated
33   */
34  public interface TagsPropertyPersistence extends BasePersistence<TagsProperty> {
35      public void cacheResult(
36          com.liferay.portlet.tags.model.TagsProperty tagsProperty);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties);
40  
41      public com.liferay.portlet.tags.model.TagsProperty create(long propertyId);
42  
43      public com.liferay.portlet.tags.model.TagsProperty remove(long propertyId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.tags.NoSuchPropertyException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.tags.model.TagsProperty update(
51          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tags.model.TagsProperty updateImpl(
55          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
59          long propertyId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.tags.NoSuchPropertyException;
62  
63      public com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
64          long propertyId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
67          long companyId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
70          long companyId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
74          long companyId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
79          long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.tags.NoSuchPropertyException;
83  
84      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
85          long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tags.NoSuchPropertyException;
89  
90      public com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
91          long propertyId, long companyId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.tags.NoSuchPropertyException;
95  
96      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
97          long entryId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
100         long entryId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
104         long entryId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
109         long entryId,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tags.NoSuchPropertyException;
113 
114     public com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
115         long entryId,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchPropertyException;
119 
120     public com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
121         long propertyId, long entryId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchPropertyException;
125 
126     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
127         long companyId, java.lang.String key)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
131         long companyId, java.lang.String key, int start, int end)
132         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
135         long companyId, java.lang.String key, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
140         long companyId, java.lang.String key,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.tags.NoSuchPropertyException;
144 
145     public com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
146         long companyId, java.lang.String key,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.tags.NoSuchPropertyException;
150 
151     public com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
152         long propertyId, long companyId, java.lang.String key,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.tags.NoSuchPropertyException;
156 
157     public com.liferay.portlet.tags.model.TagsProperty findByE_K(long entryId,
158         java.lang.String key)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.tags.NoSuchPropertyException;
161 
162     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
163         long entryId, java.lang.String key)
164         throws com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
167         long entryId, java.lang.String key, boolean retrieveFromCache)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
174         int start, int end) throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
177         int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.SystemException;
180 
181     public void removeByCompanyId(long companyId)
182         throws com.liferay.portal.SystemException;
183 
184     public void removeByEntryId(long entryId)
185         throws com.liferay.portal.SystemException;
186 
187     public void removeByC_K(long companyId, java.lang.String key)
188         throws com.liferay.portal.SystemException;
189 
190     public void removeByE_K(long entryId, java.lang.String key)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.tags.NoSuchPropertyException;
193 
194     public void removeAll() throws com.liferay.portal.SystemException;
195 
196     public int countByCompanyId(long companyId)
197         throws com.liferay.portal.SystemException;
198 
199     public int countByEntryId(long entryId)
200         throws com.liferay.portal.SystemException;
201 
202     public int countByC_K(long companyId, java.lang.String key)
203         throws com.liferay.portal.SystemException;
204 
205     public int countByE_K(long entryId, java.lang.String key)
206         throws com.liferay.portal.SystemException;
207 
208     public int countAll() throws com.liferay.portal.SystemException;
209 }