1
14
15 package com.liferay.portlet.polls.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class PollsChoiceLocalServiceUtil {
40 public static com.liferay.portlet.polls.model.PollsChoice addPollsChoice(
41 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addPollsChoice(pollsChoice);
44 }
45
46 public static com.liferay.portlet.polls.model.PollsChoice createPollsChoice(
47 long choiceId) {
48 return getService().createPollsChoice(choiceId);
49 }
50
51 public static void deletePollsChoice(long choiceId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deletePollsChoice(choiceId);
55 }
56
57 public static void deletePollsChoice(
58 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deletePollsChoice(pollsChoice);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.polls.model.PollsChoice getPollsChoice(
76 long choiceId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getPollsChoice(choiceId);
80 }
81
82 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> getPollsChoices(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getPollsChoices(start, end);
86 }
87
88 public static int getPollsChoicesCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getPollsChoicesCount();
91 }
92
93 public static com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
94 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updatePollsChoice(pollsChoice);
97 }
98
99 public static com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
100 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().updatePollsChoice(pollsChoice, merge);
103 }
104
105 public static com.liferay.portlet.polls.model.PollsChoice addChoice(
106 java.lang.String uuid, long questionId, java.lang.String name,
107 java.lang.String description)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return getService().addChoice(uuid, questionId, name, description);
111 }
112
113 public static com.liferay.portlet.polls.model.PollsChoice getChoice(
114 long choiceId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 return getService().getChoice(choiceId);
118 }
119
120 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices(
121 long questionId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getService().getChoices(questionId);
124 }
125
126 public static int getChoicesCount(long questionId)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().getChoicesCount(questionId);
129 }
130
131 public static com.liferay.portlet.polls.model.PollsChoice updateChoice(
132 long choiceId, long questionId, java.lang.String name,
133 java.lang.String description)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 return getService().updateChoice(choiceId, questionId, name, description);
137 }
138
139 public static PollsChoiceLocalService getService() {
140 if (_service == null) {
141 _service = (PollsChoiceLocalService)PortalBeanLocatorUtil.locate(PollsChoiceLocalService.class.getName());
142 }
143
144 return _service;
145 }
146
147 public void setService(PollsChoiceLocalService service) {
148 _service = service;
149 }
150
151 private static PollsChoiceLocalService _service;
152 }