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.model.ListType;
21
22 import java.util.List;
23
24
37 public class ListTypeUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57 int start, int end) throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59 }
60
61
64 public static ListType remove(ListType listType) throws SystemException {
65 return getPersistence().remove(listType);
66 }
67
68
71 public static ListType update(ListType listType, boolean merge)
72 throws SystemException {
73 return getPersistence().update(listType, merge);
74 }
75
76 public static void cacheResult(com.liferay.portal.model.ListType listType) {
77 getPersistence().cacheResult(listType);
78 }
79
80 public static void cacheResult(
81 java.util.List<com.liferay.portal.model.ListType> listTypes) {
82 getPersistence().cacheResult(listTypes);
83 }
84
85 public static com.liferay.portal.model.ListType create(int listTypeId) {
86 return getPersistence().create(listTypeId);
87 }
88
89 public static com.liferay.portal.model.ListType remove(int listTypeId)
90 throws com.liferay.portal.NoSuchListTypeException,
91 com.liferay.portal.SystemException {
92 return getPersistence().remove(listTypeId);
93 }
94
95
98 public static com.liferay.portal.model.ListType update(
99 com.liferay.portal.model.ListType listType)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().update(listType);
102 }
103
104 public static com.liferay.portal.model.ListType updateImpl(
105 com.liferay.portal.model.ListType listType, boolean merge)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().updateImpl(listType, merge);
108 }
109
110 public static com.liferay.portal.model.ListType findByPrimaryKey(
111 int listTypeId)
112 throws com.liferay.portal.NoSuchListTypeException,
113 com.liferay.portal.SystemException {
114 return getPersistence().findByPrimaryKey(listTypeId);
115 }
116
117 public static com.liferay.portal.model.ListType fetchByPrimaryKey(
118 int listTypeId) throws com.liferay.portal.SystemException {
119 return getPersistence().fetchByPrimaryKey(listTypeId);
120 }
121
122 public static java.util.List<com.liferay.portal.model.ListType> findByType(
123 java.lang.String type) throws com.liferay.portal.SystemException {
124 return getPersistence().findByType(type);
125 }
126
127 public static java.util.List<com.liferay.portal.model.ListType> findByType(
128 java.lang.String type, int start, int end)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findByType(type, start, end);
131 }
132
133 public static java.util.List<com.liferay.portal.model.ListType> findByType(
134 java.lang.String type, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findByType(type, start, end, obc);
138 }
139
140 public static com.liferay.portal.model.ListType findByType_First(
141 java.lang.String type,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.NoSuchListTypeException,
144 com.liferay.portal.SystemException {
145 return getPersistence().findByType_First(type, obc);
146 }
147
148 public static com.liferay.portal.model.ListType findByType_Last(
149 java.lang.String type,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.NoSuchListTypeException,
152 com.liferay.portal.SystemException {
153 return getPersistence().findByType_Last(type, obc);
154 }
155
156 public static com.liferay.portal.model.ListType[] findByType_PrevAndNext(
157 int listTypeId, java.lang.String type,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.NoSuchListTypeException,
160 com.liferay.portal.SystemException {
161 return getPersistence().findByType_PrevAndNext(listTypeId, type, obc);
162 }
163
164 public static java.util.List<com.liferay.portal.model.ListType> findAll()
165 throws com.liferay.portal.SystemException {
166 return getPersistence().findAll();
167 }
168
169 public static java.util.List<com.liferay.portal.model.ListType> findAll(
170 int start, int end) throws com.liferay.portal.SystemException {
171 return getPersistence().findAll(start, end);
172 }
173
174 public static java.util.List<com.liferay.portal.model.ListType> findAll(
175 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().findAll(start, end, obc);
178 }
179
180 public static void removeByType(java.lang.String type)
181 throws com.liferay.portal.SystemException {
182 getPersistence().removeByType(type);
183 }
184
185 public static void removeAll() throws com.liferay.portal.SystemException {
186 getPersistence().removeAll();
187 }
188
189 public static int countByType(java.lang.String type)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().countByType(type);
192 }
193
194 public static int countAll() throws com.liferay.portal.SystemException {
195 return getPersistence().countAll();
196 }
197
198 public static ListTypePersistence getPersistence() {
199 if (_persistence == null) {
200 _persistence = (ListTypePersistence)PortalBeanLocatorUtil.locate(ListTypePersistence.class.getName());
201 }
202
203 return _persistence;
204 }
205
206 public void setPersistence(ListTypePersistence persistence) {
207 _persistence = persistence;
208 }
209
210 private static ListTypePersistence _persistence;
211 }