com.liferay.portlet.journal.service.persistence
Interface JournalTemplatePersistence

All Superinterfaces:
BasePersistence

public interface JournalTemplatePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(JournalTemplate journalTemplate)
           
 void cacheResult(java.util.List<JournalTemplate> journalTemplates)
           
 void clearCache()
           
 int countAll()
           
 int countByG_S(long groupId, java.lang.String structureId)
           
 int countByG_T(long groupId, java.lang.String templateId)
           
 int countByGroupId(long groupId)
           
 int countBySmallImageId(long smallImageId)
           
 int countByTemplateId(java.lang.String templateId)
           
 int countByUUID_G(java.lang.String uuid, long groupId)
           
 int countByUuid(java.lang.String uuid)
           
 JournalTemplate create(long id)
           
 JournalTemplate fetchByG_T(long groupId, java.lang.String templateId)
           
 JournalTemplate fetchByG_T(long groupId, java.lang.String templateId, boolean retrieveFromCache)
           
 JournalTemplate fetchByPrimaryKey(long id)
           
 JournalTemplate fetchBySmallImageId(long smallImageId)
           
 JournalTemplate fetchBySmallImageId(long smallImageId, boolean retrieveFromCache)
           
 JournalTemplate fetchByUUID_G(java.lang.String uuid, long groupId)
           
 JournalTemplate fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
           
 java.util.List<JournalTemplate> findAll()
           
 java.util.List<JournalTemplate> findAll(int start, int end)
           
 java.util.List<JournalTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByG_S_First(long groupId, java.lang.String structureId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByG_S_Last(long groupId, java.lang.String structureId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate[] findByG_S_PrevAndNext(long id, long groupId, java.lang.String structureId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<JournalTemplate> findByG_S(long groupId, java.lang.String structureId)
           
 java.util.List<JournalTemplate> findByG_S(long groupId, java.lang.String structureId, int start, int end)
           
 java.util.List<JournalTemplate> findByG_S(long groupId, java.lang.String structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByG_T(long groupId, java.lang.String templateId)
           
 JournalTemplate findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate[] findByGroupId_PrevAndNext(long id, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<JournalTemplate> findByGroupId(long groupId)
           
 java.util.List<JournalTemplate> findByGroupId(long groupId, int start, int end)
           
 java.util.List<JournalTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByPrimaryKey(long id)
           
 JournalTemplate findBySmallImageId(long smallImageId)
           
 JournalTemplate findByTemplateId_First(java.lang.String templateId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByTemplateId_Last(java.lang.String templateId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate[] findByTemplateId_PrevAndNext(long id, java.lang.String templateId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId)
           
 java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId, int start, int end)
           
 java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate findByUUID_G(java.lang.String uuid, long groupId)
           
 JournalTemplate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 JournalTemplate[] findByUuid_PrevAndNext(long id, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<JournalTemplate> findByUuid(java.lang.String uuid)
           
 java.util.List<JournalTemplate> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<JournalTemplate> 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)
           
 JournalTemplate remove(JournalTemplate journalTemplate)
           
 JournalTemplate remove(long id)
           
 void removeAll()
           
 void removeByG_S(long groupId, java.lang.String structureId)
           
 void removeByG_T(long groupId, java.lang.String templateId)
           
 void removeByGroupId(long groupId)
           
 void removeBySmallImageId(long smallImageId)
           
 void removeByTemplateId(java.lang.String templateId)
           
 void removeByUUID_G(java.lang.String uuid, long groupId)
           
 void removeByUuid(java.lang.String uuid)
           
 JournalTemplate update(JournalTemplate journalTemplate)
          Deprecated. Use update(JournalTemplate journalTemplate, boolean merge).
 JournalTemplate update(JournalTemplate journalTemplate, boolean merge)
          Add, update, or merge, the entity.
 JournalTemplate updateImpl(JournalTemplate journalTemplate, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(JournalTemplate journalTemplate)

cacheResult

void cacheResult(java.util.List<JournalTemplate> journalTemplates)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

JournalTemplate create(long id)

remove

JournalTemplate remove(long id)
                       throws com.liferay.portal.SystemException,
                              NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

remove

JournalTemplate remove(JournalTemplate journalTemplate)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

JournalTemplate update(JournalTemplate journalTemplate)
                       throws com.liferay.portal.SystemException
Deprecated. Use update(JournalTemplate journalTemplate, boolean merge).

Throws:
com.liferay.portal.SystemException

update

JournalTemplate update(JournalTemplate journalTemplate,
                       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:
journalTemplate - 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 journalTemplate 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

JournalTemplate updateImpl(JournalTemplate journalTemplate,
                           boolean merge)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

JournalTemplate findByPrimaryKey(long id)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

fetchByPrimaryKey

JournalTemplate fetchByPrimaryKey(long id)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

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

findByUuid

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

findByUuid

java.util.List<JournalTemplate> 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

JournalTemplate findByUuid_First(java.lang.String uuid,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByUuid_Last

JournalTemplate findByUuid_Last(java.lang.String uuid,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByUuid_PrevAndNext

JournalTemplate[] findByUuid_PrevAndNext(long id,
                                         java.lang.String uuid,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByUUID_G

JournalTemplate findByUUID_G(java.lang.String uuid,
                             long groupId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

fetchByUUID_G

JournalTemplate fetchByUUID_G(java.lang.String uuid,
                              long groupId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByUUID_G

JournalTemplate fetchByUUID_G(java.lang.String uuid,
                              long groupId,
                              boolean retrieveFromCache)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

findByGroupId

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

findByGroupId

java.util.List<JournalTemplate> 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

JournalTemplate findByGroupId_First(long groupId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByGroupId_Last

JournalTemplate findByGroupId_Last(long groupId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByGroupId_PrevAndNext

JournalTemplate[] findByGroupId_PrevAndNext(long id,
                                            long groupId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByTemplateId

java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTemplateId

java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId,
                                                 int start,
                                                 int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTemplateId

java.util.List<JournalTemplate> findByTemplateId(java.lang.String templateId,
                                                 int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTemplateId_First

JournalTemplate findByTemplateId_First(java.lang.String templateId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByTemplateId_Last

JournalTemplate findByTemplateId_Last(java.lang.String templateId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByTemplateId_PrevAndNext

JournalTemplate[] findByTemplateId_PrevAndNext(long id,
                                               java.lang.String templateId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findBySmallImageId

JournalTemplate findBySmallImageId(long smallImageId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

fetchBySmallImageId

JournalTemplate fetchBySmallImageId(long smallImageId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchBySmallImageId

JournalTemplate fetchBySmallImageId(long smallImageId,
                                    boolean retrieveFromCache)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_T

JournalTemplate findByG_T(long groupId,
                          java.lang.String templateId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

fetchByG_T

JournalTemplate fetchByG_T(long groupId,
                           java.lang.String templateId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByG_T

JournalTemplate fetchByG_T(long groupId,
                           java.lang.String templateId,
                           boolean retrieveFromCache)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_S

java.util.List<JournalTemplate> findByG_S(long groupId,
                                          java.lang.String structureId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_S

java.util.List<JournalTemplate> findByG_S(long groupId,
                                          java.lang.String structureId,
                                          int start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_S

java.util.List<JournalTemplate> findByG_S(long groupId,
                                          java.lang.String structureId,
                                          int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_S_First

JournalTemplate findByG_S_First(long groupId,
                                java.lang.String structureId,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByG_S_Last

JournalTemplate findByG_S_Last(long groupId,
                               java.lang.String structureId,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

findByG_S_PrevAndNext

JournalTemplate[] findByG_S_PrevAndNext(long id,
                                        long groupId,
                                        java.lang.String structureId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

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<JournalTemplate> findAll()
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<JournalTemplate> 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

removeByUUID_G

void removeByUUID_G(java.lang.String uuid,
                    long groupId)
                    throws com.liferay.portal.SystemException,
                           NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByTemplateId

void removeByTemplateId(java.lang.String templateId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeBySmallImageId

void removeBySmallImageId(long smallImageId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

removeByG_T

void removeByG_T(long groupId,
                 java.lang.String templateId)
                 throws com.liferay.portal.SystemException,
                        NoSuchTemplateException
Throws:
com.liferay.portal.SystemException
NoSuchTemplateException

removeByG_S

void removeByG_S(long groupId,
                 java.lang.String structureId)
                 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

countByUUID_G

int countByUUID_G(java.lang.String uuid,
                  long groupId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByTemplateId

int countByTemplateId(java.lang.String templateId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySmallImageId

int countBySmallImageId(long smallImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_T

int countByG_T(long groupId,
               java.lang.String templateId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_S

int countByG_S(long groupId,
               java.lang.String structureId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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