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 findByPrimaryKey(
51 long questionId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.polls.NoSuchQuestionException;
54
55 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
56 long questionId) throws com.liferay.portal.SystemException;
57
58 public java.util.List findByGroupId(long groupId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByGroupId(long groupId, int begin, int end)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByGroupId(long groupId, int begin, int end,
65 com.liferay.portal.kernel.util.OrderByComparator obc)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
69 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.polls.NoSuchQuestionException;
72
73 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
74 long groupId, 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[] findByGroupId_PrevAndNext(
79 long questionId, long groupId,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.polls.NoSuchQuestionException;
83
84 public java.util.List findWithDynamicQuery(
85 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
86 throws com.liferay.portal.SystemException;
87
88 public java.util.List findWithDynamicQuery(
89 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
90 int begin, int end) throws com.liferay.portal.SystemException;
91
92 public java.util.List findAll() throws com.liferay.portal.SystemException;
93
94 public java.util.List findAll(int begin, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List findAll(int begin, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 public void removeByGroupId(long groupId)
102 throws com.liferay.portal.SystemException;
103
104 public void removeAll() throws com.liferay.portal.SystemException;
105
106 public int countByGroupId(long groupId)
107 throws com.liferay.portal.SystemException;
108
109 public int countAll() throws com.liferay.portal.SystemException;
110 }