com.liferay.portlet.bookmarks.service.persistence
Class BookmarksEntryUtil
java.lang.Object
com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryUtil
public class BookmarksEntryUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
cacheResult(BookmarksEntry bookmarksEntry)
|
static void |
cacheResult(java.util.List<BookmarksEntry> bookmarksEntries)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByFolderId(long folderId)
|
static int |
countByG_U(long groupId,
long userId)
|
static int |
countByGroupId(long groupId)
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
|
static int |
countByUuid(java.lang.String uuid)
|
static BookmarksEntry |
create(long entryId)
|
static BookmarksEntry |
fetchByPrimaryKey(long entryId)
|
static BookmarksEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
|
static BookmarksEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
|
static java.util.List<BookmarksEntry> |
findAll()
|
static java.util.List<BookmarksEntry> |
findAll(int start,
int end)
|
static java.util.List<BookmarksEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry[] |
findByFolderId_PrevAndNext(long entryId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<BookmarksEntry> |
findByFolderId(long folderId)
|
static java.util.List<BookmarksEntry> |
findByFolderId(long folderId,
int start,
int end)
|
static java.util.List<BookmarksEntry> |
findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry[] |
findByG_U_PrevAndNext(long entryId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<BookmarksEntry> |
findByG_U(long groupId,
long userId)
|
static java.util.List<BookmarksEntry> |
findByG_U(long groupId,
long userId,
int start,
int end)
|
static java.util.List<BookmarksEntry> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry[] |
findByGroupId_PrevAndNext(long entryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<BookmarksEntry> |
findByGroupId(long groupId)
|
static java.util.List<BookmarksEntry> |
findByGroupId(long groupId,
int start,
int end)
|
static java.util.List<BookmarksEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByPrimaryKey(long entryId)
|
static BookmarksEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
|
static BookmarksEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static BookmarksEntry[] |
findByUuid_PrevAndNext(long entryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<BookmarksEntry> |
findByUuid(java.lang.String uuid)
|
static java.util.List<BookmarksEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<BookmarksEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static BookmarksEntryPersistence |
getPersistence()
|
static BookmarksEntry |
remove(BookmarksEntry bookmarksEntry)
|
static BookmarksEntry |
remove(long entryId)
|
static void |
removeAll()
|
static void |
removeByFolderId(long folderId)
|
static void |
removeByG_U(long groupId,
long userId)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByUUID_G(java.lang.String uuid,
long groupId)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(BookmarksEntryPersistence persistence)
|
static BookmarksEntry |
update(BookmarksEntry bookmarksEntry)
Deprecated. Use update(BookmarksEntry bookmarksEntry, boolean merge) . |
static BookmarksEntry |
update(BookmarksEntry bookmarksEntry,
boolean merge)
Add, update, or merge, the entity. |
static BookmarksEntry |
updateImpl(BookmarksEntry bookmarksEntry,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookmarksEntryUtil
public BookmarksEntryUtil()
cacheResult
public static void cacheResult(BookmarksEntry bookmarksEntry)
cacheResult
public static void cacheResult(java.util.List<BookmarksEntry> bookmarksEntries)
clearCache
public static void clearCache()
create
public static BookmarksEntry create(long entryId)
remove
public static BookmarksEntry remove(long entryId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
remove
public static BookmarksEntry remove(BookmarksEntry bookmarksEntry)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static BookmarksEntry update(BookmarksEntry bookmarksEntry)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(BookmarksEntry bookmarksEntry, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static BookmarksEntry update(BookmarksEntry bookmarksEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
bookmarksEntry
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when bookmarksEntry is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static BookmarksEntry updateImpl(BookmarksEntry bookmarksEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static BookmarksEntry findByPrimaryKey(long entryId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
fetchByPrimaryKey
public static BookmarksEntry fetchByPrimaryKey(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static BookmarksEntry findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByUuid_Last
public static BookmarksEntry findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByUuid_PrevAndNext
public static BookmarksEntry[] findByUuid_PrevAndNext(long entryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByUUID_G
public static BookmarksEntry findByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
fetchByUUID_G
public static BookmarksEntry fetchByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByUUID_G
public static BookmarksEntry fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<BookmarksEntry> findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<BookmarksEntry> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<BookmarksEntry> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static BookmarksEntry findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByGroupId_Last
public static BookmarksEntry findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByGroupId_PrevAndNext
public static BookmarksEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByFolderId
public static java.util.List<BookmarksEntry> findByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<BookmarksEntry> findByFolderId(long folderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<BookmarksEntry> findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId_First
public static BookmarksEntry findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByFolderId_Last
public static BookmarksEntry findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByFolderId_PrevAndNext
public static BookmarksEntry[] findByFolderId_PrevAndNext(long entryId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByG_U
public static java.util.List<BookmarksEntry> findByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U
public static java.util.List<BookmarksEntry> findByG_U(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U
public static java.util.List<BookmarksEntry> findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U_First
public static BookmarksEntry findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByG_U_Last
public static BookmarksEntry findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByG_U_PrevAndNext
public static BookmarksEntry[] findByG_U_PrevAndNext(long entryId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<BookmarksEntry> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<BookmarksEntry> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<BookmarksEntry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUUID_G
public static void removeByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByFolderId
public static void removeByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_U
public static void removeByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUUID_G
public static int countByUUID_G(java.lang.String uuid,
long groupId)
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
countByFolderId
public static int countByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_U
public static int countByG_U(long groupId,
long userId)
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 BookmarksEntryPersistence getPersistence()
setPersistence
public void setPersistence(BookmarksEntryPersistence persistence)