1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service.persistence;
21  
22  import com.liferay.portal.service.persistence.BasePersistence;
23  
24  /**
25   * <a href="TagsPropertyPersistence.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   *
29   */
30  public interface TagsPropertyPersistence extends BasePersistence {
31      public void cacheResult(
32          com.liferay.portlet.tags.model.TagsProperty tagsProperty);
33  
34      public void cacheResult(
35          java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties);
36  
37      public void clearCache();
38  
39      public com.liferay.portlet.tags.model.TagsProperty create(long propertyId);
40  
41      public com.liferay.portlet.tags.model.TagsProperty remove(long propertyId)
42          throws com.liferay.portal.SystemException,
43              com.liferay.portlet.tags.NoSuchPropertyException;
44  
45      public com.liferay.portlet.tags.model.TagsProperty remove(
46          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(TagsProperty tagsProperty, boolean merge)</code>.
51       */
52      public com.liferay.portlet.tags.model.TagsProperty update(
53          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        tagsProperty the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when tagsProperty is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portlet.tags.model.TagsProperty update(
70          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.tags.model.TagsProperty updateImpl(
74          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
78          long propertyId)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portlet.tags.NoSuchPropertyException;
81  
82      public com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
83          long propertyId) throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
86          long companyId) throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
89          long companyId, int start, int end)
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
93          long companyId, int start, int end,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
98          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.tags.NoSuchPropertyException;
101 
102     public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
103         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.tags.NoSuchPropertyException;
106 
107     public com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
108         long propertyId, long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.tags.NoSuchPropertyException;
112 
113     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
114         long entryId) throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
117         long entryId, int start, int end)
118         throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
121         long entryId, int start, int end,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
126         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException,
128             com.liferay.portlet.tags.NoSuchPropertyException;
129 
130     public com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
131         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.tags.NoSuchPropertyException;
134 
135     public com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
136         long propertyId, long entryId,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.tags.NoSuchPropertyException;
140 
141     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
142         long companyId, java.lang.String key)
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
146         long companyId, java.lang.String key, int start, int end)
147         throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
150         long companyId, java.lang.String key, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
155         long companyId, java.lang.String key,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.tags.NoSuchPropertyException;
159 
160     public com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
161         long companyId, java.lang.String key,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.tags.NoSuchPropertyException;
165 
166     public com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
167         long propertyId, long companyId, java.lang.String key,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.tags.NoSuchPropertyException;
171 
172     public com.liferay.portlet.tags.model.TagsProperty findByE_K(long entryId,
173         java.lang.String key)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.tags.NoSuchPropertyException;
176 
177     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
178         long entryId, java.lang.String key)
179         throws com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
182         long entryId, java.lang.String key, boolean retrieveFromCache)
183         throws com.liferay.portal.SystemException;
184 
185     public java.util.List<Object> findWithDynamicQuery(
186         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<Object> findWithDynamicQuery(
190         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
191         int end) throws com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
194         throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
197         int start, int end) throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
200         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeByCompanyId(long companyId)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeByEntryId(long entryId)
207         throws com.liferay.portal.SystemException;
208 
209     public void removeByC_K(long companyId, java.lang.String key)
210         throws com.liferay.portal.SystemException;
211 
212     public void removeByE_K(long entryId, java.lang.String key)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.tags.NoSuchPropertyException;
215 
216     public void removeAll() throws com.liferay.portal.SystemException;
217 
218     public int countByCompanyId(long companyId)
219         throws com.liferay.portal.SystemException;
220 
221     public int countByEntryId(long entryId)
222         throws com.liferay.portal.SystemException;
223 
224     public int countByC_K(long companyId, java.lang.String key)
225         throws com.liferay.portal.SystemException;
226 
227     public int countByE_K(long entryId, java.lang.String key)
228         throws com.liferay.portal.SystemException;
229 
230     public int countAll() throws com.liferay.portal.SystemException;
231 }