1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21 import com.liferay.portal.model.ListType;
22
23 import java.util.List;
24
25
38 public class ListTypeUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ListType listType) {
50 getPersistence().clearCache(listType);
51 }
52
53
56 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73 int start, int end) throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static ListType remove(ListType listType) throws SystemException {
81 return getPersistence().remove(listType);
82 }
83
84
87 public static ListType update(ListType listType, boolean merge)
88 throws SystemException {
89 return getPersistence().update(listType, merge);
90 }
91
92 public static void cacheResult(com.liferay.portal.model.ListType listType) {
93 getPersistence().cacheResult(listType);
94 }
95
96 public static void cacheResult(
97 java.util.List<com.liferay.portal.model.ListType> listTypes) {
98 getPersistence().cacheResult(listTypes);
99 }
100
101 public static com.liferay.portal.model.ListType create(int listTypeId) {
102 return getPersistence().create(listTypeId);
103 }
104
105 public static com.liferay.portal.model.ListType remove(int listTypeId)
106 throws com.liferay.portal.NoSuchListTypeException,
107 com.liferay.portal.SystemException {
108 return getPersistence().remove(listTypeId);
109 }
110
111
114 public static com.liferay.portal.model.ListType update(
115 com.liferay.portal.model.ListType listType)
116 throws com.liferay.portal.SystemException {
117 return getPersistence().update(listType);
118 }
119
120 public static com.liferay.portal.model.ListType updateImpl(
121 com.liferay.portal.model.ListType listType, boolean merge)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().updateImpl(listType, merge);
124 }
125
126 public static com.liferay.portal.model.ListType findByPrimaryKey(
127 int listTypeId)
128 throws com.liferay.portal.NoSuchListTypeException,
129 com.liferay.portal.SystemException {
130 return getPersistence().findByPrimaryKey(listTypeId);
131 }
132
133 public static com.liferay.portal.model.ListType fetchByPrimaryKey(
134 int listTypeId) throws com.liferay.portal.SystemException {
135 return getPersistence().fetchByPrimaryKey(listTypeId);
136 }
137
138 public static java.util.List<com.liferay.portal.model.ListType> findByType(
139 java.lang.String type) throws com.liferay.portal.SystemException {
140 return getPersistence().findByType(type);
141 }
142
143 public static java.util.List<com.liferay.portal.model.ListType> findByType(
144 java.lang.String type, int start, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByType(type, start, end);
147 }
148
149 public static java.util.List<com.liferay.portal.model.ListType> findByType(
150 java.lang.String type, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByType(type, start, end, orderByComparator);
154 }
155
156 public static com.liferay.portal.model.ListType findByType_First(
157 java.lang.String type,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.NoSuchListTypeException,
160 com.liferay.portal.SystemException {
161 return getPersistence().findByType_First(type, orderByComparator);
162 }
163
164 public static com.liferay.portal.model.ListType findByType_Last(
165 java.lang.String type,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.NoSuchListTypeException,
168 com.liferay.portal.SystemException {
169 return getPersistence().findByType_Last(type, orderByComparator);
170 }
171
172 public static com.liferay.portal.model.ListType[] findByType_PrevAndNext(
173 int listTypeId, java.lang.String type,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.NoSuchListTypeException,
176 com.liferay.portal.SystemException {
177 return getPersistence()
178 .findByType_PrevAndNext(listTypeId, type, orderByComparator);
179 }
180
181 public static java.util.List<com.liferay.portal.model.ListType> findAll()
182 throws com.liferay.portal.SystemException {
183 return getPersistence().findAll();
184 }
185
186 public static java.util.List<com.liferay.portal.model.ListType> findAll(
187 int start, int end) throws com.liferay.portal.SystemException {
188 return getPersistence().findAll(start, end);
189 }
190
191 public static java.util.List<com.liferay.portal.model.ListType> findAll(
192 int start, int end,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().findAll(start, end, orderByComparator);
196 }
197
198 public static void removeByType(java.lang.String type)
199 throws com.liferay.portal.SystemException {
200 getPersistence().removeByType(type);
201 }
202
203 public static void removeAll() throws com.liferay.portal.SystemException {
204 getPersistence().removeAll();
205 }
206
207 public static int countByType(java.lang.String type)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().countByType(type);
210 }
211
212 public static int countAll() throws com.liferay.portal.SystemException {
213 return getPersistence().countAll();
214 }
215
216 public static ListTypePersistence getPersistence() {
217 if (_persistence == null) {
218 _persistence = (ListTypePersistence)PortalBeanLocatorUtil.locate(ListTypePersistence.class.getName());
219
220 ReferenceRegistry.registerReference(ListTypeUtil.class,
221 "_persistence");
222 }
223
224 return _persistence;
225 }
226
227 public void setPersistence(ListTypePersistence persistence) {
228 _persistence = persistence;
229
230 ReferenceRegistry.registerReference(ListTypeUtil.class, "_persistence");
231 }
232
233 private static ListTypePersistence _persistence;
234 }