001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetCategoryProperty;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetCategoryPropertyPersistenceImpl
024     * @see       AssetCategoryPropertyUtil
025     * @generated
026     */
027    public interface AssetCategoryPropertyPersistence extends BasePersistence<AssetCategoryProperty> {
028            public void cacheResult(
029                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties);
033    
034            public com.liferay.portlet.asset.model.AssetCategoryProperty create(
035                    long categoryPropertyId);
036    
037            public com.liferay.portlet.asset.model.AssetCategoryProperty remove(
038                    long categoryPropertyId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
041    
042            public com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
043                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
048                    long categoryPropertyId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
051    
052            public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
053                    long categoryPropertyId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
057                    long companyId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
061                    long companyId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
065                    long companyId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
070                    long companyId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
074    
075            public com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
076                    long companyId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
080    
081            public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
082                    long categoryPropertyId, long companyId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
086    
087            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
088                    long categoryId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
092                    long categoryId, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
096                    long categoryId, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
101                    long categoryId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
105    
106            public com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
107                    long categoryId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
111    
112            public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
113                    long categoryPropertyId, long categoryId,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
117    
118            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
119                    long companyId, java.lang.String key)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
123                    long companyId, java.lang.String key, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
127                    long companyId, java.lang.String key, int start, int end,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
132                    long companyId, java.lang.String key,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException,
135                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
136    
137            public com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
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.NoSuchCategoryPropertyException;
142    
143            public com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
144                    long categoryPropertyId, 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.NoSuchCategoryPropertyException;
148    
149            public com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
150                    long categoryId, java.lang.String key)
151                    throws com.liferay.portal.kernel.exception.SystemException,
152                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
153    
154            public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
155                    long categoryId, java.lang.String key)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            public com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
159                    long categoryId, java.lang.String key, boolean retrieveFromCache)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
166                    int start, int end)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
170                    int start, int end,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            public void removeByCompanyId(long companyId)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            public void removeByCategoryId(long categoryId)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            public void removeByC_K(long companyId, java.lang.String key)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public void removeByCA_K(long categoryId, java.lang.String key)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.asset.NoSuchCategoryPropertyException;
186    
187            public void removeAll()
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            public int countByCompanyId(long companyId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public int countByCategoryId(long categoryId)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public int countByC_K(long companyId, java.lang.String key)
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            public int countByCA_K(long categoryId, java.lang.String key)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            public int countAll()
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    }