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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
106 throws com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
109 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.polls.NoSuchChoiceException;
112
113 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
114 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.polls.NoSuchChoiceException;
117
118 public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
119 long choiceId, long questionId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.polls.NoSuchChoiceException;
123
124 public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
125 long questionId, java.lang.String name)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.polls.NoSuchChoiceException;
128
129 public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
130 long questionId, java.lang.String name)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
134 long questionId, java.lang.String name, boolean retrieveFromCache)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll()
138 throws com.liferay.portal.SystemException;
139
140 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
141 int start, int end) throws com.liferay.portal.SystemException;
142
143 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
144 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException;
146
147 public void removeByUuid(java.lang.String uuid)
148 throws com.liferay.portal.SystemException;
149
150 public void removeByQuestionId(long questionId)
151 throws com.liferay.portal.SystemException;
152
153 public void removeByQ_N(long questionId, java.lang.String name)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.polls.NoSuchChoiceException;
156
157 public void removeAll() throws com.liferay.portal.SystemException;
158
159 public int countByUuid(java.lang.String uuid)
160 throws com.liferay.portal.SystemException;
161
162 public int countByQuestionId(long questionId)
163 throws com.liferay.portal.SystemException;
164
165 public int countByQ_N(long questionId, java.lang.String name)
166 throws com.liferay.portal.SystemException;
167
168 public int countAll() throws com.liferay.portal.SystemException;
169 }