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.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       DLFileVersionPersistenceImpl
024     * @see       DLFileVersionUtil
025     * @generated
026     */
027    public interface DLFileVersionPersistence extends BasePersistence<DLFileVersion> {
028            public void cacheResult(
029                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions);
033    
034            public com.liferay.portlet.documentlibrary.model.DLFileVersion create(
035                    long fileVersionId);
036    
037            public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
038                    long fileVersionId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
041    
042            public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
043                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
048                    long fileVersionId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
051    
052            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
053                    long fileVersionId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
057                    long groupId, long folderId, java.lang.String name)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
061                    long groupId, long folderId, java.lang.String name, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
065                    long groupId, long folderId, java.lang.String name, 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.documentlibrary.model.DLFileVersion findByG_F_N_First(
070                    long groupId, long folderId, java.lang.String name,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
074    
075            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last(
076                    long groupId, long folderId, java.lang.String name,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
080    
081            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext(
082                    long fileVersionId, long groupId, long folderId, java.lang.String name,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
086    
087            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V(
088                    long groupId, long folderId, java.lang.String name,
089                    java.lang.String version)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
092    
093            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
094                    long groupId, long folderId, java.lang.String name,
095                    java.lang.String version)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
099                    long groupId, long folderId, java.lang.String name,
100                    java.lang.String version, boolean retrieveFromCache)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
104                    long groupId, long folderId, java.lang.String name, int status)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
108                    long groupId, long folderId, java.lang.String name, int status,
109                    int start, int end)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
113                    long groupId, long folderId, java.lang.String name, int status,
114                    int start, int end,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
119                    long groupId, long folderId, java.lang.String name, int status,
120                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121                    throws com.liferay.portal.kernel.exception.SystemException,
122                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
123    
124            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
125                    long groupId, long folderId, java.lang.String name, int status,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
129    
130            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
131                    long fileVersionId, long groupId, long folderId, java.lang.String name,
132                    int status,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException,
135                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
136    
137            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
141                    int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
145                    int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public void removeByG_F_N_V(long groupId, long folderId,
153                    java.lang.String name, java.lang.String version)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
156    
157            public void removeByG_F_N_S(long groupId, long folderId,
158                    java.lang.String name, int status)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public void removeAll()
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public int countByG_F_N(long groupId, long folderId, java.lang.String name)
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            public int countByG_F_N_V(long groupId, long folderId,
168                    java.lang.String name, java.lang.String version)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public int countByG_F_N_S(long groupId, long folderId,
172                    java.lang.String name, int status)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            public int countAll()
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    }