1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.SystemException {
92 return getPersistence().remove(listTypeId);
93 }
94
95 public static com.liferay.portal.model.ListType updateImpl(
96 com.liferay.portal.model.ListType listType, boolean merge)
97 throws com.liferay.portal.kernel.exception.SystemException {
98 return getPersistence().updateImpl(listType, merge);
99 }
100
101 public static com.liferay.portal.model.ListType findByPrimaryKey(
102 int listTypeId)
103 throws com.liferay.portal.NoSuchListTypeException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().findByPrimaryKey(listTypeId);
106 }
107
108 public static com.liferay.portal.model.ListType fetchByPrimaryKey(
109 int listTypeId)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getPersistence().fetchByPrimaryKey(listTypeId);
112 }
113
114 public static java.util.List<com.liferay.portal.model.ListType> findByType(
115 java.lang.String type)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().findByType(type);
118 }
119
120 public static java.util.List<com.liferay.portal.model.ListType> findByType(
121 java.lang.String type, int start, int end)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByType(type, start, end);
124 }
125
126 public static java.util.List<com.liferay.portal.model.ListType> findByType(
127 java.lang.String type, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence().findByType(type, start, end, obc);
131 }
132
133 public static com.liferay.portal.model.ListType findByType_First(
134 java.lang.String type,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.NoSuchListTypeException,
137 com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().findByType_First(type, obc);
139 }
140
141 public static com.liferay.portal.model.ListType findByType_Last(
142 java.lang.String type,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.NoSuchListTypeException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findByType_Last(type, obc);
147 }
148
149 public static com.liferay.portal.model.ListType[] findByType_PrevAndNext(
150 int listTypeId, java.lang.String type,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.NoSuchListTypeException,
153 com.liferay.portal.kernel.exception.SystemException {
154 return getPersistence().findByType_PrevAndNext(listTypeId, type, obc);
155 }
156
157 public static java.util.List<com.liferay.portal.model.ListType> findAll()
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findAll();
160 }
161
162 public static java.util.List<com.liferay.portal.model.ListType> findAll(
163 int start, int end)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findAll(start, end);
166 }
167
168 public static java.util.List<com.liferay.portal.model.ListType> findAll(
169 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().findAll(start, end, obc);
172 }
173
174 public static void removeByType(java.lang.String type)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 getPersistence().removeByType(type);
177 }
178
179 public static void removeAll()
180 throws com.liferay.portal.kernel.exception.SystemException {
181 getPersistence().removeAll();
182 }
183
184 public static int countByType(java.lang.String type)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence().countByType(type);
187 }
188
189 public static int countAll()
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().countAll();
192 }
193
194 public static ListTypePersistence getPersistence() {
195 if (_persistence == null) {
196 _persistence = (ListTypePersistence)PortalBeanLocatorUtil.locate(ListTypePersistence.class.getName());
197 }
198
199 return _persistence;
200 }
201
202 public void setPersistence(ListTypePersistence persistence) {
203 _persistence = persistence;
204 }
205
206 private static ListTypePersistence _persistence;
207 }