com.liferay.portal.service.persistence
Class ResourceUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.ResourceUtil

public class ResourceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ResourceUtil()
           
 
Method Summary
static int countAll()
           
static int countByC_P(long codeId, java.lang.String primKey)
           
static int countByCodeId(long codeId)
           
static com.liferay.portal.model.Resource create(long resourceId)
           
static com.liferay.portal.model.Resource fetchByC_P(long codeId, java.lang.String primKey)
           
static com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Resource findByC_P(long codeId, java.lang.String primKey)
           
static com.liferay.portal.model.Resource findByCodeId_First(long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Resource findByCodeId_Last(long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Resource[] findByCodeId_PrevAndNext(long resourceId, long codeId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByCodeId(long codeId)
           
static java.util.List findByCodeId(long codeId, int begin, int end)
           
static java.util.List findByCodeId(long codeId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Resource findByPrimaryKey(long resourceId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static ResourcePersistence getPersistence()
           
static com.liferay.portal.model.Resource remove(long resourceId)
           
static com.liferay.portal.model.Resource remove(com.liferay.portal.model.Resource resource)
           
static void removeAll()
           
static void removeByC_P(long codeId, java.lang.String primKey)
           
static void removeByCodeId(long codeId)
           
 void setPersistence(ResourcePersistence persistence)
           
static com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource)
           
static com.liferay.portal.model.Resource update(com.liferay.portal.model.Resource resource, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceUtil

public ResourceUtil()
Method Detail

create

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

remove

public static 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 static com.liferay.portal.model.Resource remove(com.liferay.portal.model.Resource resource)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

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

update

public static 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 static 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 static com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCodeId

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

findByCodeId

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

findByCodeId

public static 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 static 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 static 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 static 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 static 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 static 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 static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static 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 static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static 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 static void removeByCodeId(long codeId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_P

public static 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 static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCodeId

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

countByC_P

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

countAll

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

getPersistence

public static ResourcePersistence getPersistence()

setPersistence

public void setPersistence(ResourcePersistence persistence)