1
22
23 package com.liferay.portlet.polls.service.persistence;
24
25
31 public interface PollsVotePersistence {
32 public com.liferay.portlet.polls.model.PollsVote create(long voteId);
33
34 public com.liferay.portlet.polls.model.PollsVote remove(long voteId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.polls.NoSuchVoteException;
37
38 public com.liferay.portlet.polls.model.PollsVote remove(
39 com.liferay.portlet.polls.model.PollsVote pollsVote)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.polls.model.PollsVote update(
43 com.liferay.portlet.polls.model.PollsVote pollsVote)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.polls.model.PollsVote update(
47 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.polls.model.PollsVote updateImpl(
51 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
55 long voteId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.polls.NoSuchVoteException;
58
59 public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
60 long voteId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByQuestionId(long questionId)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByQuestionId(long questionId, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByQuestionId(long questionId, 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.PollsVote findByQuestionId_First(
73 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portlet.polls.NoSuchVoteException;
76
77 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
78 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.polls.NoSuchVoteException;
81
82 public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
83 long voteId, long questionId,
84 com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException,
86 com.liferay.portlet.polls.NoSuchVoteException;
87
88 public java.util.List findByChoiceId(long choiceId)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List findByChoiceId(long choiceId, int begin, int end)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List findByChoiceId(long choiceId, int begin, int end,
95 com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
99 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.polls.NoSuchVoteException;
102
103 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
104 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.polls.NoSuchVoteException;
107
108 public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
109 long voteId, long choiceId,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.polls.NoSuchVoteException;
113
114 public com.liferay.portlet.polls.model.PollsVote findByQ_U(
115 long questionId, long userId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.polls.NoSuchVoteException;
118
119 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
120 long questionId, long userId) throws com.liferay.portal.SystemException;
121
122 public java.util.List findWithDynamicQuery(
123 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
124 throws com.liferay.portal.SystemException;
125
126 public java.util.List findWithDynamicQuery(
127 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
128 int begin, int end) throws com.liferay.portal.SystemException;
129
130 public java.util.List findAll() throws com.liferay.portal.SystemException;
131
132 public java.util.List findAll(int begin, int end)
133 throws com.liferay.portal.SystemException;
134
135 public java.util.List findAll(int begin, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException;
138
139 public void removeByQuestionId(long questionId)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByChoiceId(long choiceId)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByQ_U(long questionId, long userId)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.polls.NoSuchVoteException;
148
149 public void removeAll() throws com.liferay.portal.SystemException;
150
151 public int countByQuestionId(long questionId)
152 throws com.liferay.portal.SystemException;
153
154 public int countByChoiceId(long choiceId)
155 throws com.liferay.portal.SystemException;
156
157 public int countByQ_U(long questionId, long userId)
158 throws com.liferay.portal.SystemException;
159
160 public int countAll() throws com.liferay.portal.SystemException;
161 }