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.documentlibrary.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.documentlibrary.model.DLFileRank;
20  
21  /**
22   * <a href="DLFileRankPersistence.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       DLFileRankPersistenceImpl
31   * @see       DLFileRankUtil
32   * @generated
33   */
34  public interface DLFileRankPersistence extends BasePersistence<DLFileRank> {
35      public void cacheResult(
36          com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks);
40  
41      public com.liferay.portlet.documentlibrary.model.DLFileRank create(
42          long fileRankId);
43  
44      public com.liferay.portlet.documentlibrary.model.DLFileRank remove(
45          long fileRankId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
50          com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
55          long fileRankId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
58  
59      public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
60          long fileRankId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
64          long userId) throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
76          long userId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
80  
81      public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
82          long userId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.kernel.exception.SystemException,
85              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
86  
87      public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
88          long fileRankId, long userId,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.kernel.exception.SystemException,
91              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
92  
93      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
94          long groupId, long userId)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
98          long groupId, long userId, int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
102         long groupId, long userId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
107         long groupId, long userId,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
111 
112     public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
113         long groupId, long userId,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
117 
118     public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
119         long fileRankId, long groupId, long userId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
123 
124     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
125         long folderId, java.lang.String name)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
129         long folderId, java.lang.String name, int start, int end)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
133         long folderId, java.lang.String name, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
138         long folderId, java.lang.String name,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
142 
143     public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
144         long folderId, java.lang.String name,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException,
147             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
148 
149     public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
150         long fileRankId, long folderId, java.lang.String name,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
154 
155     public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
156         long companyId, long userId, long folderId, java.lang.String name)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
159 
160     public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
161         long companyId, long userId, long folderId, java.lang.String name)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
165         long companyId, long userId, long folderId, java.lang.String name,
166         boolean retrieveFromCache)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
173         int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> 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 removeByUserId(long userId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByG_U(long groupId, long userId)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public void removeByF_N(long folderId, java.lang.String name)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public void removeByC_U_F_N(long companyId, long userId, long folderId,
191         java.lang.String name)
192         throws com.liferay.portal.kernel.exception.SystemException,
193             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
194 
195     public void removeAll()
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public int countByUserId(long userId)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public int countByG_U(long groupId, long userId)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public int countByF_N(long folderId, java.lang.String name)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public int countByC_U_F_N(long companyId, long userId, long folderId,
208         java.lang.String name)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public int countAll()
212         throws com.liferay.portal.kernel.exception.SystemException;
213 }