1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class ListTypeUtil {
29 public static void cacheResult(com.liferay.portal.model.ListType listType) {
30 getPersistence().cacheResult(listType);
31 }
32
33 public static void cacheResult(
34 java.util.List<com.liferay.portal.model.ListType> listTypes) {
35 getPersistence().cacheResult(listTypes);
36 }
37
38 public static void clearCache() {
39 getPersistence().clearCache();
40 }
41
42 public static com.liferay.portal.model.ListType create(int listTypeId) {
43 return getPersistence().create(listTypeId);
44 }
45
46 public static com.liferay.portal.model.ListType remove(int listTypeId)
47 throws com.liferay.portal.NoSuchListTypeException,
48 com.liferay.portal.SystemException {
49 return getPersistence().remove(listTypeId);
50 }
51
52 public static com.liferay.portal.model.ListType remove(
53 com.liferay.portal.model.ListType listType)
54 throws com.liferay.portal.SystemException {
55 return getPersistence().remove(listType);
56 }
57
58
61 public static com.liferay.portal.model.ListType update(
62 com.liferay.portal.model.ListType listType)
63 throws com.liferay.portal.SystemException {
64 return getPersistence().update(listType);
65 }
66
67
80 public static com.liferay.portal.model.ListType update(
81 com.liferay.portal.model.ListType listType, boolean merge)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().update(listType, merge);
84 }
85
86 public static com.liferay.portal.model.ListType updateImpl(
87 com.liferay.portal.model.ListType listType, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().updateImpl(listType, merge);
90 }
91
92 public static com.liferay.portal.model.ListType findByPrimaryKey(
93 int listTypeId)
94 throws com.liferay.portal.NoSuchListTypeException,
95 com.liferay.portal.SystemException {
96 return getPersistence().findByPrimaryKey(listTypeId);
97 }
98
99 public static com.liferay.portal.model.ListType fetchByPrimaryKey(
100 int listTypeId) throws com.liferay.portal.SystemException {
101 return getPersistence().fetchByPrimaryKey(listTypeId);
102 }
103
104 public static java.util.List<com.liferay.portal.model.ListType> findByType(
105 java.lang.String type) throws com.liferay.portal.SystemException {
106 return getPersistence().findByType(type);
107 }
108
109 public static java.util.List<com.liferay.portal.model.ListType> findByType(
110 java.lang.String type, int start, int end)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().findByType(type, start, end);
113 }
114
115 public static java.util.List<com.liferay.portal.model.ListType> findByType(
116 java.lang.String type, int start, int end,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().findByType(type, start, end, obc);
120 }
121
122 public static com.liferay.portal.model.ListType findByType_First(
123 java.lang.String type,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.NoSuchListTypeException,
126 com.liferay.portal.SystemException {
127 return getPersistence().findByType_First(type, obc);
128 }
129
130 public static com.liferay.portal.model.ListType findByType_Last(
131 java.lang.String type,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.NoSuchListTypeException,
134 com.liferay.portal.SystemException {
135 return getPersistence().findByType_Last(type, obc);
136 }
137
138 public static com.liferay.portal.model.ListType[] findByType_PrevAndNext(
139 int listTypeId, java.lang.String type,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.NoSuchListTypeException,
142 com.liferay.portal.SystemException {
143 return getPersistence().findByType_PrevAndNext(listTypeId, type, obc);
144 }
145
146 public static java.util.List<Object> findWithDynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findWithDynamicQuery(dynamicQuery);
150 }
151
152 public static java.util.List<Object> findWithDynamicQuery(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
154 int end) throws com.liferay.portal.SystemException {
155 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
156 }
157
158 public static java.util.List<com.liferay.portal.model.ListType> findAll()
159 throws com.liferay.portal.SystemException {
160 return getPersistence().findAll();
161 }
162
163 public static java.util.List<com.liferay.portal.model.ListType> findAll(
164 int start, int end) throws com.liferay.portal.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.SystemException {
171 return getPersistence().findAll(start, end, obc);
172 }
173
174 public static void removeByType(java.lang.String type)
175 throws com.liferay.portal.SystemException {
176 getPersistence().removeByType(type);
177 }
178
179 public static void removeAll() throws com.liferay.portal.SystemException {
180 getPersistence().removeAll();
181 }
182
183 public static int countByType(java.lang.String type)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().countByType(type);
186 }
187
188 public static int countAll() throws com.liferay.portal.SystemException {
189 return getPersistence().countAll();
190 }
191
192 public static ListTypePersistence getPersistence() {
193 return _persistence;
194 }
195
196 public void setPersistence(ListTypePersistence persistence) {
197 _persistence = persistence;
198 }
199
200 private static ListTypePersistence _persistence;
201 }