com.liferay.portlet.bookmarks.service.persistence
Interface BookmarksEntryPersistence


public interface BookmarksEntryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByFolderId(long folderId)
           
 int countByUuid(java.lang.String uuid)
           
 BookmarksEntry create(long entryId)
           
 BookmarksEntry fetchByPrimaryKey(long entryId)
           
 java.util.List<BookmarksEntry> findAll()
           
 java.util.List<BookmarksEntry> findAll(int start, int end)
           
 java.util.List<BookmarksEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry findByFolderId_First(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry findByFolderId_Last(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry[] findByFolderId_PrevAndNext(long entryId, long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<BookmarksEntry> findByFolderId(long folderId)
           
 java.util.List<BookmarksEntry> findByFolderId(long folderId, int start, int end)
           
 java.util.List<BookmarksEntry> findByFolderId(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry findByPrimaryKey(long entryId)
           
 BookmarksEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 BookmarksEntry[] findByUuid_PrevAndNext(long entryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid)
           
 java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 void registerListener(ModelListener listener)
           
 BookmarksEntry remove(BookmarksEntry bookmarksEntry)
           
 BookmarksEntry remove(long entryId)
           
 void removeAll()
           
 void removeByFolderId(long folderId)
           
 void removeByUuid(java.lang.String uuid)
           
 void unregisterListener(ModelListener listener)
           
 BookmarksEntry update(BookmarksEntry bookmarksEntry)
          Deprecated. Use update(BookmarksEntry bookmarksEntry, boolean merge).
 BookmarksEntry update(BookmarksEntry bookmarksEntry, boolean merge)
          Add, update, or merge, the entity.
 BookmarksEntry updateImpl(BookmarksEntry bookmarksEntry, boolean merge)
           
 

Method Detail

create

BookmarksEntry create(long entryId)

remove

BookmarksEntry remove(long entryId)
                      throws com.liferay.portal.SystemException,
                             NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

remove

BookmarksEntry remove(BookmarksEntry bookmarksEntry)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

BookmarksEntry update(BookmarksEntry bookmarksEntry)
                      throws com.liferay.portal.SystemException
Deprecated. Use update(BookmarksEntry bookmarksEntry, boolean merge).

Throws:
com.liferay.portal.SystemException

update

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 merge
merge - 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

BookmarksEntry updateImpl(BookmarksEntry bookmarksEntry,
                          boolean merge)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

BookmarksEntry findByPrimaryKey(long entryId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

fetchByPrimaryKey

BookmarksEntry fetchByPrimaryKey(long entryId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

java.util.List<BookmarksEntry> findByUuid(java.lang.String uuid,
                                          int start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

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

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

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

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

findByFolderId

java.util.List<BookmarksEntry> findByFolderId(long folderId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

java.util.List<BookmarksEntry> findByFolderId(long folderId,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

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

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

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

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

findWithDynamicQuery

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

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

java.util.List<BookmarksEntry> findAll()
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<BookmarksEntry> findAll(int start,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByFolderId

void removeByFolderId(long folderId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFolderId

int countByFolderId(long folderId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)