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.kernel.exception.SystemException,
45 com.liferay.portlet.polls.NoSuchQuestionException;
46
47 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
48 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
49 boolean merge)
50 throws com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
53 long questionId)
54 throws com.liferay.portal.kernel.exception.SystemException,
55 com.liferay.portlet.polls.NoSuchQuestionException;
56
57 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
58 long questionId)
59 throws com.liferay.portal.kernel.exception.SystemException;
60
61 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
62 java.lang.String uuid)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
66 java.lang.String uuid, int start, int end)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
70 java.lang.String uuid, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72 throws com.liferay.portal.kernel.exception.SystemException;
73
74 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
75 java.lang.String uuid,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException,
78 com.liferay.portlet.polls.NoSuchQuestionException;
79
80 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
81 java.lang.String uuid,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.kernel.exception.SystemException,
84 com.liferay.portlet.polls.NoSuchQuestionException;
85
86 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
87 long questionId, java.lang.String uuid,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.kernel.exception.SystemException,
90 com.liferay.portlet.polls.NoSuchQuestionException;
91
92 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
93 java.lang.String uuid, long groupId)
94 throws com.liferay.portal.kernel.exception.SystemException,
95 com.liferay.portlet.polls.NoSuchQuestionException;
96
97 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
98 java.lang.String uuid, long groupId)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
102 java.lang.String uuid, long groupId, boolean retrieveFromCache)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
106 long groupId)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
110 long groupId, int start, int end)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
114 long groupId, int start, int end,
115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
119 long groupId,
120 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.polls.NoSuchQuestionException;
123
124 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
125 long groupId,
126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.polls.NoSuchQuestionException;
129
130 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
131 long questionId, long groupId,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException,
134 com.liferay.portlet.polls.NoSuchQuestionException;
135
136 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
140 int start, int end)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
144 int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 public void removeByUuid(java.lang.String uuid)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public void removeByUUID_G(java.lang.String uuid, long groupId)
152 throws com.liferay.portal.kernel.exception.SystemException,
153 com.liferay.portlet.polls.NoSuchQuestionException;
154
155 public void removeByGroupId(long groupId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 public void removeAll()
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 public int countByUuid(java.lang.String uuid)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 public int countByUUID_G(java.lang.String uuid, long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 public int countByGroupId(long groupId)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170 public int countAll()
171 throws com.liferay.portal.kernel.exception.SystemException;
172 }