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