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.PollsQuestion;
20
21
34 public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
35 public void cacheResult(
36 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
40
41 public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
42
43 public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.polls.NoSuchQuestionException;
46
47
50 public com.liferay.portlet.polls.model.PollsQuestion update(
51 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
55 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
56 boolean merge) throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
59 long questionId)
60 throws com.liferay.portal.SystemException,
61 com.liferay.portlet.polls.NoSuchQuestionException;
62
63 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
64 long questionId) throws com.liferay.portal.SystemException;
65
66 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
67 java.lang.String uuid) throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> 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.PollsQuestion> 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.PollsQuestion 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.NoSuchQuestionException;
83
84 public com.liferay.portlet.polls.model.PollsQuestion 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.NoSuchQuestionException;
89
90 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
91 long questionId, java.lang.String uuid,
92 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.polls.NoSuchQuestionException;
95
96 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
97 java.lang.String uuid, long groupId)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.polls.NoSuchQuestionException;
100
101 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
102 java.lang.String uuid, long groupId)
103 throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
106 java.lang.String uuid, long groupId, boolean retrieveFromCache)
107 throws com.liferay.portal.SystemException;
108
109 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
110 long groupId) throws com.liferay.portal.SystemException;
111
112 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
113 long groupId, int start, int end)
114 throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
117 long groupId, int start, int end,
118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119 throws com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
122 long groupId,
123 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.polls.NoSuchQuestionException;
126
127 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
128 long groupId,
129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.polls.NoSuchQuestionException;
132
133 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
134 long questionId, long groupId,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.polls.NoSuchQuestionException;
138
139 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
140 throws com.liferay.portal.SystemException;
141
142 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
143 int start, int end) throws com.liferay.portal.SystemException;
144
145 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> 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 removeByUUID_G(java.lang.String uuid, long groupId)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.polls.NoSuchQuestionException;
156
157 public void removeByGroupId(long groupId)
158 throws com.liferay.portal.SystemException;
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 countByUUID_G(java.lang.String uuid, long groupId)
166 throws com.liferay.portal.SystemException;
167
168 public int countByGroupId(long groupId)
169 throws com.liferay.portal.SystemException;
170
171 public int countAll() throws com.liferay.portal.SystemException;
172 }