1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public interface MBMessageFlagPersistence {
32 public com.liferay.portlet.messageboards.model.MBMessageFlag create(
33 long messageFlagId);
34
35 public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
36 long messageFlagId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
39
40 public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
41 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
42 throws com.liferay.portal.SystemException;
43
44 public com.liferay.portlet.messageboards.model.MBMessageFlag update(
45 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
46 throws com.liferay.portal.SystemException;
47
48 public com.liferay.portlet.messageboards.model.MBMessageFlag update(
49 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
50 boolean merge) throws com.liferay.portal.SystemException;
51
52 public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
53 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
54 boolean merge) throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
57 long messageFlagId)
58 throws com.liferay.portal.SystemException,
59 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
60
61 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
62 long messageFlagId) throws com.liferay.portal.SystemException;
63
64 public java.util.List findByUserId(long userId)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByUserId(long userId, int begin, int end)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List findByUserId(long userId, int begin, int end,
71 com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
75 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.SystemException,
77 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
78
79 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
80 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
83
84 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
85 long messageFlagId, long userId,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
89
90 public java.util.List findByMessageId(long messageId)
91 throws com.liferay.portal.SystemException;
92
93 public java.util.List findByMessageId(long messageId, int begin, int end)
94 throws com.liferay.portal.SystemException;
95
96 public java.util.List findByMessageId(long messageId, int begin, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
101 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
104
105 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
106 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
109
110 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
111 long messageFlagId, long messageId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
115
116 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(
117 long userId, long messageId)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
120
121 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(
122 long userId, long messageId) throws com.liferay.portal.SystemException;
123
124 public java.util.List findWithDynamicQuery(
125 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List findWithDynamicQuery(
129 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
130 int begin, int end) throws com.liferay.portal.SystemException;
131
132 public java.util.List findAll() throws com.liferay.portal.SystemException;
133
134 public java.util.List findAll(int begin, int end)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List findAll(int begin, int end,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException;
140
141 public void removeByUserId(long userId)
142 throws com.liferay.portal.SystemException;
143
144 public void removeByMessageId(long messageId)
145 throws com.liferay.portal.SystemException;
146
147 public void removeByU_M(long userId, long messageId)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
150
151 public void removeAll() throws com.liferay.portal.SystemException;
152
153 public int countByUserId(long userId)
154 throws com.liferay.portal.SystemException;
155
156 public int countByMessageId(long messageId)
157 throws com.liferay.portal.SystemException;
158
159 public int countByU_M(long userId, long messageId)
160 throws com.liferay.portal.SystemException;
161
162 public int countAll() throws com.liferay.portal.SystemException;
163 }