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.AssetTagStats;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetTagStatsPersistenceImpl
024     * @see       AssetTagStatsUtil
025     * @generated
026     */
027    public interface AssetTagStatsPersistence extends BasePersistence<AssetTagStats> {
028            public void cacheResult(
029                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses);
033    
034            public com.liferay.portlet.asset.model.AssetTagStats create(long tagStatsId);
035    
036            public com.liferay.portlet.asset.model.AssetTagStats remove(long tagStatsId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.asset.NoSuchTagStatsException;
039    
040            public com.liferay.portlet.asset.model.AssetTagStats updateImpl(
041                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
046                    long tagStatsId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.asset.NoSuchTagStatsException;
049    
050            public com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
051                    long tagStatsId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
055                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
058                    long tagId, int start, int end)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
062                    long tagId, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
067                    long tagId,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.asset.NoSuchTagStatsException;
071    
072            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
073                    long tagId,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.asset.NoSuchTagStatsException;
077    
078            public com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
079                    long tagStatsId, long tagId,
080                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081                    throws com.liferay.portal.kernel.exception.SystemException,
082                            com.liferay.portlet.asset.NoSuchTagStatsException;
083    
084            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
085                    long classNameId)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
089                    long classNameId, int start, int end)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
093                    long classNameId, int start, int end,
094                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
098                    long classNameId,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.kernel.exception.SystemException,
101                            com.liferay.portlet.asset.NoSuchTagStatsException;
102    
103            public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
104                    long classNameId,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.kernel.exception.SystemException,
107                            com.liferay.portlet.asset.NoSuchTagStatsException;
108    
109            public com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
110                    long tagStatsId, long classNameId,
111                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112                    throws com.liferay.portal.kernel.exception.SystemException,
113                            com.liferay.portlet.asset.NoSuchTagStatsException;
114    
115            public com.liferay.portlet.asset.model.AssetTagStats findByT_C(long tagId,
116                    long classNameId)
117                    throws com.liferay.portal.kernel.exception.SystemException,
118                            com.liferay.portlet.asset.NoSuchTagStatsException;
119    
120            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
121                    long tagId, long classNameId)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
125                    long tagId, long classNameId, boolean retrieveFromCache)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
132                    int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
136                    int start, int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public void removeByTagId(long tagId)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public void removeByClassNameId(long classNameId)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public void removeByT_C(long tagId, long classNameId)
147                    throws com.liferay.portal.kernel.exception.SystemException,
148                            com.liferay.portlet.asset.NoSuchTagStatsException;
149    
150            public void removeAll()
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            public int countByTagId(long tagId)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public int countByClassNameId(long classNameId)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public int countByT_C(long tagId, long classNameId)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countAll()
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    }