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.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBDiscussion;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       MBDiscussionPersistenceImpl
024     * @see       MBDiscussionUtil
025     * @generated
026     */
027    public interface MBDiscussionPersistence extends BasePersistence<MBDiscussion> {
028            public void cacheResult(
029                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions);
033    
034            public com.liferay.portlet.messageboards.model.MBDiscussion create(
035                    long discussionId);
036    
037            public com.liferay.portlet.messageboards.model.MBDiscussion remove(
038                    long discussionId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
041    
042            public com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
043                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
048                    long discussionId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
051    
052            public com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
053                    long discussionId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
057                    long classNameId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
061                    long classNameId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
065                    long classNameId, 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.messageboards.model.MBDiscussion findByClassNameId_First(
070                    long classNameId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
074    
075            public com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
076                    long classNameId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
080    
081            public com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
082                    long discussionId, long classNameId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
086    
087            public com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId(
088                    long threadId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
091    
092            public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
093                    long threadId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
097                    long threadId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
101                    long classNameId, long classPK)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
104    
105            public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
106                    long classNameId, long classPK)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
110                    long classNameId, long classPK, boolean retrieveFromCache)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
117                    int start, int end)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
121                    int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public void removeByClassNameId(long classNameId)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public void removeByThreadId(long threadId)
129                    throws com.liferay.portal.kernel.exception.SystemException,
130                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
131    
132            public void removeByC_C(long classNameId, long classPK)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.messageboards.NoSuchDiscussionException;
135    
136            public void removeAll()
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public int countByClassNameId(long classNameId)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public int countByThreadId(long threadId)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public int countByC_C(long classNameId, long classPK)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public int countAll()
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    }