1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.asset.model.AssetTagProperty;
20  
21  /**
22   * <a href="AssetTagPropertyPersistence.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       AssetTagPropertyPersistenceImpl
31   * @see       AssetTagPropertyUtil
32   * @generated
33   */
34  public interface AssetTagPropertyPersistence extends BasePersistence<AssetTagProperty> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties);
40  
41      public com.liferay.portlet.asset.model.AssetTagProperty create(
42          long tagPropertyId);
43  
44      public com.liferay.portlet.asset.model.AssetTagProperty remove(
45          long tagPropertyId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.asset.NoSuchTagPropertyException;
48  
49      public com.liferay.portlet.asset.model.AssetTagProperty updateImpl(
50          com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey(
55          long tagPropertyId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.asset.NoSuchTagPropertyException;
58  
59      public com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey(
60          long tagPropertyId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
64          long companyId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
68          long companyId, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
72          long companyId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First(
77          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.asset.NoSuchTagPropertyException;
80  
81      public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last(
82          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.asset.NoSuchTagPropertyException;
85  
86      public com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
87          long tagPropertyId, long companyId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.asset.NoSuchTagPropertyException;
91  
92      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
93          long tagId) throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
96          long tagId, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
100         long tagId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
105         long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.kernel.exception.SystemException,
107             com.liferay.portlet.asset.NoSuchTagPropertyException;
108 
109     public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
110         long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.asset.NoSuchTagPropertyException;
113 
114     public com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
115         long tagPropertyId, long tagId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.kernel.exception.SystemException,
118             com.liferay.portlet.asset.NoSuchTagPropertyException;
119 
120     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
121         long companyId, java.lang.String key)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
125         long companyId, java.lang.String key, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
129         long companyId, java.lang.String key, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
134         long companyId, java.lang.String key,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException,
137             com.liferay.portlet.asset.NoSuchTagPropertyException;
138 
139     public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
140         long companyId, java.lang.String key,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.asset.NoSuchTagPropertyException;
144 
145     public com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
146         long tagPropertyId, long companyId, java.lang.String key,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.asset.NoSuchTagPropertyException;
150 
151     public com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
152         long tagId, java.lang.String key)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.asset.NoSuchTagPropertyException;
155 
156     public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
157         long tagId, java.lang.String key)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
161         long tagId, java.lang.String key, boolean retrieveFromCache)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
168         int start, int end)
169         throws com.liferay.portal.kernel.exception.SystemException;
170 
171     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
172         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public void removeByCompanyId(long companyId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeByTagId(long tagId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByC_K(long companyId, java.lang.String key)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByT_K(long tagId, java.lang.String key)
185         throws com.liferay.portal.kernel.exception.SystemException,
186             com.liferay.portlet.asset.NoSuchTagPropertyException;
187 
188     public void removeAll()
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public int countByCompanyId(long companyId)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public int countByTagId(long tagId)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public int countByC_K(long companyId, java.lang.String key)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public int countByT_K(long tagId, java.lang.String key)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public int countAll()
204         throws com.liferay.portal.kernel.exception.SystemException;
205 }