com.liferay.portal.service.persistence
Interface ResourceCodePersistence

All Superinterfaces:
BasePersistence<ResourceCode>

public interface ResourceCodePersistence
extends BasePersistence<ResourceCode>

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:
ResourceCodePersistenceImpl, ResourceCodeUtil
Generated:

Method Summary
 void cacheResult(java.util.List<ResourceCode> resourceCodes)
           
 void cacheResult(ResourceCode resourceCode)
           
 int countAll()
           
 int countByC_N_S(long companyId, java.lang.String name, int scope)
           
 int countByCompanyId(long companyId)
           
 int countByName(java.lang.String name)
           
 ResourceCode create(long codeId)
           
 ResourceCode fetchByC_N_S(long companyId, java.lang.String name, int scope)
           
 ResourceCode fetchByC_N_S(long companyId, java.lang.String name, int scope, boolean retrieveFromCache)
           
 ResourceCode fetchByPrimaryKey(long codeId)
           
 java.util.List<ResourceCode> findAll()
           
 java.util.List<ResourceCode> findAll(int start, int end)
           
 java.util.List<ResourceCode> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode findByC_N_S(long companyId, java.lang.String name, int scope)
           
 ResourceCode findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode[] findByCompanyId_PrevAndNext(long codeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<ResourceCode> findByCompanyId(long companyId)
           
 java.util.List<ResourceCode> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<ResourceCode> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode findByName_First(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode findByName_Last(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode[] findByName_PrevAndNext(long codeId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<ResourceCode> findByName(java.lang.String name)
           
 java.util.List<ResourceCode> findByName(java.lang.String name, int start, int end)
           
 java.util.List<ResourceCode> findByName(java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ResourceCode findByPrimaryKey(long codeId)
           
 ResourceCode remove(long codeId)
           
 void removeAll()
           
 void removeByC_N_S(long companyId, java.lang.String name, int scope)
           
 void removeByCompanyId(long companyId)
           
 void removeByName(java.lang.String name)
           
 ResourceCode update(ResourceCode resourceCode)
          Deprecated. Use BasePersistence.update(com.liferay.portal.model.BaseModel, boolean).
 ResourceCode updateImpl(ResourceCode resourceCode, 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(ResourceCode resourceCode)

cacheResult

void cacheResult(java.util.List<ResourceCode> resourceCodes)

create

ResourceCode create(long codeId)

remove

ResourceCode remove(long codeId)
                    throws NoSuchResourceCodeException,
                           com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

update

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

Throws:
com.liferay.portal.SystemException

updateImpl

ResourceCode updateImpl(ResourceCode resourceCode,
                        boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

ResourceCode findByPrimaryKey(long codeId)
                              throws NoSuchResourceCodeException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

fetchByPrimaryKey

ResourceCode fetchByPrimaryKey(long codeId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

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

findByCompanyId

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

findByCompanyId

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

findByCompanyId_First

ResourceCode findByCompanyId_First(long companyId,
                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                   throws NoSuchResourceCodeException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByCompanyId_Last

ResourceCode findByCompanyId_Last(long companyId,
                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                  throws NoSuchResourceCodeException,
                                         com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByCompanyId_PrevAndNext

ResourceCode[] findByCompanyId_PrevAndNext(long codeId,
                                           long companyId,
                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                           throws NoSuchResourceCodeException,
                                                  com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByName

java.util.List<ResourceCode> findByName(java.lang.String name)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName

java.util.List<ResourceCode> findByName(java.lang.String name,
                                        int start,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName

java.util.List<ResourceCode> findByName(java.lang.String name,
                                        int start,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName_First

ResourceCode findByName_First(java.lang.String name,
                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                              throws NoSuchResourceCodeException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByName_Last

ResourceCode findByName_Last(java.lang.String name,
                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                             throws NoSuchResourceCodeException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByName_PrevAndNext

ResourceCode[] findByName_PrevAndNext(long codeId,
                                      java.lang.String name,
                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                      throws NoSuchResourceCodeException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

findByC_N_S

ResourceCode findByC_N_S(long companyId,
                         java.lang.String name,
                         int scope)
                         throws NoSuchResourceCodeException,
                                com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

fetchByC_N_S

ResourceCode fetchByC_N_S(long companyId,
                          java.lang.String name,
                          int scope)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByC_N_S

ResourceCode fetchByC_N_S(long companyId,
                          java.lang.String name,
                          int scope,
                          boolean retrieveFromCache)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

findAll

java.util.List<ResourceCode> findAll(int start,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                     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

removeByName

void removeByName(java.lang.String name)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_N_S

void removeByC_N_S(long companyId,
                   java.lang.String name,
                   int scope)
                   throws NoSuchResourceCodeException,
                          com.liferay.portal.SystemException
Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException

removeAll

void removeAll()
               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

countByName

int countByName(java.lang.String name)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_N_S

int countByC_N_S(long companyId,
                 java.lang.String name,
                 int scope)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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