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