1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException,
47              com.liferay.portlet.wiki.NoSuchPageResourceException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.wiki.model.WikiPageResource update(
53          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
57          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
61          long resourcePrimKey)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.wiki.NoSuchPageResourceException;
64  
65      public com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
66          long resourcePrimKey) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
69          long nodeId, java.lang.String title)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.wiki.NoSuchPageResourceException;
72  
73      public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
74          long nodeId, java.lang.String title)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
78          long nodeId, java.lang.String title, boolean retrieveFromCache)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
85          int start, int end) throws com.liferay.portal.SystemException;
86  
87      public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
88          int start, int end,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.SystemException;
91  
92      public void removeByN_T(long nodeId, java.lang.String title)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.wiki.NoSuchPageResourceException;
95  
96      public void removeAll() throws com.liferay.portal.SystemException;
97  
98      public int countByN_T(long nodeId, java.lang.String title)
99          throws com.liferay.portal.SystemException;
100 
101     public int countAll() throws com.liferay.portal.SystemException;
102 }