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