com.liferay.portlet.messageboards.service.persistence
Class MBBanUtil
java.lang.Object
com.liferay.portlet.messageboards.service.persistence.MBBanUtil
- public class MBBanUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByBanUserId(long banUserId)
|
static int |
countByG_B(long groupId,
long banUserId)
|
static int |
countByGroupId(long groupId)
|
static int |
countByUserId(long userId)
|
static com.liferay.portlet.messageboards.model.MBBan |
create(long banId)
|
static com.liferay.portlet.messageboards.model.MBBan |
fetchByG_B(long groupId,
long banUserId)
|
static com.liferay.portlet.messageboards.model.MBBan |
fetchByPrimaryKey(long banId)
|
static java.util.List |
findAll()
|
static java.util.List |
findAll(int begin,
int end)
|
static java.util.List |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByBanUserId_First(long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByBanUserId_Last(long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan[] |
findByBanUserId_PrevAndNext(long banId,
long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByBanUserId(long banUserId)
|
static java.util.List |
findByBanUserId(long banUserId,
int begin,
int end)
|
static java.util.List |
findByBanUserId(long banUserId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByG_B(long groupId,
long banUserId)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan[] |
findByGroupId_PrevAndNext(long banId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByGroupId(long groupId)
|
static java.util.List |
findByGroupId(long groupId,
int begin,
int end)
|
static java.util.List |
findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByPrimaryKey(long banId)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.messageboards.model.MBBan[] |
findByUserId_PrevAndNext(long banId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByUserId(long userId)
|
static java.util.List |
findByUserId(long userId,
int begin,
int end)
|
static java.util.List |
findByUserId(long userId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static MBBanPersistence |
getPersistence()
|
static com.liferay.portlet.messageboards.model.MBBan |
remove(long banId)
|
static com.liferay.portlet.messageboards.model.MBBan |
remove(com.liferay.portlet.messageboards.model.MBBan mbBan)
|
static void |
removeAll()
|
static void |
removeByBanUserId(long banUserId)
|
static void |
removeByG_B(long groupId,
long banUserId)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(MBBanPersistence persistence)
|
static com.liferay.portlet.messageboards.model.MBBan |
update(com.liferay.portlet.messageboards.model.MBBan mbBan)
|
static com.liferay.portlet.messageboards.model.MBBan |
update(com.liferay.portlet.messageboards.model.MBBan mbBan,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBBanUtil
public MBBanUtil()
create
public static com.liferay.portlet.messageboards.model.MBBan create(long banId)
remove
public static com.liferay.portlet.messageboards.model.MBBan remove(long banId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
remove
public static com.liferay.portlet.messageboards.model.MBBan remove(com.liferay.portlet.messageboards.model.MBBan mbBan)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.messageboards.model.MBBan update(com.liferay.portlet.messageboards.model.MBBan mbBan)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.messageboards.model.MBBan update(com.liferay.portlet.messageboards.model.MBBan mbBan,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(long banId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
fetchByPrimaryKey
public static com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(long banId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List findByGroupId(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByGroupId_Last
public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByGroupId_PrevAndNext
public static com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(long banId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByUserId
public static java.util.List findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List findByUserId(long userId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List findByUserId(long userId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static com.liferay.portlet.messageboards.model.MBBan findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByUserId_Last
public static com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByUserId_PrevAndNext
public static com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(long banId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByBanUserId
public static java.util.List findByBanUserId(long banUserId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByBanUserId
public static java.util.List findByBanUserId(long banUserId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByBanUserId
public static java.util.List findByBanUserId(long banUserId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByBanUserId_First
public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByBanUserId_Last
public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByBanUserId_PrevAndNext
public static com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(long banId,
long banUserId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
findByG_B
public static com.liferay.portlet.messageboards.model.MBBan findByG_B(long groupId,
long banUserId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
fetchByG_B
public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B(long groupId,
long banUserId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByBanUserId
public static void removeByBanUserId(long banUserId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_B
public static void removeByG_B(long groupId,
long banUserId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.messageboards.NoSuchBanException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.messageboards.NoSuchBanException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
public static int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByBanUserId
public static int countByBanUserId(long banUserId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_B
public static int countByG_B(long groupId,
long banUserId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static MBBanPersistence getPersistence()
setPersistence
public void setPersistence(MBBanPersistence persistence)