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.portal.service.persistence;
16  
17  import com.liferay.portal.model.Portlet;
18  
19  /**
20   * <a href="PortletPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       PortletPersistenceImpl
29   * @see       PortletUtil
30   * @generated
31   */
32  public interface PortletPersistence extends BasePersistence<Portlet> {
33      public void cacheResult(com.liferay.portal.model.Portlet portlet);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Portlet> portlets);
37  
38      public com.liferay.portal.model.Portlet create(long id);
39  
40      public com.liferay.portal.model.Portlet remove(long id)
41          throws com.liferay.portal.NoSuchPortletException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Portlet updateImpl(
45          com.liferay.portal.model.Portlet portlet, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
49          throws com.liferay.portal.NoSuchPortletException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Portlet findByCompanyId_First(
69          long companyId,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.NoSuchPortletException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.Portlet findByCompanyId_Last(
75          long companyId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchPortletException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
81          long id, long companyId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchPortletException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public com.liferay.portal.model.Portlet findByC_P(long companyId,
87          java.lang.String portletId)
88          throws com.liferay.portal.NoSuchPortletException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
92          java.lang.String portletId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
96          java.lang.String portletId, boolean retrieveFromCache)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Portlet> findAll()
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
103         int end) throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
106         int end,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public void removeByCompanyId(long companyId)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public void removeByC_P(long companyId, java.lang.String portletId)
114         throws com.liferay.portal.NoSuchPortletException,
115             com.liferay.portal.kernel.exception.SystemException;
116 
117     public void removeAll()
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public int countByCompanyId(long companyId)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public int countByC_P(long companyId, java.lang.String portletId)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public int countAll()
127         throws com.liferay.portal.kernel.exception.SystemException;
128 }