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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      extended by com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence, com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence

public class JournalArticleResourcePersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
implements com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence

View Source

Author:
Brian Wing Shun Chan

Field Summary
protected  com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence
           
protected  com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners
 
Constructor Summary
JournalArticleResourcePersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 int countAll()
           
 int countByG_A(long groupId, java.lang.String articleId)
           
 int countByGroupId(long groupId)
           
 com.liferay.portlet.journal.model.JournalArticleResource create(long resourcePrimKey)
           
 com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(long groupId, java.lang.String articleId)
           
 com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(long resourcePrimKey)
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(int start, int end)
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.journal.model.JournalArticleResource findByG_A(long groupId, java.lang.String articleId)
           
 com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId)
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(long resourcePrimKey)
           
 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)
           
 com.liferay.portlet.journal.model.JournalArticleResource remove(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
           
 com.liferay.portlet.journal.model.JournalArticleResource remove(long resourcePrimKey)
           
 void removeAll()
           
 void removeByG_A(long groupId, java.lang.String articleId)
           
 void removeByGroupId(long groupId)
           
protected  com.liferay.portlet.journal.model.JournalArticleResource removeImpl(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
           
 com.liferay.portlet.journal.model.JournalArticleResource update(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
          Deprecated. Use update(JournalArticleResource journalArticleResource, boolean merge).
 com.liferay.portlet.journal.model.JournalArticleResource update(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource, boolean merge)
          Add, update, or merge, the entity.
 com.liferay.portlet.journal.model.JournalArticleResource updateImpl(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Field Detail

journalArticlePersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalArticlePersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence

journalArticleImagePersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence

journalArticleResourcePersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence

journalContentSearchPersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence

journalFeedPersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalFeedPersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence

journalStructurePersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalStructurePersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence

journalTemplatePersistence

@BeanReference(name="com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence.impl")
protected com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence
Constructor Detail

JournalArticleResourcePersistenceImpl

public JournalArticleResourcePersistenceImpl()
Method Detail

create

public com.liferay.portlet.journal.model.JournalArticleResource create(long resourcePrimKey)
Specified by:
create in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence

remove

public com.liferay.portlet.journal.model.JournalArticleResource remove(long resourcePrimKey)
                                                                throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                       com.liferay.portal.SystemException
Specified by:
remove in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

remove

public com.liferay.portlet.journal.model.JournalArticleResource remove(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
                                                                throws com.liferay.portal.SystemException
Specified by:
remove in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

removeImpl

protected com.liferay.portlet.journal.model.JournalArticleResource removeImpl(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
                                                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

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

Specified by:
update in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portlet.journal.model.JournalArticleResource update(com.liferay.portlet.journal.model.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.

Specified by:
update in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
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 com.liferay.portlet.journal.model.JournalArticleResource updateImpl(com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
                                                                           boolean merge)
                                                                    throws com.liferay.portal.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(long resourcePrimKey)
                                                                          throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                                 com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(long resourcePrimKey)
                                                                           throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId)
                                                                                       throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId,
                                                                                              int start,
                                                                                              int end)
                                                                                       throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(long groupId,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                       throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(long groupId,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                             throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                                    com.liferay.portal.SystemException
Specified by:
findByGroupId_First in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

findByGroupId_Last

public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(long groupId,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                            throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                                   com.liferay.portal.SystemException
Specified by:
findByGroupId_Last in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

findByGroupId_PrevAndNext

public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(long resourcePrimKey,
                                                                                            long groupId,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                     throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                                            com.liferay.portal.SystemException
Specified by:
findByGroupId_PrevAndNext in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

findByG_A

public com.liferay.portlet.journal.model.JournalArticleResource findByG_A(long groupId,
                                                                          java.lang.String articleId)
                                                                   throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                                                                          com.liferay.portal.SystemException
Specified by:
findByG_A in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

fetchByG_A

public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(long groupId,
                                                                           java.lang.String articleId)
                                                                    throws com.liferay.portal.SystemException
Specified by:
fetchByG_A in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
                                                                                 throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(int start,
                                                                                        int end,
                                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                 throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Specified by:
removeByGroupId in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

removeByG_A

public void removeByG_A(long groupId,
                        java.lang.String articleId)
                 throws com.liferay.portlet.journal.NoSuchArticleResourceException,
                        com.liferay.portal.SystemException
Specified by:
removeByG_A in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portlet.journal.NoSuchArticleResourceException
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Specified by:
removeAll in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Specified by:
countByGroupId in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

countByG_A

public int countByG_A(long groupId,
                      java.lang.String articleId)
               throws com.liferay.portal.SystemException
Specified by:
countByG_A in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Specified by:
countAll in interface com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence
Throws:
com.liferay.portal.SystemException

afterPropertiesSet

public void afterPropertiesSet()