Liferay 6.0.3

com.liferay.portal.service.persistence
Class ResourceUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.ResourceUtil

public class ResourceUtil
extends Object

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

Constructor Summary
ResourceUtil()
           
 
Method Summary
static void cacheResult(List<Resource> resources)
           
static void cacheResult(Resource resource)
           
static void clearCache()
           
static void clearCache(Resource resource)
           
static int countAll()
           
static int countByC_P(long codeId, String primKey)
           
static int countByCodeId(long codeId)
           
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Resource create(long resourceId)
           
static Resource fetchByC_P(long codeId, String primKey)
           
static Resource fetchByC_P(long codeId, String primKey, boolean retrieveFromCache)
           
static Resource fetchByPrimaryKey(long resourceId)
           
static List<Resource> findAll()
           
static List<Resource> findAll(int start, int end)
           
static List<Resource> findAll(int start, int end, OrderByComparator orderByComparator)
           
static Resource findByC_P(long codeId, String primKey)
           
static Resource findByCodeId_First(long codeId, OrderByComparator orderByComparator)
           
static Resource findByCodeId_Last(long codeId, OrderByComparator orderByComparator)
           
static Resource[] findByCodeId_PrevAndNext(long resourceId, long codeId, OrderByComparator orderByComparator)
           
static List<Resource> findByCodeId(long codeId)
           
static List<Resource> findByCodeId(long codeId, int start, int end)
           
static List<Resource> findByCodeId(long codeId, int start, int end, OrderByComparator orderByComparator)
           
static Resource findByPrimaryKey(long resourceId)
           
static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static ResourcePersistence getPersistence()
           
static Resource remove(long resourceId)
           
static Resource remove(Resource resource)
           
static void removeAll()
           
static void removeByC_P(long codeId, String primKey)
           
static void removeByCodeId(long codeId)
           
 void setPersistence(ResourcePersistence persistence)
           
static Resource update(Resource resource, boolean merge)
           
static Resource update(Resource resource, boolean merge, ServiceContext serviceContext)
           
static Resource updateImpl(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

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Resource resource)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Resource> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static Resource remove(Resource resource)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static Resource update(Resource resource,
                              boolean merge)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static Resource update(Resource resource,
                              boolean merge,
                              ServiceContext serviceContext)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(Resource resource)

cacheResult

public static void cacheResult(List<Resource> resources)

create

public static Resource create(long resourceId)

remove

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

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

public static Resource fetchByPrimaryKey(long resourceId)
                                  throws SystemException
Throws:
SystemException

findByCodeId

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

findByCodeId

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

findByCodeId

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

findByCodeId_First

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

findByCodeId_Last

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

findByCodeId_PrevAndNext

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

findByC_P

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

fetchByC_P

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

fetchByC_P

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

findAll

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

findAll

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

findAll

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

removeByCodeId

public static void removeByCodeId(long codeId)
                           throws SystemException
Throws:
SystemException

removeByC_P

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

removeAll

public static void removeAll()
                      throws SystemException
Throws:
SystemException

countByCodeId

public static int countByCodeId(long codeId)
                         throws SystemException
Throws:
SystemException

countByC_P

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

countAll

public static int countAll()
                    throws SystemException
Throws:
SystemException

getPersistence

public static ResourcePersistence getPersistence()

setPersistence

public void setPersistence(ResourcePersistence persistence)

Liferay 6.0.3