1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public interface PortletPersistence extends BasePersistence {
40 public void cacheResult(com.liferay.portal.model.Portlet portlet);
41
42 public void cacheResult(
43 java.util.List<com.liferay.portal.model.Portlet> portlets);
44
45 public void clearCache();
46
47 public com.liferay.portal.model.Portlet create(long id);
48
49 public com.liferay.portal.model.Portlet remove(long id)
50 throws com.liferay.portal.NoSuchPortletException,
51 com.liferay.portal.SystemException;
52
53 public com.liferay.portal.model.Portlet remove(
54 com.liferay.portal.model.Portlet portlet)
55 throws com.liferay.portal.SystemException;
56
57
60 public com.liferay.portal.model.Portlet update(
61 com.liferay.portal.model.Portlet portlet)
62 throws com.liferay.portal.SystemException;
63
64
76 public com.liferay.portal.model.Portlet update(
77 com.liferay.portal.model.Portlet portlet, boolean merge)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Portlet updateImpl(
81 com.liferay.portal.model.Portlet portlet, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
85 throws com.liferay.portal.NoSuchPortletException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
92 long companyId) throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
95 long companyId, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
99 long companyId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.Portlet findByCompanyId_First(
104 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.NoSuchPortletException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portal.model.Portlet findByCompanyId_Last(
109 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.NoSuchPortletException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
114 long id, long companyId,
115 com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.NoSuchPortletException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portal.model.Portlet findByC_P(long companyId,
120 java.lang.String portletId)
121 throws com.liferay.portal.NoSuchPortletException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
125 java.lang.String portletId) throws com.liferay.portal.SystemException;
126
127 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
128 java.lang.String portletId, boolean retrieveFromCache)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List<Object> findWithDynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
133 throws com.liferay.portal.SystemException;
134
135 public java.util.List<Object> findWithDynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end) throws com.liferay.portal.SystemException;
138
139 public java.util.List<com.liferay.portal.model.Portlet> findAll()
140 throws com.liferay.portal.SystemException;
141
142 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
143 int end) throws com.liferay.portal.SystemException;
144
145 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
146 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException;
148
149 public void removeByCompanyId(long companyId)
150 throws com.liferay.portal.SystemException;
151
152 public void removeByC_P(long companyId, java.lang.String portletId)
153 throws com.liferay.portal.NoSuchPortletException,
154 com.liferay.portal.SystemException;
155
156 public void removeAll() throws com.liferay.portal.SystemException;
157
158 public int countByCompanyId(long companyId)
159 throws com.liferay.portal.SystemException;
160
161 public int countByC_P(long companyId, java.lang.String portletId)
162 throws com.liferay.portal.SystemException;
163
164 public int countAll() throws com.liferay.portal.SystemException;
165 }