com.liferay.portlet.wiki.service.persistence
Interface WikiNodePersistence

All Superinterfaces:
BasePersistence

public interface WikiNodePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<WikiNode> wikiNodes)
           
 void cacheResult(WikiNode wikiNode)
           
 void clearCache()
           
 int countAll()
           
 int countByCompanyId(long companyId)
           
 int countByG_N(long groupId, java.lang.String name)
           
 int countByGroupId(long groupId)
           
 int countByUUID_G(java.lang.String uuid, long groupId)
           
 int countByUuid(java.lang.String uuid)
           
 WikiNode create(long nodeId)
           
 WikiNode fetchByG_N(long groupId, java.lang.String name)
           
 WikiNode fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache)
           
 WikiNode fetchByPrimaryKey(long nodeId)
           
 WikiNode fetchByUUID_G(java.lang.String uuid, long groupId)
           
 WikiNode fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
           
 java.util.List<WikiNode> findAll()
           
 java.util.List<WikiNode> findAll(int start, int end)
           
 java.util.List<WikiNode> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode[] findByCompanyId_PrevAndNext(long nodeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WikiNode> findByCompanyId(long companyId)
           
 java.util.List<WikiNode> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<WikiNode> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByG_N(long groupId, java.lang.String name)
           
 WikiNode findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode[] findByGroupId_PrevAndNext(long nodeId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WikiNode> findByGroupId(long groupId)
           
 java.util.List<WikiNode> findByGroupId(long groupId, int start, int end)
           
 java.util.List<WikiNode> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByPrimaryKey(long nodeId)
           
 WikiNode findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode findByUUID_G(java.lang.String uuid, long groupId)
           
 WikiNode findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiNode[] findByUuid_PrevAndNext(long nodeId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<WikiNode> findByUuid(java.lang.String uuid)
           
 java.util.List<WikiNode> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<WikiNode> 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)
           
 WikiNode remove(long nodeId)
           
 WikiNode remove(WikiNode wikiNode)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 void removeByG_N(long groupId, java.lang.String name)
           
 void removeByGroupId(long groupId)
           
 void removeByUUID_G(java.lang.String uuid, long groupId)
           
 void removeByUuid(java.lang.String uuid)
           
 WikiNode update(WikiNode wikiNode)
          Deprecated. Use update(WikiNode wikiNode, boolean merge).
 WikiNode update(WikiNode wikiNode, boolean merge)
          Add, update, or merge, the entity.
 WikiNode updateImpl(WikiNode wikiNode, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(WikiNode wikiNode)

cacheResult

void cacheResult(java.util.List<WikiNode> wikiNodes)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

WikiNode create(long nodeId)

remove

WikiNode remove(long nodeId)
                throws com.liferay.portal.SystemException,
                       NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

remove

WikiNode remove(WikiNode wikiNode)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

WikiNode update(WikiNode wikiNode)
                throws com.liferay.portal.SystemException
Deprecated. Use update(WikiNode wikiNode, boolean merge).

Throws:
com.liferay.portal.SystemException

update

WikiNode update(WikiNode wikiNode,
                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:
wikiNode - 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 wikiNode 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

WikiNode updateImpl(WikiNode wikiNode,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

WikiNode findByPrimaryKey(long nodeId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

fetchByPrimaryKey

WikiNode fetchByPrimaryKey(long nodeId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

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

findByUuid

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

findByUuid

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

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

findByUuid_Last

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

findByUuid_PrevAndNext

WikiNode[] findByUuid_PrevAndNext(long nodeId,
                                  java.lang.String uuid,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

findByUUID_G

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

fetchByUUID_G

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

fetchByUUID_G

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

findByGroupId

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

findByGroupId

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

findByGroupId

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

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

findByGroupId_Last

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

findByGroupId_PrevAndNext

WikiNode[] findByGroupId_PrevAndNext(long nodeId,
                                     long groupId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

findByCompanyId

java.util.List<WikiNode> findByCompanyId(long companyId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<WikiNode> findByCompanyId(long companyId,
                                         int start,
                                         int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<WikiNode> findByCompanyId(long companyId,
                                         int start,
                                         int end,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

WikiNode findByCompanyId_First(long companyId,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

findByCompanyId_Last

WikiNode findByCompanyId_Last(long companyId,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

findByCompanyId_PrevAndNext

WikiNode[] findByCompanyId_PrevAndNext(long nodeId,
                                       long companyId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

findByG_N

WikiNode findByG_N(long groupId,
                   java.lang.String name)
                   throws com.liferay.portal.SystemException,
                          NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

fetchByG_N

WikiNode fetchByG_N(long groupId,
                    java.lang.String name)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByG_N

WikiNode fetchByG_N(long groupId,
                    java.lang.String name,
                    boolean retrieveFromCache)
                    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)
                                                      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<WikiNode> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<WikiNode> 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,
                           NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

removeByGroupId

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

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_N

void removeByG_N(long groupId,
                 java.lang.String name)
                 throws com.liferay.portal.SystemException,
                        NoSuchNodeException
Throws:
com.liferay.portal.SystemException
NoSuchNodeException

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

countByCompanyId

int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_N

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

countAll

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