1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public interface MBCategoryPersistence {
32 public com.liferay.portlet.messageboards.model.MBCategory create(
33 long categoryId);
34
35 public com.liferay.portlet.messageboards.model.MBCategory remove(
36 long categoryId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.messageboards.NoSuchCategoryException;
39
40 public com.liferay.portlet.messageboards.model.MBCategory remove(
41 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
42 throws com.liferay.portal.SystemException;
43
44 public com.liferay.portlet.messageboards.model.MBCategory update(
45 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
46 throws com.liferay.portal.SystemException;
47
48 public com.liferay.portlet.messageboards.model.MBCategory update(
49 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
50 boolean merge) throws com.liferay.portal.SystemException;
51
52 public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
53 long categoryId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.messageboards.NoSuchCategoryException;
56
57 public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
58 long categoryId) throws com.liferay.portal.SystemException;
59
60 public java.util.List findByGroupId(long groupId)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByGroupId(long groupId, int begin, int end)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List findByGroupId(long groupId, int begin, int end,
67 com.liferay.portal.kernel.util.OrderByComparator obc)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
71 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException,
73 com.liferay.portlet.messageboards.NoSuchCategoryException;
74
75 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
76 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portlet.messageboards.NoSuchCategoryException;
79
80 public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
81 long categoryId, long groupId,
82 com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.messageboards.NoSuchCategoryException;
85
86 public java.util.List findByCompanyId(long companyId)
87 throws com.liferay.portal.SystemException;
88
89 public java.util.List findByCompanyId(long companyId, int begin, int end)
90 throws com.liferay.portal.SystemException;
91
92 public java.util.List findByCompanyId(long companyId, int begin, int end,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
97 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.messageboards.NoSuchCategoryException;
100
101 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
102 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.messageboards.NoSuchCategoryException;
105
106 public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
107 long categoryId, long companyId,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.messageboards.NoSuchCategoryException;
111
112 public java.util.List findByG_P(long groupId, long parentCategoryId)
113 throws com.liferay.portal.SystemException;
114
115 public java.util.List findByG_P(long groupId, long parentCategoryId,
116 int begin, int end) throws com.liferay.portal.SystemException;
117
118 public java.util.List findByG_P(long groupId, long parentCategoryId,
119 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
123 long groupId, long parentCategoryId,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.messageboards.NoSuchCategoryException;
127
128 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
129 long groupId, long parentCategoryId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.messageboards.NoSuchCategoryException;
133
134 public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
135 long categoryId, long groupId, long parentCategoryId,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.messageboards.NoSuchCategoryException;
139
140 public java.util.List findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List findWithDynamicQuery(
145 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
146 int begin, int end) throws com.liferay.portal.SystemException;
147
148 public java.util.List findAll() throws com.liferay.portal.SystemException;
149
150 public java.util.List findAll(int begin, int end)
151 throws com.liferay.portal.SystemException;
152
153 public java.util.List findAll(int begin, int end,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByGroupId(long groupId)
158 throws com.liferay.portal.SystemException;
159
160 public void removeByCompanyId(long companyId)
161 throws com.liferay.portal.SystemException;
162
163 public void removeByG_P(long groupId, long parentCategoryId)
164 throws com.liferay.portal.SystemException;
165
166 public void removeAll() throws com.liferay.portal.SystemException;
167
168 public int countByGroupId(long groupId)
169 throws com.liferay.portal.SystemException;
170
171 public int countByCompanyId(long companyId)
172 throws com.liferay.portal.SystemException;
173
174 public int countByG_P(long groupId, long parentCategoryId)
175 throws com.liferay.portal.SystemException;
176
177 public int countAll() throws com.liferay.portal.SystemException;
178 }