com.liferay.portlet.journal.service.persistence
Class JournalArticleResourceUtil

java.lang.Object
  extended by com.liferay.portlet.journal.service.persistence.JournalArticleResourceUtil

public class JournalArticleResourceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
JournalArticleResourceUtil()
           
 
Method Summary
static int countAll()
           
static int countByG_A(long groupId, java.lang.String articleId)
           
static int countByGroupId(long groupId)
           
static JournalArticleResource create(long resourcePrimKey)
           
static JournalArticleResource fetchByG_A(long groupId, java.lang.String articleId)
           
static JournalArticleResource fetchByPrimaryKey(long resourcePrimKey)
           
static java.util.List<JournalArticleResource> findAll()
           
static java.util.List<JournalArticleResource> findAll(int start, int end)
           
static java.util.List<JournalArticleResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static JournalArticleResource findByG_A(long groupId, java.lang.String articleId)
           
static JournalArticleResource findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static JournalArticleResource findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static JournalArticleResource[] findByGroupId_PrevAndNext(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<JournalArticleResource> findByGroupId(long groupId)
           
static java.util.List<JournalArticleResource> findByGroupId(long groupId, int start, int end)
           
static java.util.List<JournalArticleResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static JournalArticleResource findByPrimaryKey(long resourcePrimKey)
           
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 JournalArticleResourcePersistence getPersistence()
           
static JournalArticleResource remove(JournalArticleResource journalArticleResource)
           
static JournalArticleResource remove(long resourcePrimKey)
           
static void removeAll()
           
static void removeByG_A(long groupId, java.lang.String articleId)
           
static void removeByGroupId(long groupId)
           
 void setPersistence(JournalArticleResourcePersistence persistence)
           
static JournalArticleResource update(JournalArticleResource journalArticleResource)
          Deprecated. Use update(JournalArticleResource journalArticleResource, boolean merge).
static JournalArticleResource update(JournalArticleResource journalArticleResource, boolean merge)
          Add, update, or merge, the entity.
static JournalArticleResource updateImpl(JournalArticleResource journalArticleResource, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalArticleResourceUtil

public JournalArticleResourceUtil()
Method Detail

create

public static JournalArticleResource create(long resourcePrimKey)

remove

public static JournalArticleResource remove(long resourcePrimKey)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

remove

public static JournalArticleResource remove(JournalArticleResource journalArticleResource)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static JournalArticleResource update(JournalArticleResource journalArticleResource)
                                     throws com.liferay.portal.SystemException
Deprecated. Use update(JournalArticleResource journalArticleResource, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static JournalArticleResource update(JournalArticleResource journalArticleResource,
                                            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:
journalArticleResource - 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 journalArticleResource 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 JournalArticleResource updateImpl(JournalArticleResource journalArticleResource,
                                                boolean merge)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static JournalArticleResource findByPrimaryKey(long resourcePrimKey)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

fetchByPrimaryKey

public static JournalArticleResource fetchByPrimaryKey(long resourcePrimKey)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<JournalArticleResource> findByGroupId(long groupId)
                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<JournalArticleResource> findByGroupId(long groupId,
                                                                   int start,
                                                                   int end)
                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<JournalArticleResource> 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 JournalArticleResource findByGroupId_First(long groupId,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

findByGroupId_Last

public static JournalArticleResource findByGroupId_Last(long groupId,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

findByGroupId_PrevAndNext

public static JournalArticleResource[] findByGroupId_PrevAndNext(long resourcePrimKey,
                                                                 long groupId,
                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                          throws com.liferay.portal.SystemException,
                                                                 NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

findByG_A

public static JournalArticleResource findByG_A(long groupId,
                                               java.lang.String articleId)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

fetchByG_A

public static JournalArticleResource fetchByG_A(long groupId,
                                                java.lang.String articleId)
                                         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)
                                                             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<JournalArticleResource> findAll()
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List<JournalArticleResource> findAll(int start,
                                                             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

removeByG_A

public static void removeByG_A(long groupId,
                               java.lang.String articleId)
                        throws com.liferay.portal.SystemException,
                               NoSuchArticleResourceException
Throws:
com.liferay.portal.SystemException
NoSuchArticleResourceException

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

countByG_A

public static int countByG_A(long groupId,
                             java.lang.String articleId)
                      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 JournalArticleResourcePersistence getPersistence()

setPersistence

public void setPersistence(JournalArticleResourcePersistence persistence)