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