1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public interface MBThreadPersistence {
32 public com.liferay.portlet.messageboards.model.MBThread create(
33 long threadId);
34
35 public com.liferay.portlet.messageboards.model.MBThread remove(
36 long threadId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.messageboards.NoSuchThreadException;
39
40 public com.liferay.portlet.messageboards.model.MBThread remove(
41 com.liferay.portlet.messageboards.model.MBThread mbThread)
42 throws com.liferay.portal.SystemException;
43
44 public com.liferay.portlet.messageboards.model.MBThread update(
45 com.liferay.portlet.messageboards.model.MBThread mbThread)
46 throws com.liferay.portal.SystemException;
47
48 public com.liferay.portlet.messageboards.model.MBThread update(
49 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
50 throws com.liferay.portal.SystemException;
51
52 public com.liferay.portlet.messageboards.model.MBThread updateImpl(
53 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
54 throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
57 long threadId)
58 throws com.liferay.portal.SystemException,
59 com.liferay.portlet.messageboards.NoSuchThreadException;
60
61 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
62 long threadId) throws com.liferay.portal.SystemException;
63
64 public java.util.List findByCategoryId(long categoryId)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByCategoryId(long categoryId, int begin, int end)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List findByCategoryId(long categoryId, 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.MBThread findByCategoryId_First(
75 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.SystemException,
77 com.liferay.portlet.messageboards.NoSuchThreadException;
78
79 public com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
80 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.messageboards.NoSuchThreadException;
83
84 public com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
85 long threadId, long categoryId,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.messageboards.NoSuchThreadException;
89
90 public java.util.List findWithDynamicQuery(
91 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List findWithDynamicQuery(
95 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
96 int begin, int end) throws com.liferay.portal.SystemException;
97
98 public java.util.List findAll() throws com.liferay.portal.SystemException;
99
100 public java.util.List findAll(int begin, int end)
101 throws com.liferay.portal.SystemException;
102
103 public java.util.List findAll(int begin, int end,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException;
106
107 public void removeByCategoryId(long categoryId)
108 throws com.liferay.portal.SystemException;
109
110 public void removeAll() throws com.liferay.portal.SystemException;
111
112 public int countByCategoryId(long categoryId)
113 throws com.liferay.portal.SystemException;
114
115 public int countAll() throws com.liferay.portal.SystemException;
116 }