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 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 public static com.liferay.portlet.messageboards.model.MBThread update(
57 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
58 throws com.liferay.portal.SystemException {
59 return getPersistence().update(mbThread, merge);
60 }
61
62 public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
63 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(mbThread, merge);
66 }
67
68 public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
69 long threadId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.messageboards.NoSuchThreadException {
72 return getPersistence().findByPrimaryKey(threadId);
73 }
74
75 public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
76 long threadId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(threadId);
78 }
79
80 public static java.util.List findByCategoryId(long categoryId)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByCategoryId(categoryId);
83 }
84
85 public static java.util.List findByCategoryId(long categoryId, int begin,
86 int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findByCategoryId(categoryId, begin, end);
88 }
89
90 public static java.util.List findByCategoryId(long categoryId, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByCategoryId(categoryId, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
97 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.messageboards.NoSuchThreadException {
100 return getPersistence().findByCategoryId_First(categoryId, obc);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
104 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.messageboards.NoSuchThreadException {
107 return getPersistence().findByCategoryId_Last(categoryId, obc);
108 }
109
110 public static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
111 long threadId, long categoryId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.messageboards.NoSuchThreadException {
115 return getPersistence().findByCategoryId_PrevAndNext(threadId,
116 categoryId, obc);
117 }
118
119 public static java.util.List findWithDynamicQuery(
120 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findWithDynamicQuery(queryInitializer);
123 }
124
125 public static java.util.List findWithDynamicQuery(
126 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
127 int begin, int end) throws com.liferay.portal.SystemException {
128 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
129 end);
130 }
131
132 public static java.util.List findAll()
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findAll();
135 }
136
137 public static java.util.List findAll(int begin, int end)
138 throws com.liferay.portal.SystemException {
139 return getPersistence().findAll(begin, end);
140 }
141
142 public static java.util.List findAll(int begin, int end,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findAll(begin, end, obc);
146 }
147
148 public static void removeByCategoryId(long categoryId)
149 throws com.liferay.portal.SystemException {
150 getPersistence().removeByCategoryId(categoryId);
151 }
152
153 public static void removeAll() throws com.liferay.portal.SystemException {
154 getPersistence().removeAll();
155 }
156
157 public static int countByCategoryId(long categoryId)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().countByCategoryId(categoryId);
160 }
161
162 public static int countAll() throws com.liferay.portal.SystemException {
163 return getPersistence().countAll();
164 }
165
166 public static MBThreadPersistence getPersistence() {
167 return _getUtil()._persistence;
168 }
169
170 public void setPersistence(MBThreadPersistence persistence) {
171 _persistence = persistence;
172 }
173
174 private static MBThreadUtil _getUtil() {
175 if (_util == null) {
176 _util = (MBThreadUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
177 }
178
179 return _util;
180 }
181
182 private static final String _UTIL = MBThreadUtil.class.getName();
183 private static MBThreadUtil _util;
184 private MBThreadPersistence _persistence;
185 }