1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class PortletUtil {
32 public static com.liferay.portal.model.Portlet create(long id) {
33 return getPersistence().create(id);
34 }
35
36 public static com.liferay.portal.model.Portlet remove(long id)
37 throws com.liferay.portal.NoSuchPortletException,
38 com.liferay.portal.SystemException {
39 return getPersistence().remove(id);
40 }
41
42 public static com.liferay.portal.model.Portlet remove(
43 com.liferay.portal.model.Portlet portlet)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(portlet);
46 }
47
48
51 public static com.liferay.portal.model.Portlet update(
52 com.liferay.portal.model.Portlet portlet)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(portlet);
55 }
56
57
70 public static com.liferay.portal.model.Portlet update(
71 com.liferay.portal.model.Portlet portlet, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(portlet, merge);
74 }
75
76 public static com.liferay.portal.model.Portlet updateImpl(
77 com.liferay.portal.model.Portlet portlet, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(portlet, merge);
80 }
81
82 public static com.liferay.portal.model.Portlet findByPrimaryKey(long id)
83 throws com.liferay.portal.NoSuchPortletException,
84 com.liferay.portal.SystemException {
85 return getPersistence().findByPrimaryKey(id);
86 }
87
88 public static com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByPrimaryKey(id);
91 }
92
93 public static java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
94 long companyId) throws com.liferay.portal.SystemException {
95 return getPersistence().findByCompanyId(companyId);
96 }
97
98 public static java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
99 long companyId, int start, int end)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().findByCompanyId(companyId, start, end);
102 }
103
104 public static java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
105 long companyId, int start, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException {
108 return getPersistence().findByCompanyId(companyId, start, end, obc);
109 }
110
111 public static com.liferay.portal.model.Portlet findByCompanyId_First(
112 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.NoSuchPortletException,
114 com.liferay.portal.SystemException {
115 return getPersistence().findByCompanyId_First(companyId, obc);
116 }
117
118 public static com.liferay.portal.model.Portlet findByCompanyId_Last(
119 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.NoSuchPortletException,
121 com.liferay.portal.SystemException {
122 return getPersistence().findByCompanyId_Last(companyId, obc);
123 }
124
125 public static com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
126 long id, long companyId,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.NoSuchPortletException,
129 com.liferay.portal.SystemException {
130 return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
131 }
132
133 public static com.liferay.portal.model.Portlet findByC_P(long companyId,
134 java.lang.String portletId)
135 throws com.liferay.portal.NoSuchPortletException,
136 com.liferay.portal.SystemException {
137 return getPersistence().findByC_P(companyId, portletId);
138 }
139
140 public static com.liferay.portal.model.Portlet fetchByC_P(long companyId,
141 java.lang.String portletId) throws com.liferay.portal.SystemException {
142 return getPersistence().fetchByC_P(companyId, portletId);
143 }
144
145 public static java.util.List<Object> findWithDynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.SystemException {
148 return getPersistence().findWithDynamicQuery(dynamicQuery);
149 }
150
151 public static java.util.List<Object> findWithDynamicQuery(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
153 int end) throws com.liferay.portal.SystemException {
154 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
155 }
156
157 public static java.util.List<com.liferay.portal.model.Portlet> findAll()
158 throws com.liferay.portal.SystemException {
159 return getPersistence().findAll();
160 }
161
162 public static java.util.List<com.liferay.portal.model.Portlet> findAll(
163 int start, int end) throws com.liferay.portal.SystemException {
164 return getPersistence().findAll(start, end);
165 }
166
167 public static java.util.List<com.liferay.portal.model.Portlet> findAll(
168 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException {
170 return getPersistence().findAll(start, end, obc);
171 }
172
173 public static void removeByCompanyId(long companyId)
174 throws com.liferay.portal.SystemException {
175 getPersistence().removeByCompanyId(companyId);
176 }
177
178 public static void removeByC_P(long companyId, java.lang.String portletId)
179 throws com.liferay.portal.NoSuchPortletException,
180 com.liferay.portal.SystemException {
181 getPersistence().removeByC_P(companyId, portletId);
182 }
183
184 public static void removeAll() throws com.liferay.portal.SystemException {
185 getPersistence().removeAll();
186 }
187
188 public static int countByCompanyId(long companyId)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().countByCompanyId(companyId);
191 }
192
193 public static int countByC_P(long companyId, java.lang.String portletId)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().countByC_P(companyId, portletId);
196 }
197
198 public static int countAll() throws com.liferay.portal.SystemException {
199 return getPersistence().countAll();
200 }
201
202 public static PortletPersistence getPersistence() {
203 return _persistence;
204 }
205
206 public void setPersistence(PortletPersistence persistence) {
207 _persistence = persistence;
208 }
209
210 private static PortletPersistence _persistence;
211 }