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.AssetTagStats;
20  
21  /**
22   * <a href="AssetTagStatsPersistence.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       AssetTagStatsPersistenceImpl
31   * @see       AssetTagStatsUtil
32   * @generated
33   */
34  public interface AssetTagStatsPersistence extends BasePersistence<AssetTagStats> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetTagStats assetTagStats);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses);
40  
41      public com.liferay.portlet.asset.model.AssetTagStats create(long tagStatsId);
42  
43      public com.liferay.portlet.asset.model.AssetTagStats remove(long tagStatsId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.asset.NoSuchTagStatsException;
46  
47      public com.liferay.portlet.asset.model.AssetTagStats updateImpl(
48          com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
53          long tagStatsId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.asset.NoSuchTagStatsException;
56  
57      public com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
58          long tagStatsId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
62          long tagId) throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
65          long tagId, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
69          long tagId, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
74          long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.asset.NoSuchTagStatsException;
77  
78      public com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
79          long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.kernel.exception.SystemException,
81              com.liferay.portlet.asset.NoSuchTagStatsException;
82  
83      public com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
84          long tagStatsId, long tagId,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.asset.NoSuchTagStatsException;
88  
89      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
90          long classNameId)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
94          long classNameId, int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
98          long classNameId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
103         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.kernel.exception.SystemException,
105             com.liferay.portlet.asset.NoSuchTagStatsException;
106 
107     public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
108         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.asset.NoSuchTagStatsException;
111 
112     public com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
113         long tagStatsId, long classNameId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.asset.NoSuchTagStatsException;
117 
118     public com.liferay.portlet.asset.model.AssetTagStats findByT_C(long tagId,
119         long classNameId)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.asset.NoSuchTagStatsException;
122 
123     public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
124         long tagId, long classNameId)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
128         long tagId, long classNameId, boolean retrieveFromCache)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
135         int start, int end)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
139         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public void removeByTagId(long tagId)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public void removeByClassNameId(long classNameId)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public void removeByT_C(long tagId, long classNameId)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.asset.NoSuchTagStatsException;
151 
152     public void removeAll()
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public int countByTagId(long tagId)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public int countByClassNameId(long classNameId)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public int countByT_C(long tagId, long classNameId)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public int countAll()
165         throws com.liferay.portal.kernel.exception.SystemException;
166 }