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