com.liferay.portal.service.persistence
Interface ResourcePersistence

All Superinterfaces:
BasePersistence<Resource>

public interface ResourcePersistence
extends BasePersistence<Resource>

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
ResourcePersistenceImpl, ResourceUtil
Generated:

Method Summary
 void cacheResult(java.util.List<Resource> resources)
           
 void cacheResult(Resource resource)
           
 int countAll()
           
 int countByC_P(long codeId, java.lang.String primKey)
           
 int countByCodeId(long codeId)
           
 Resource create(long resourceId)
           
 Resource fetchByC_P(long codeId, java.lang.String primKey)
           
 Resource fetchByC_P(long codeId, java.lang.String primKey, boolean retrieveFromCache)
           
 Resource fetchByPrimaryKey(long resourceId)
           
 java.util.List<Resource> findAll()
           
 java.util.List<Resource> findAll(int start, int end)
           
 java.util.List<Resource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 Resource findByC_P(long codeId, java.lang.String primKey)
           
 Resource findByCodeId_First(long codeId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 Resource findByCodeId_Last(long codeId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 Resource[] findByCodeId_PrevAndNext(long resourceId, long codeId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<Resource> findByCodeId(long codeId)
           
 java.util.List<Resource> findByCodeId(long codeId, int start, int end)
           
 java.util.List<Resource> findByCodeId(long codeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 Resource findByPrimaryKey(long resourceId)
           
 Resource remove(long resourceId)
           
 void removeAll()
           
 void removeByC_P(long codeId, java.lang.String primKey)
           
 void removeByCodeId(long codeId)
           
 Resource update(Resource resource)
          Deprecated. Use BasePersistence.update(com.liferay.portal.model.BaseModel, boolean).
 Resource updateImpl(Resource resource, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(Resource resource)

cacheResult

void cacheResult(java.util.List<Resource> resources)

create

Resource create(long resourceId)

remove

Resource remove(long resourceId)
                throws NoSuchResourceException,
                       com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

update

Resource update(Resource resource)
                throws com.liferay.portal.SystemException
Deprecated. Use BasePersistence.update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

Resource updateImpl(Resource resource,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

Resource findByPrimaryKey(long resourceId)
                          throws NoSuchResourceException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

fetchByPrimaryKey

Resource fetchByPrimaryKey(long resourceId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId

java.util.List<Resource> findByCodeId(long codeId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId

java.util.List<Resource> findByCodeId(long codeId,
                                      int start,
                                      int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId

java.util.List<Resource> findByCodeId(long codeId,
                                      int start,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId_First

Resource findByCodeId_First(long codeId,
                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                            throws NoSuchResourceException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

findByCodeId_Last

Resource findByCodeId_Last(long codeId,
                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                           throws NoSuchResourceException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

findByCodeId_PrevAndNext

Resource[] findByCodeId_PrevAndNext(long resourceId,
                                    long codeId,
                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                    throws NoSuchResourceException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

findByC_P

Resource findByC_P(long codeId,
                   java.lang.String primKey)
                   throws NoSuchResourceException,
                          com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

fetchByC_P

Resource fetchByC_P(long codeId,
                    java.lang.String primKey)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByC_P

Resource fetchByC_P(long codeId,
                    java.lang.String primKey,
                    boolean retrieveFromCache)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Resource> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByCodeId

void removeByCodeId(long codeId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_P

void removeByC_P(long codeId,
                 java.lang.String primKey)
                 throws NoSuchResourceException,
                        com.liferay.portal.SystemException
Throws:
NoSuchResourceException
com.liferay.portal.SystemException

removeAll

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

countByCodeId

int countByCodeId(long codeId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_P

int countByC_P(long codeId,
               java.lang.String primKey)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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