1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Portlet;
18
19
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.SystemException;
43
44
47 public com.liferay.portal.model.Portlet update(
48 com.liferay.portal.model.Portlet portlet)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Portlet updateImpl(
52 com.liferay.portal.model.Portlet portlet, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
56 throws com.liferay.portal.NoSuchPortletException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
63 long companyId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
66 long companyId, int start, int end)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
70 long companyId, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Portlet findByCompanyId_First(
75 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.NoSuchPortletException,
77 com.liferay.portal.SystemException;
78
79 public com.liferay.portal.model.Portlet findByCompanyId_Last(
80 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.NoSuchPortletException,
82 com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
85 long id, long companyId,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.NoSuchPortletException,
88 com.liferay.portal.SystemException;
89
90 public com.liferay.portal.model.Portlet findByC_P(long companyId,
91 java.lang.String portletId)
92 throws com.liferay.portal.NoSuchPortletException,
93 com.liferay.portal.SystemException;
94
95 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
96 java.lang.String portletId) throws com.liferay.portal.SystemException;
97
98 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
99 java.lang.String portletId, boolean retrieveFromCache)
100 throws com.liferay.portal.SystemException;
101
102 public java.util.List<com.liferay.portal.model.Portlet> findAll()
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
106 int end) throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
109 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException;
111
112 public void removeByCompanyId(long companyId)
113 throws com.liferay.portal.SystemException;
114
115 public void removeByC_P(long companyId, java.lang.String portletId)
116 throws com.liferay.portal.NoSuchPortletException,
117 com.liferay.portal.SystemException;
118
119 public void removeAll() throws com.liferay.portal.SystemException;
120
121 public int countByCompanyId(long companyId)
122 throws com.liferay.portal.SystemException;
123
124 public int countByC_P(long companyId, java.lang.String portletId)
125 throws com.liferay.portal.SystemException;
126
127 public int countAll() throws com.liferay.portal.SystemException;
128 }