1
22
23 package com.liferay.portlet.polls.service.persistence;
24
25
31 public interface PollsChoicePersistence {
32 public com.liferay.portlet.polls.model.PollsChoice create(long choiceId);
33
34 public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
35 throws com.liferay.portlet.polls.NoSuchChoiceException,
36 com.liferay.portal.SystemException;
37
38 public com.liferay.portlet.polls.model.PollsChoice remove(
39 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.polls.model.PollsChoice update(
43 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.polls.model.PollsChoice update(
47 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.polls.model.PollsChoice updateImpl(
51 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
55 long choiceId)
56 throws com.liferay.portlet.polls.NoSuchChoiceException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
60 long choiceId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByUuid(java.lang.String uuid)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
73 java.lang.String uuid,
74 com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portlet.polls.NoSuchChoiceException,
76 com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
79 java.lang.String uuid,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portlet.polls.NoSuchChoiceException,
82 com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
85 long choiceId, java.lang.String uuid,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portlet.polls.NoSuchChoiceException,
88 com.liferay.portal.SystemException;
89
90 public java.util.List findByQuestionId(long questionId)
91 throws com.liferay.portal.SystemException;
92
93 public java.util.List findByQuestionId(long questionId, int begin, int end)
94 throws com.liferay.portal.SystemException;
95
96 public java.util.List findByQuestionId(long questionId, int begin, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
101 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portlet.polls.NoSuchChoiceException,
103 com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
106 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portlet.polls.NoSuchChoiceException,
108 com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
111 long choiceId, long questionId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portlet.polls.NoSuchChoiceException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
117 long questionId, java.lang.String name)
118 throws com.liferay.portlet.polls.NoSuchChoiceException,
119 com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
122 long questionId, java.lang.String name)
123 throws com.liferay.portal.SystemException;
124
125 public java.util.List findWithDynamicQuery(
126 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
127 throws com.liferay.portal.SystemException;
128
129 public java.util.List findWithDynamicQuery(
130 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
131 int begin, int end) throws com.liferay.portal.SystemException;
132
133 public java.util.List findAll() throws com.liferay.portal.SystemException;
134
135 public java.util.List findAll(int begin, int end)
136 throws com.liferay.portal.SystemException;
137
138 public java.util.List findAll(int begin, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByUuid(java.lang.String uuid)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByQuestionId(long questionId)
146 throws com.liferay.portal.SystemException;
147
148 public void removeByQ_N(long questionId, java.lang.String name)
149 throws com.liferay.portlet.polls.NoSuchChoiceException,
150 com.liferay.portal.SystemException;
151
152 public void removeAll() throws com.liferay.portal.SystemException;
153
154 public int countByUuid(java.lang.String uuid)
155 throws com.liferay.portal.SystemException;
156
157 public int countByQuestionId(long questionId)
158 throws com.liferay.portal.SystemException;
159
160 public int countByQ_N(long questionId, java.lang.String name)
161 throws com.liferay.portal.SystemException;
162
163 public int countAll() throws com.liferay.portal.SystemException;
164 }