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.AssetCategoryProperty;
20  
21  /**
22   * <a href="AssetCategoryPropertyPersistence.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       AssetCategoryPropertyPersistenceImpl
31   * @see       AssetCategoryPropertyUtil
32   * @generated
33   */
34  public interface AssetCategoryPropertyPersistence extends BasePersistence<AssetCategoryProperty> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties);
40  
41      public com.liferay.portlet.asset.model.AssetCategoryProperty create(
42          long categoryPropertyId);
43  
44      public com.liferay.portlet.asset.model.AssetCategoryProperty remove(
45          long categoryPropertyId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.asset.NoSuchCategoryPropertyException;
48  
49      public com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
50          com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
55          long categoryPropertyId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.asset.NoSuchCategoryPropertyException;
58  
59      public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
60          long categoryPropertyId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
64          long companyId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> 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.AssetCategoryProperty> 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.AssetCategoryProperty 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.NoSuchCategoryPropertyException;
81  
82      public com.liferay.portlet.asset.model.AssetCategoryProperty 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.NoSuchCategoryPropertyException;
87  
88      public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
89          long categoryPropertyId, long companyId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.asset.NoSuchCategoryPropertyException;
93  
94      public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
95          long categoryId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
99          long categoryId, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
103         long categoryId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
108         long categoryId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
112 
113     public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
114         long categoryId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
118 
119     public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
120         long categoryPropertyId, long categoryId,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
124 
125     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
126         long companyId, java.lang.String key)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
130         long companyId, java.lang.String key, int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
134         long companyId, java.lang.String key, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
139         long companyId, java.lang.String key,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
143 
144     public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
145         long companyId, java.lang.String key,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
149 
150     public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
151         long categoryPropertyId, long companyId, java.lang.String key,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
155 
156     public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
157         long categoryId, java.lang.String key)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
160 
161     public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
162         long categoryId, java.lang.String key)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
166         long categoryId, java.lang.String key, boolean retrieveFromCache)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
173         int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
177         int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByCompanyId(long companyId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByCategoryId(long categoryId)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public void removeByC_K(long companyId, java.lang.String key)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public void removeByCA_K(long categoryId, java.lang.String key)
191         throws com.liferay.portal.kernel.exception.SystemException,
192             com.liferay.portlet.asset.NoSuchCategoryPropertyException;
193 
194     public void removeAll()
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public int countByCompanyId(long companyId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public int countByCategoryId(long categoryId)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public int countByC_K(long companyId, java.lang.String key)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public int countByCA_K(long categoryId, java.lang.String key)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public int countAll()
210         throws com.liferay.portal.kernel.exception.SystemException;
211 }