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