com.liferay.portal.service.persistence
Class ResourceUtil
java.lang.Object
com.liferay.portal.service.persistence.ResourceUtil
- public class ResourceUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByC_P(long codeId,
java.lang.String primKey)
|
static int |
countByCodeId(long codeId)
|
static Resource |
create(long resourceId)
|
static Resource |
fetchByC_P(long codeId,
java.lang.String primKey)
|
static 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 Resource |
findByC_P(long codeId,
java.lang.String primKey)
|
static Resource |
findByCodeId_First(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Resource |
findByCodeId_Last(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static 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 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 Resource |
remove(long resourceId)
|
static Resource |
remove(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 Resource |
update(Resource resource)
|
static Resource |
update(Resource resource,
boolean merge)
|
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 |
ResourceUtil
public ResourceUtil()
create
public static Resource create(long resourceId)
remove
public static Resource remove(long resourceId)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
remove
public static Resource remove(Resource resource)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Resource update(Resource resource)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Resource update(Resource resource,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImpl
public static Resource updateImpl(Resource resource,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Resource findByPrimaryKey(long resourceId)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
fetchByPrimaryKey
public static 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 Resource findByCodeId_First(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
findByCodeId_Last
public static Resource findByCodeId_Last(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
findByCodeId_PrevAndNext
public static Resource[] findByCodeId_PrevAndNext(long resourceId,
long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
findByC_P
public static Resource findByC_P(long codeId,
java.lang.String primKey)
throws com.liferay.portal.SystemException,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
NoSuchResourceException
fetchByC_P
public static 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,
NoSuchResourceException
- Throws:
com.liferay.portal.SystemException
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)