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.wiki.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.wiki.model.WikiPageResource;
20  
21  /**
22   * <a href="WikiPageResourcePersistence.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       WikiPageResourcePersistenceImpl
31   * @see       WikiPageResourceUtil
32   * @generated
33   */
34  public interface WikiPageResourcePersistence extends BasePersistence<WikiPageResource> {
35      public void cacheResult(
36          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources);
40  
41      public com.liferay.portlet.wiki.model.WikiPageResource create(
42          long resourcePrimKey);
43  
44      public com.liferay.portlet.wiki.model.WikiPageResource remove(
45          long resourcePrimKey)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.wiki.NoSuchPageResourceException;
48  
49      public com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
50          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
55          long resourcePrimKey)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.wiki.NoSuchPageResourceException;
58  
59      public com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
60          long resourcePrimKey)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.wiki.model.WikiPageResource findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.wiki.NoSuchPageResourceException;
81  
82      public com.liferay.portlet.wiki.model.WikiPageResource findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.wiki.NoSuchPageResourceException;
87  
88      public com.liferay.portlet.wiki.model.WikiPageResource[] findByUuid_PrevAndNext(
89          long resourcePrimKey, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.wiki.NoSuchPageResourceException;
93  
94      public com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
95          long nodeId, java.lang.String title)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.wiki.NoSuchPageResourceException;
98  
99      public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
100         long nodeId, java.lang.String title)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
104         long nodeId, java.lang.String title, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
111         int start, int end)
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
115         int start, int end,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public void removeByUuid(java.lang.String uuid)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public void removeByN_T(long nodeId, java.lang.String title)
123         throws com.liferay.portal.kernel.exception.SystemException,
124             com.liferay.portlet.wiki.NoSuchPageResourceException;
125 
126     public void removeAll()
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public int countByUuid(java.lang.String uuid)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public int countByN_T(long nodeId, java.lang.String title)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public int countAll()
136         throws com.liferay.portal.kernel.exception.SystemException;
137 }