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 orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First(
77          long companyId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.asset.NoSuchTagPropertyException;
81  
82      public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last(
83          long companyId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.asset.NoSuchTagPropertyException;
87  
88      public com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
89          long tagPropertyId, long companyId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.asset.NoSuchTagPropertyException;
93  
94      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
95          long tagId) throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
98          long tagId, int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
102         long tagId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
107         long tagId,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.asset.NoSuchTagPropertyException;
111 
112     public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
113         long tagId,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.asset.NoSuchTagPropertyException;
117 
118     public com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
119         long tagPropertyId, long tagId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.asset.NoSuchTagPropertyException;
123 
124     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
125         long companyId, java.lang.String key)
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         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
133         long companyId, java.lang.String key, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
138         long companyId, java.lang.String key,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.asset.NoSuchTagPropertyException;
142 
143     public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
144         long companyId, java.lang.String key,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException,
147             com.liferay.portlet.asset.NoSuchTagPropertyException;
148 
149     public com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
150         long tagPropertyId, long companyId, java.lang.String key,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.asset.NoSuchTagPropertyException;
154 
155     public com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
156         long tagId, java.lang.String key)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.asset.NoSuchTagPropertyException;
159 
160     public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
161         long tagId, java.lang.String key)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
165         long tagId, java.lang.String key, boolean retrieveFromCache)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
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)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
176         int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public void removeByCompanyId(long companyId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public void removeByTagId(long tagId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public void removeByC_K(long companyId, java.lang.String key)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public void removeByT_K(long tagId, java.lang.String key)
190         throws com.liferay.portal.kernel.exception.SystemException,
191             com.liferay.portlet.asset.NoSuchTagPropertyException;
192 
193     public void removeAll()
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     public int countByCompanyId(long companyId)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public int countByTagId(long tagId)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public int countByC_K(long companyId, java.lang.String key)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     public int countByT_K(long tagId, java.lang.String key)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     public int countAll()
209         throws com.liferay.portal.kernel.exception.SystemException;
210 }