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