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.AssetTagProperty;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetTagPropertyPersistenceImpl
024     * @see       AssetTagPropertyUtil
025     * @generated
026     */
027    public interface AssetTagPropertyPersistence extends BasePersistence<AssetTagProperty> {
028            public void cacheResult(
029                    com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties);
033    
034            public com.liferay.portlet.asset.model.AssetTagProperty create(
035                    long tagPropertyId);
036    
037            public com.liferay.portlet.asset.model.AssetTagProperty remove(
038                    long tagPropertyId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.asset.NoSuchTagPropertyException;
041    
042            public com.liferay.portlet.asset.model.AssetTagProperty updateImpl(
043                    com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey(
048                    long tagPropertyId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.asset.NoSuchTagPropertyException;
051    
052            public com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey(
053                    long tagPropertyId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
057                    long companyId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> 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.AssetTagProperty> 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.AssetTagProperty 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.NoSuchTagPropertyException;
074    
075            public com.liferay.portlet.asset.model.AssetTagProperty 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.NoSuchTagPropertyException;
080    
081            public com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
082                    long tagPropertyId, long companyId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.asset.NoSuchTagPropertyException;
086    
087            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
088                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
091                    long tagId, int start, int end)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
095                    long tagId, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
100                    long tagId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.asset.NoSuchTagPropertyException;
104    
105            public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
106                    long tagId,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.kernel.exception.SystemException,
109                            com.liferay.portlet.asset.NoSuchTagPropertyException;
110    
111            public com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
112                    long tagPropertyId, long tagId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.asset.NoSuchTagPropertyException;
116    
117            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
118                    long companyId, java.lang.String key)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
122                    long companyId, java.lang.String key, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
126                    long companyId, java.lang.String key, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
131                    long companyId, java.lang.String key,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.asset.NoSuchTagPropertyException;
135    
136            public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
137                    long companyId, java.lang.String key,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.asset.NoSuchTagPropertyException;
141    
142            public com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
143                    long tagPropertyId, long companyId, java.lang.String key,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.asset.NoSuchTagPropertyException;
147    
148            public com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
149                    long tagId, java.lang.String key)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.asset.NoSuchTagPropertyException;
152    
153            public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
154                    long tagId, java.lang.String key)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
158                    long tagId, java.lang.String key, boolean retrieveFromCache)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
165                    int start, int end)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
169                    int start, int end,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public void removeByCompanyId(long companyId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public void removeByTagId(long tagId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public void removeByC_K(long companyId, java.lang.String key)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public void removeByT_K(long tagId, java.lang.String key)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.asset.NoSuchTagPropertyException;
185    
186            public void removeAll()
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public int countByCompanyId(long companyId)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            public int countByTagId(long tagId)
193                    throws com.liferay.portal.kernel.exception.SystemException;
194    
195            public int countByC_K(long companyId, java.lang.String key)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public int countByT_K(long tagId, java.lang.String key)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public int countAll()
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    }