Liferay 6.0.3

com.liferay.portal.service.persistence
Interface ResourcePersistence

All Superinterfaces:
BasePersistence<Resource>
All Known Implementing Classes:
ResourcePersistenceImpl

public interface ResourcePersistence
extends BasePersistence<Resource>

See Also:
ResourcePersistenceImpl, ResourceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<Resource> resources)
           
 void cacheResult(Resource resource)
           
 int countAll()
           
 int countByC_P(long codeId, String primKey)
           
 int countByCodeId(long codeId)
           
 Resource create(long resourceId)
           
 Resource fetchByC_P(long codeId, String primKey)
           
 Resource fetchByC_P(long codeId, String primKey, boolean retrieveFromCache)
           
 Resource fetchByPrimaryKey(long resourceId)
           
 List<Resource> findAll()
           
 List<Resource> findAll(int start, int end)
           
 List<Resource> findAll(int start, int end, OrderByComparator orderByComparator)
           
 Resource findByC_P(long codeId, String primKey)
           
 Resource findByCodeId_First(long codeId, OrderByComparator orderByComparator)
           
 Resource findByCodeId_Last(long codeId, OrderByComparator orderByComparator)
           
 Resource[] findByCodeId_PrevAndNext(long resourceId, long codeId, OrderByComparator orderByComparator)
           
 List<Resource> findByCodeId(long codeId)
           
 List<Resource> findByCodeId(long codeId, int start, int end)
           
 List<Resource> findByCodeId(long codeId, int start, int end, OrderByComparator orderByComparator)
           
 Resource findByPrimaryKey(long resourceId)
           
 Resource remove(long resourceId)
           
 void removeAll()
           
 void removeByC_P(long codeId, String primKey)
           
 void removeByCodeId(long codeId)
           
 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, update
 

Method Detail

cacheResult

void cacheResult(Resource resource)

cacheResult

void cacheResult(List<Resource> resources)

create

Resource create(long resourceId)

remove

Resource remove(long resourceId)
                throws NoSuchResourceException,
                       SystemException
Throws:
NoSuchResourceException
SystemException

updateImpl

Resource updateImpl(Resource resource,
                    boolean merge)
                    throws SystemException
Throws:
SystemException

findByPrimaryKey

Resource findByPrimaryKey(long resourceId)
                          throws NoSuchResourceException,
                                 SystemException
Throws:
NoSuchResourceException
SystemException

fetchByPrimaryKey

Resource fetchByPrimaryKey(long resourceId)
                           throws SystemException
Throws:
SystemException

findByCodeId

List<Resource> findByCodeId(long codeId)
                            throws SystemException
Throws:
SystemException

findByCodeId

List<Resource> findByCodeId(long codeId,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

findByCodeId

List<Resource> findByCodeId(long codeId,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

findByCodeId_First

Resource findByCodeId_First(long codeId,
                            OrderByComparator orderByComparator)
                            throws NoSuchResourceException,
                                   SystemException
Throws:
NoSuchResourceException
SystemException

findByCodeId_Last

Resource findByCodeId_Last(long codeId,
                           OrderByComparator orderByComparator)
                           throws NoSuchResourceException,
                                  SystemException
Throws:
NoSuchResourceException
SystemException

findByCodeId_PrevAndNext

Resource[] findByCodeId_PrevAndNext(long resourceId,
                                    long codeId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchResourceException,
                                           SystemException
Throws:
NoSuchResourceException
SystemException

findByC_P

Resource findByC_P(long codeId,
                   String primKey)
                   throws NoSuchResourceException,
                          SystemException
Throws:
NoSuchResourceException
SystemException

fetchByC_P

Resource fetchByC_P(long codeId,
                    String primKey)
                    throws SystemException
Throws:
SystemException

fetchByC_P

Resource fetchByC_P(long codeId,
                    String primKey,
                    boolean retrieveFromCache)
                    throws SystemException
Throws:
SystemException

findAll

List<Resource> findAll()
                       throws SystemException
Throws:
SystemException

findAll

List<Resource> findAll(int start,
                       int end)
                       throws SystemException
Throws:
SystemException

findAll

List<Resource> findAll(int start,
                       int end,
                       OrderByComparator orderByComparator)
                       throws SystemException
Throws:
SystemException

removeByCodeId

void removeByCodeId(long codeId)
                    throws SystemException
Throws:
SystemException

removeByC_P

void removeByC_P(long codeId,
                 String primKey)
                 throws NoSuchResourceException,
                        SystemException
Throws:
NoSuchResourceException
SystemException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByCodeId

int countByCodeId(long codeId)
                  throws SystemException
Throws:
SystemException

countByC_P

int countByC_P(long codeId,
               String primKey)
               throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException

Liferay 6.0.3