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 obc)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
76          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
79  
80      public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
81          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
84  
85      public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
86          long fileRankId, long userId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.documentlibrary.NoSuchFileRankException;
90  
91      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
92          long groupId, long userId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
96          long groupId, long userId, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
100         long groupId, long userId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
105         long groupId, long userId,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
109 
110     public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
111         long groupId, long userId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException,
114             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
115 
116     public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
117         long fileRankId, long groupId, long userId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
121 
122     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
123         long folderId, java.lang.String name)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
127         long folderId, java.lang.String name, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
131         long folderId, java.lang.String name, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
136         long folderId, java.lang.String name,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException,
139             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
140 
141     public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
142         long folderId, java.lang.String name,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
146 
147     public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
148         long fileRankId, long folderId, java.lang.String name,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
152 
153     public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
154         long companyId, long userId, long folderId, java.lang.String name)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
157 
158     public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
159         long companyId, long userId, long folderId, java.lang.String name)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
163         long companyId, long userId, long folderId, java.lang.String name,
164         boolean retrieveFromCache)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
171         int start, int end)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
175         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeByUserId(long userId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByG_U(long groupId, long userId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByF_N(long folderId, java.lang.String name)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public void removeByC_U_F_N(long companyId, long userId, long folderId,
188         java.lang.String name)
189         throws com.liferay.portal.kernel.exception.SystemException,
190             com.liferay.portlet.documentlibrary.NoSuchFileRankException;
191 
192     public void removeAll()
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public int countByUserId(long userId)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public int countByG_U(long groupId, long userId)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public int countByF_N(long folderId, java.lang.String name)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public int countByC_U_F_N(long companyId, long userId, long folderId,
205         java.lang.String name)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     public int countAll()
209         throws com.liferay.portal.kernel.exception.SystemException;
210 }