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.SystemException,
38 com.liferay.portal.NoSuchPortletException {
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 public static com.liferay.portal.model.Portlet update(
49 com.liferay.portal.model.Portlet portlet)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(portlet);
52 }
53
54 public static com.liferay.portal.model.Portlet update(
55 com.liferay.portal.model.Portlet portlet, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(portlet, merge);
58 }
59
60 public static com.liferay.portal.model.Portlet updateImpl(
61 com.liferay.portal.model.Portlet portlet, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(portlet, merge);
64 }
65
66 public static com.liferay.portal.model.Portlet findByPrimaryKey(long id)
67 throws com.liferay.portal.SystemException,
68 com.liferay.portal.NoSuchPortletException {
69 return getPersistence().findByPrimaryKey(id);
70 }
71
72 public static com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
73 throws com.liferay.portal.SystemException {
74 return getPersistence().fetchByPrimaryKey(id);
75 }
76
77 public static java.util.List findByCompanyId(long companyId)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().findByCompanyId(companyId);
80 }
81
82 public static java.util.List findByCompanyId(long companyId, int begin,
83 int end) throws com.liferay.portal.SystemException {
84 return getPersistence().findByCompanyId(companyId, begin, end);
85 }
86
87 public static java.util.List findByCompanyId(long companyId, int begin,
88 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().findByCompanyId(companyId, begin, end, obc);
91 }
92
93 public static com.liferay.portal.model.Portlet findByCompanyId_First(
94 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portal.NoSuchPortletException {
97 return getPersistence().findByCompanyId_First(companyId, obc);
98 }
99
100 public static com.liferay.portal.model.Portlet findByCompanyId_Last(
101 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portal.NoSuchPortletException {
104 return getPersistence().findByCompanyId_Last(companyId, obc);
105 }
106
107 public static com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
108 long id, long companyId,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portal.NoSuchPortletException {
112 return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
113 }
114
115 public static com.liferay.portal.model.Portlet findByC_P(long companyId,
116 java.lang.String portletId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portal.NoSuchPortletException {
119 return getPersistence().findByC_P(companyId, portletId);
120 }
121
122 public static com.liferay.portal.model.Portlet fetchByC_P(long companyId,
123 java.lang.String portletId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByC_P(companyId, portletId);
125 }
126
127 public static java.util.List findWithDynamicQuery(
128 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findWithDynamicQuery(queryInitializer);
131 }
132
133 public static java.util.List findWithDynamicQuery(
134 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
135 int begin, int end) throws com.liferay.portal.SystemException {
136 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
137 end);
138 }
139
140 public static java.util.List findAll()
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findAll();
143 }
144
145 public static java.util.List findAll(int begin, int end)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().findAll(begin, end);
148 }
149
150 public static java.util.List findAll(int begin, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findAll(begin, end, obc);
154 }
155
156 public static void removeByCompanyId(long companyId)
157 throws com.liferay.portal.SystemException {
158 getPersistence().removeByCompanyId(companyId);
159 }
160
161 public static void removeByC_P(long companyId, java.lang.String portletId)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portal.NoSuchPortletException {
164 getPersistence().removeByC_P(companyId, portletId);
165 }
166
167 public static void removeAll() throws com.liferay.portal.SystemException {
168 getPersistence().removeAll();
169 }
170
171 public static int countByCompanyId(long companyId)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().countByCompanyId(companyId);
174 }
175
176 public static int countByC_P(long companyId, java.lang.String portletId)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().countByC_P(companyId, portletId);
179 }
180
181 public static int countAll() throws com.liferay.portal.SystemException {
182 return getPersistence().countAll();
183 }
184
185 public static PortletPersistence getPersistence() {
186 return _getUtil()._persistence;
187 }
188
189 public void setPersistence(PortletPersistence persistence) {
190 _persistence = persistence;
191 }
192
193 private static PortletUtil _getUtil() {
194 if (_util == null) {
195 _util = (PortletUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
196 }
197
198 return _util;
199 }
200
201 private static final String _UTIL = PortletUtil.class.getName();
202 private static PortletUtil _util;
203 private PortletPersistence _persistence;
204 }