1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBThreadUtil {
32 public static com.liferay.portlet.messageboards.model.MBThread create(
33 long threadId) {
34 return getPersistence().create(threadId);
35 }
36
37 public static com.liferay.portlet.messageboards.model.MBThread remove(
38 long threadId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.messageboards.NoSuchThreadException {
41 return getPersistence().remove(threadId);
42 }
43
44 public static com.liferay.portlet.messageboards.model.MBThread remove(
45 com.liferay.portlet.messageboards.model.MBThread mbThread)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(mbThread);
48 }
49
50
53 public static com.liferay.portlet.messageboards.model.MBThread update(
54 com.liferay.portlet.messageboards.model.MBThread mbThread)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(mbThread);
57 }
58
59
72 public static com.liferay.portlet.messageboards.model.MBThread update(
73 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(mbThread, merge);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
79 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(mbThread, merge);
82 }
83
84 public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
85 long threadId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.messageboards.NoSuchThreadException {
88 return getPersistence().findByPrimaryKey(threadId);
89 }
90
91 public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
92 long threadId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(threadId);
94 }
95
96 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
97 long categoryId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByCategoryId(categoryId);
99 }
100
101 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
102 long categoryId, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByCategoryId(categoryId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
108 long categoryId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByCategoryId(categoryId, start, end, obc);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
115 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.messageboards.NoSuchThreadException {
118 return getPersistence().findByCategoryId_First(categoryId, obc);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
122 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.messageboards.NoSuchThreadException {
125 return getPersistence().findByCategoryId_Last(categoryId, obc);
126 }
127
128 public static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
129 long threadId, long categoryId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.messageboards.NoSuchThreadException {
133 return getPersistence()
134 .findByCategoryId_PrevAndNext(threadId, categoryId, obc);
135 }
136
137 public static java.util.List<Object> findWithDynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findWithDynamicQuery(dynamicQuery);
141 }
142
143 public static java.util.List<Object> findWithDynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end) throws com.liferay.portal.SystemException {
146 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findAll();
152 }
153
154 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
155 int start, int end) throws com.liferay.portal.SystemException {
156 return getPersistence().findAll(start, end);
157 }
158
159 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
160 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findAll(start, end, obc);
163 }
164
165 public static void removeByCategoryId(long categoryId)
166 throws com.liferay.portal.SystemException {
167 getPersistence().removeByCategoryId(categoryId);
168 }
169
170 public static void removeAll() throws com.liferay.portal.SystemException {
171 getPersistence().removeAll();
172 }
173
174 public static int countByCategoryId(long categoryId)
175 throws com.liferay.portal.SystemException {
176 return getPersistence().countByCategoryId(categoryId);
177 }
178
179 public static int countAll() throws com.liferay.portal.SystemException {
180 return getPersistence().countAll();
181 }
182
183 public static void registerListener(
184 com.liferay.portal.model.ModelListener listener) {
185 getPersistence().registerListener(listener);
186 }
187
188 public static void unregisterListener(
189 com.liferay.portal.model.ModelListener listener) {
190 getPersistence().unregisterListener(listener);
191 }
192
193 public static MBThreadPersistence getPersistence() {
194 return _persistence;
195 }
196
197 public void setPersistence(MBThreadPersistence persistence) {
198 _persistence = persistence;
199 }
200
201 private static MBThreadPersistence _persistence;
202 }