com.liferay.portal.service.persistence
Interface ResourceCodePersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ResourceCodePersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByC_N_S(long companyId,
java.lang.String name,
int scope)
|
int |
countByCompanyId(long companyId)
|
int |
countByName(java.lang.String name)
|
ResourceCode |
create(long codeId)
|
ResourceCode |
fetchByC_N_S(long companyId,
java.lang.String name,
int scope)
|
ResourceCode |
fetchByPrimaryKey(long codeId)
|
java.util.List<ResourceCode> |
findAll()
|
java.util.List<ResourceCode> |
findAll(int start,
int end)
|
java.util.List<ResourceCode> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode |
findByC_N_S(long companyId,
java.lang.String name,
int scope)
|
ResourceCode |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode[] |
findByCompanyId_PrevAndNext(long codeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<ResourceCode> |
findByCompanyId(long companyId)
|
java.util.List<ResourceCode> |
findByCompanyId(long companyId,
int start,
int end)
|
java.util.List<ResourceCode> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode |
findByName_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode |
findByName_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode[] |
findByName_PrevAndNext(long codeId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<ResourceCode> |
findByName(java.lang.String name)
|
java.util.List<ResourceCode> |
findByName(java.lang.String name,
int start,
int end)
|
java.util.List<ResourceCode> |
findByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
ResourceCode |
findByPrimaryKey(long codeId)
|
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)
|
ResourceCode |
remove(long codeId)
|
ResourceCode |
remove(ResourceCode resourceCode)
|
void |
removeAll()
|
void |
removeByC_N_S(long companyId,
java.lang.String name,
int scope)
|
void |
removeByCompanyId(long companyId)
|
void |
removeByName(java.lang.String name)
|
ResourceCode |
update(ResourceCode resourceCode)
Deprecated. Use update(ResourceCode resourceCode, boolean merge) . |
ResourceCode |
update(ResourceCode resourceCode,
boolean merge)
Add, update, or merge, the entity. |
ResourceCode |
updateImpl(ResourceCode resourceCode,
boolean merge)
|
create
ResourceCode create(long codeId)
remove
ResourceCode remove(long codeId)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
remove
ResourceCode remove(ResourceCode resourceCode)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
ResourceCode update(ResourceCode resourceCode)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(ResourceCode resourceCode, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
ResourceCode update(ResourceCode resourceCode,
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:
resourceCode
- 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 resourceCode 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
ResourceCode updateImpl(ResourceCode resourceCode,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByPrimaryKey(long codeId)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
fetchByPrimaryKey
ResourceCode fetchByPrimaryKey(long codeId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByCompanyId_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByCompanyId_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode[] findByCompanyId_PrevAndNext(long codeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByName(java.lang.String name,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByName_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByName_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByName_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByName_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByName_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode[] findByName_PrevAndNext(long codeId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
findByC_N_S
@Transactional(propagation=SUPPORTS,
readOnly=true)
ResourceCode findByC_N_S(long companyId,
java.lang.String name,
int scope)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
fetchByC_N_S
ResourceCode fetchByC_N_S(long companyId,
java.lang.String name,
int scope)
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<ResourceCode> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ResourceCode> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByName
void removeByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_N_S
void removeByC_N_S(long companyId,
java.lang.String name,
int scope)
throws NoSuchResourceCodeException,
com.liferay.portal.SystemException
- Throws:
NoSuchResourceCodeException
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_N_S
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByC_N_S(long companyId,
java.lang.String name,
int scope)
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