com.liferay.portal.service.persistence
Interface ResourcePersistence

All Known Implementing Classes:
ResourcePersistenceImpl

public interface ResourcePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_P(long codeId, java.lang.String primKey)
           
 int countByCodeId(long codeId)
           
 com.liferay.portal.model.Resource create(long resourceId)
           
 com.liferay.portal.model.Resource fetchByC_P(long codeId, java.lang.String primKey)
           
 com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.Resource findByC_P(long codeId, java.lang.String primKey)
           
 com.liferay.portal.model.Resource findByCodeId_First(long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.Resource findByCodeId_Last(long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.Resource[] findByCodeId_PrevAndNext(long resourceId, long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByCodeId(long codeId)
           
 java.util.List findByCodeId(long codeId, int begin, int end)
           
 java.util.List findByCodeId(long codeId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.Resource findByPrimaryKey(long resourceId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 com.liferay.portal.model.Resource remove(long resourceId)
           
 com.liferay.portal.model.Resource remove(com.liferay.portal.model.Resource resource)
           
 void removeAll()
           
 void removeByC_P(long codeId, java.lang.String primKey)
           
 void removeByCodeId(long codeId)
           
 com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource)
           
 com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource, boolean merge)
           
 

Method Detail

create

public com.liferay.portal.model.Resource create(long resourceId)

remove

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

remove

public com.liferay.portal.model.Resource remove(com.liferay.portal.model.Resource resource)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource,
                                                boolean merge)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByCodeId

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

findByCodeId

public java.util.List findByCodeId(long codeId,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId

public java.util.List findByCodeId(long codeId,
                                   int begin,
                                   int end,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId_First

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

findByCodeId_Last

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

findByCodeId_PrevAndNext

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

findByC_P

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

fetchByC_P

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

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCodeId

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

removeByC_P

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

removeAll

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

countByCodeId

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

countByC_P

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

countAll

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