1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBDiscussionUtil {
32 public static com.liferay.portlet.messageboards.model.MBDiscussion create(
33 long discussionId) {
34 return getPersistence().create(discussionId);
35 }
36
37 public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
38 long discussionId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.messageboards.NoSuchDiscussionException {
41 return getPersistence().remove(discussionId);
42 }
43
44 public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
45 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(mbDiscussion);
48 }
49
50 public static com.liferay.portlet.messageboards.model.MBDiscussion update(
51 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(mbDiscussion);
54 }
55
56 public static com.liferay.portlet.messageboards.model.MBDiscussion update(
57 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(mbDiscussion, merge);
60 }
61
62 public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
63 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(mbDiscussion, merge);
66 }
67
68 public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
69 long discussionId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.messageboards.NoSuchDiscussionException {
72 return getPersistence().findByPrimaryKey(discussionId);
73 }
74
75 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
76 long discussionId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(discussionId);
78 }
79
80 public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
81 long classNameId, long classPK)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.messageboards.NoSuchDiscussionException {
84 return getPersistence().findByC_C(classNameId, classPK);
85 }
86
87 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
88 long classNameId, long classPK)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByC_C(classNameId, classPK);
91 }
92
93 public static java.util.List findWithDynamicQuery(
94 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
95 throws com.liferay.portal.SystemException {
96 return getPersistence().findWithDynamicQuery(queryInitializer);
97 }
98
99 public static java.util.List findWithDynamicQuery(
100 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
101 int begin, int end) throws com.liferay.portal.SystemException {
102 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
103 end);
104 }
105
106 public static java.util.List findAll()
107 throws com.liferay.portal.SystemException {
108 return getPersistence().findAll();
109 }
110
111 public static java.util.List findAll(int begin, int end)
112 throws com.liferay.portal.SystemException {
113 return getPersistence().findAll(begin, end);
114 }
115
116 public static java.util.List findAll(int begin, int end,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().findAll(begin, end, obc);
120 }
121
122 public static void removeByC_C(long classNameId, long classPK)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.messageboards.NoSuchDiscussionException {
125 getPersistence().removeByC_C(classNameId, classPK);
126 }
127
128 public static void removeAll() throws com.liferay.portal.SystemException {
129 getPersistence().removeAll();
130 }
131
132 public static int countByC_C(long classNameId, long classPK)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().countByC_C(classNameId, classPK);
135 }
136
137 public static int countAll() throws com.liferay.portal.SystemException {
138 return getPersistence().countAll();
139 }
140
141 public static MBDiscussionPersistence getPersistence() {
142 return _getUtil()._persistence;
143 }
144
145 public void setPersistence(MBDiscussionPersistence persistence) {
146 _persistence = persistence;
147 }
148
149 private static MBDiscussionUtil _getUtil() {
150 if (_util == null) {
151 _util = (MBDiscussionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
152 }
153
154 return _util;
155 }
156
157 private static final String _UTIL = MBDiscussionUtil.class.getName();
158 private static MBDiscussionUtil _util;
159 private MBDiscussionPersistence _persistence;
160 }