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.PollsQuestion;
28
29
42 public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
43 public void cacheResult(
44 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
45
46 public void cacheResult(
47 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
48
49 public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
50
51 public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.polls.NoSuchQuestionException;
54
55
58 public com.liferay.portlet.polls.model.PollsQuestion update(
59 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
63 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
64 boolean merge) throws com.liferay.portal.SystemException;
65
66 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
67 long questionId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portlet.polls.NoSuchQuestionException;
70
71 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
72 long questionId) throws com.liferay.portal.SystemException;
73
74 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
75 java.lang.String uuid) throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> 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.PollsQuestion> 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.PollsQuestion 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.NoSuchQuestionException;
91
92 public com.liferay.portlet.polls.model.PollsQuestion 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.NoSuchQuestionException;
97
98 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
99 long questionId, java.lang.String uuid,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.polls.NoSuchQuestionException;
103
104 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
105 java.lang.String uuid, long groupId)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.polls.NoSuchQuestionException;
108
109 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
110 java.lang.String uuid, long groupId)
111 throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
114 java.lang.String uuid, long groupId, boolean retrieveFromCache)
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
118 long groupId) throws com.liferay.portal.SystemException;
119
120 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
121 long groupId, int start, int end)
122 throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
125 long groupId, int start, int end,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException;
128
129 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
130 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.polls.NoSuchQuestionException;
133
134 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
135 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.polls.NoSuchQuestionException;
138
139 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
140 long questionId, long groupId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.polls.NoSuchQuestionException;
144
145 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
146 throws com.liferay.portal.SystemException;
147
148 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
149 int start, int end) throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> 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 removeByUUID_G(java.lang.String uuid, long groupId)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.polls.NoSuchQuestionException;
161
162 public void removeByGroupId(long groupId)
163 throws com.liferay.portal.SystemException;
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 countByUUID_G(java.lang.String uuid, long groupId)
171 throws com.liferay.portal.SystemException;
172
173 public int countByGroupId(long groupId)
174 throws com.liferay.portal.SystemException;
175
176 public int countAll() throws com.liferay.portal.SystemException;
177 }