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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface WikiPageResourcePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByN_T(long nodeId, java.lang.String title)
           
 WikiPageResource create(long resourcePrimKey)
           
 WikiPageResource fetchByN_T(long nodeId, java.lang.String title)
           
 WikiPageResource fetchByPrimaryKey(long resourcePrimKey)
           
 java.util.List<WikiPageResource> findAll()
           
 java.util.List<WikiPageResource> findAll(int start, int end)
           
 java.util.List<WikiPageResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 WikiPageResource findByN_T(long nodeId, java.lang.String title)
           
 WikiPageResource 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)
           
 WikiPageResource remove(long resourcePrimKey)
           
 WikiPageResource remove(WikiPageResource wikiPageResource)
           
 void removeAll()
           
 void removeByN_T(long nodeId, java.lang.String title)
           
 WikiPageResource update(WikiPageResource wikiPageResource)
          Deprecated. Use update(WikiPageResource wikiPageResource, boolean merge).
 WikiPageResource update(WikiPageResource wikiPageResource, boolean merge)
          Add, update, or merge, the entity.
 WikiPageResource updateImpl(WikiPageResource wikiPageResource, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

WikiPageResource create(long resourcePrimKey)

remove

WikiPageResource remove(long resourcePrimKey)
                        throws com.liferay.portal.SystemException,
                               NoSuchPageResourceException
Throws:
com.liferay.portal.SystemException
NoSuchPageResourceException

remove

WikiPageResource remove(WikiPageResource wikiPageResource)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

WikiPageResource update(WikiPageResource wikiPageResource)
                        throws com.liferay.portal.SystemException
Deprecated. Use update(WikiPageResource wikiPageResource, boolean merge).

Throws:
com.liferay.portal.SystemException

update

WikiPageResource update(WikiPageResource wikiPageResource,
                        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:
wikiPageResource - 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 wikiPageResource 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

WikiPageResource updateImpl(WikiPageResource wikiPageResource,
                            boolean merge)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPageResource findByPrimaryKey(long resourcePrimKey)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchPageResourceException
Throws:
com.liferay.portal.SystemException
NoSuchPageResourceException

fetchByPrimaryKey

WikiPageResource fetchByPrimaryKey(long resourcePrimKey)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByN_T

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPageResource findByN_T(long nodeId,
                                         java.lang.String title)
                           throws com.liferay.portal.SystemException,
                                  NoSuchPageResourceException
Throws:
com.liferay.portal.SystemException
NoSuchPageResourceException

fetchByN_T

WikiPageResource fetchByN_T(long nodeId,
                            java.lang.String title)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPageResource> findAll()
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPageResource> findAll(int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPageResource> findAll(int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByN_T

void removeByN_T(long nodeId,
                 java.lang.String title)
                 throws com.liferay.portal.SystemException,
                        NoSuchPageResourceException
Throws:
com.liferay.portal.SystemException
NoSuchPageResourceException

removeAll

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

countByN_T

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByN_T(long nodeId,
                             java.lang.String title)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException