1
22
23 package com.liferay.portlet.polls.service.persistence;
24
25
31 public interface PollsQuestionPersistence {
32 public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
33
34 public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.polls.NoSuchQuestionException;
37
38 public com.liferay.portlet.polls.model.PollsQuestion remove(
39 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.polls.model.PollsQuestion update(
43 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.polls.model.PollsQuestion update(
47 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
48 boolean merge) throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
51 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
52 boolean merge) throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
55 long questionId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.polls.NoSuchQuestionException;
58
59 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
60 long questionId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByUuid(java.lang.String uuid)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
73 java.lang.String uuid,
74 com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portlet.polls.NoSuchQuestionException;
77
78 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
79 java.lang.String uuid,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.polls.NoSuchQuestionException;
83
84 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
85 long questionId, java.lang.String uuid,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.polls.NoSuchQuestionException;
89
90 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
91 java.lang.String uuid, long groupId)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portlet.polls.NoSuchQuestionException;
94
95 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
96 java.lang.String uuid, long groupId)
97 throws com.liferay.portal.SystemException;
98
99 public java.util.List findByGroupId(long groupId)
100 throws com.liferay.portal.SystemException;
101
102 public java.util.List findByGroupId(long groupId, int begin, int end)
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List findByGroupId(long groupId, int begin, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
110 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.polls.NoSuchQuestionException;
113
114 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
115 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.polls.NoSuchQuestionException;
118
119 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
120 long questionId, long groupId,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.polls.NoSuchQuestionException;
124
125 public java.util.List findWithDynamicQuery(
126 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
127 throws com.liferay.portal.SystemException;
128
129 public java.util.List findWithDynamicQuery(
130 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
131 int begin, int end) throws com.liferay.portal.SystemException;
132
133 public java.util.List findAll() throws com.liferay.portal.SystemException;
134
135 public java.util.List findAll(int begin, int end)
136 throws com.liferay.portal.SystemException;
137
138 public java.util.List findAll(int begin, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByUuid(java.lang.String uuid)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByUUID_G(java.lang.String uuid, long groupId)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.polls.NoSuchQuestionException;
148
149 public void removeByGroupId(long groupId)
150 throws com.liferay.portal.SystemException;
151
152 public void removeAll() throws com.liferay.portal.SystemException;
153
154 public int countByUuid(java.lang.String uuid)
155 throws com.liferay.portal.SystemException;
156
157 public int countByUUID_G(java.lang.String uuid, long groupId)
158 throws com.liferay.portal.SystemException;
159
160 public int countByGroupId(long groupId)
161 throws com.liferay.portal.SystemException;
162
163 public int countAll() throws com.liferay.portal.SystemException;
164 }