001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service.persistence;
022:
023: /**
024: * <a href="DLFileVersionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface DLFileVersionPersistence {
030: public com.liferay.portlet.documentlibrary.model.DLFileVersion create(
031: long fileVersionId);
032:
033: public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
034: long fileVersionId)
035: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
036: com.liferay.portal.SystemException;
037:
038: public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
039: com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
043: com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
047: com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
051: com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
055: long fileVersionId)
056: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
057: com.liferay.portal.SystemException;
058:
059: public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
060: long fileVersionId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByF_N(long folderId, java.lang.String name)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByF_N(long folderId,
067: java.lang.String name, int begin, int end)
068: throws com.liferay.portal.SystemException;
069:
070: public java.util.List findByF_N(long folderId,
071: java.lang.String name, int begin, int end,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException;
074:
075: public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
076: long folderId, java.lang.String name,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
079: com.liferay.portal.SystemException;
080:
081: public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
082: long folderId, java.lang.String name,
083: com.liferay.portal.kernel.util.OrderByComparator obc)
084: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
085: com.liferay.portal.SystemException;
086:
087: public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
088: long fileVersionId, long folderId, java.lang.String name,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
091: com.liferay.portal.SystemException;
092:
093: public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
094: long folderId, java.lang.String name, double version)
095: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
096: com.liferay.portal.SystemException;
097:
098: public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
099: long folderId, java.lang.String name, double version)
100: throws com.liferay.portal.SystemException;
101:
102: public java.util.List findWithDynamicQuery(
103: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
104: throws com.liferay.portal.SystemException;
105:
106: public java.util.List findWithDynamicQuery(
107: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
108: int begin, int end)
109: throws com.liferay.portal.SystemException;
110:
111: public java.util.List findAll()
112: throws com.liferay.portal.SystemException;
113:
114: public java.util.List findAll(int begin, int end)
115: throws com.liferay.portal.SystemException;
116:
117: public java.util.List findAll(int begin, int end,
118: com.liferay.portal.kernel.util.OrderByComparator obc)
119: throws com.liferay.portal.SystemException;
120:
121: public void removeByF_N(long folderId, java.lang.String name)
122: throws com.liferay.portal.SystemException;
123:
124: public void removeByF_N_V(long folderId, java.lang.String name,
125: double version)
126: throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
127: com.liferay.portal.SystemException;
128:
129: public void removeAll() throws com.liferay.portal.SystemException;
130:
131: public int countByF_N(long folderId, java.lang.String name)
132: throws com.liferay.portal.SystemException;
133:
134: public int countByF_N_V(long folderId, java.lang.String name,
135: double version) throws com.liferay.portal.SystemException;
136:
137: public int countAll() throws com.liferay.portal.SystemException;
138: }
|