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.wiki.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.wiki.model.WikiPageResource;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       WikiPageResourcePersistenceImpl
024     * @see       WikiPageResourceUtil
025     * @generated
026     */
027    public interface WikiPageResourcePersistence extends BasePersistence<WikiPageResource> {
028            public void cacheResult(
029                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources);
033    
034            public com.liferay.portlet.wiki.model.WikiPageResource create(
035                    long resourcePrimKey);
036    
037            public com.liferay.portlet.wiki.model.WikiPageResource remove(
038                    long resourcePrimKey)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.wiki.NoSuchPageResourceException;
041    
042            public com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
043                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
048                    long resourcePrimKey)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.wiki.NoSuchPageResourceException;
051    
052            public com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
053                    long resourcePrimKey)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
065                    java.lang.String uuid, 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.wiki.model.WikiPageResource findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.wiki.NoSuchPageResourceException;
074    
075            public com.liferay.portlet.wiki.model.WikiPageResource findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.wiki.NoSuchPageResourceException;
080    
081            public com.liferay.portlet.wiki.model.WikiPageResource[] findByUuid_PrevAndNext(
082                    long resourcePrimKey, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.wiki.NoSuchPageResourceException;
086    
087            public com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
088                    long nodeId, java.lang.String title)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.wiki.NoSuchPageResourceException;
091    
092            public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
093                    long nodeId, java.lang.String title)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
097                    long nodeId, java.lang.String title, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
104                    int start, int end)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
108                    int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public void removeByUuid(java.lang.String uuid)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public void removeByN_T(long nodeId, java.lang.String title)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.wiki.NoSuchPageResourceException;
118    
119            public void removeAll()
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public int countByUuid(java.lang.String uuid)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public int countByN_T(long nodeId, java.lang.String title)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public int countAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    }