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