com.liferay.portal.service.persistence
Interface ResourcePersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ResourcePersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByC_P(long codeId,
java.lang.String primKey)
|
int |
countByCodeId(long codeId)
|
Resource |
create(long resourceId)
|
Resource |
fetchByC_P(long codeId,
java.lang.String primKey)
|
Resource |
fetchByPrimaryKey(long resourceId)
|
java.util.List<Resource> |
findAll()
|
java.util.List<Resource> |
findAll(int start,
int end)
|
java.util.List<Resource> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Resource |
findByC_P(long codeId,
java.lang.String primKey)
|
Resource |
findByCodeId_First(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Resource |
findByCodeId_Last(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Resource[] |
findByCodeId_PrevAndNext(long resourceId,
long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Resource> |
findByCodeId(long codeId)
|
java.util.List<Resource> |
findByCodeId(long codeId,
int start,
int end)
|
java.util.List<Resource> |
findByCodeId(long codeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Resource |
findByPrimaryKey(long resourceId)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Resource |
remove(long resourceId)
|
Resource |
remove(Resource resource)
|
void |
removeAll()
|
void |
removeByC_P(long codeId,
java.lang.String primKey)
|
void |
removeByCodeId(long codeId)
|
Resource |
update(Resource resource)
Deprecated. Use update(Resource resource, boolean merge) . |
Resource |
update(Resource resource,
boolean merge)
Add, update, or merge, the entity. |
Resource |
updateImpl(Resource resource,
boolean merge)
|
create
Resource create(long resourceId)
remove
Resource remove(long resourceId)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
remove
Resource remove(Resource resource)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Resource update(Resource resource)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Resource resource, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
Resource update(Resource resource,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
resource
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when resource is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
Resource updateImpl(Resource resource,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource findByPrimaryKey(long resourceId)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
fetchByPrimaryKey
Resource fetchByPrimaryKey(long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCodeId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findByCodeId(long codeId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCodeId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findByCodeId(long codeId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCodeId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findByCodeId(long codeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCodeId_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource findByCodeId_First(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
findByCodeId_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource findByCodeId_Last(long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
findByCodeId_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource[] findByCodeId_PrevAndNext(long resourceId,
long codeId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
findByC_P
@Transactional(propagation=SUPPORTS,
readOnly=true)
Resource findByC_P(long codeId,
java.lang.String primKey)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
fetchByC_P
Resource fetchByC_P(long codeId,
java.lang.String primKey)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Resource> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCodeId
void removeByCodeId(long codeId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_P
void removeByC_P(long codeId,
java.lang.String primKey)
throws NoSuchResourceException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceException
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCodeId
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByCodeId(long codeId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_P
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByC_P(long codeId,
java.lang.String primKey)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException