com.liferay.portlet.wiki.service.persistence
Interface WikiNodePersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface WikiNodePersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByCompanyId(long companyId)
|
int |
countByG_N(long groupId,
java.lang.String name)
|
int |
countByGroupId(long groupId)
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
|
int |
countByUuid(java.lang.String uuid)
|
WikiNode |
create(long nodeId)
|
WikiNode |
fetchByG_N(long groupId,
java.lang.String name)
|
WikiNode |
fetchByPrimaryKey(long nodeId)
|
WikiNode |
fetchByUUID_G(java.lang.String uuid,
long groupId)
|
java.util.List<WikiNode> |
findAll()
|
java.util.List<WikiNode> |
findAll(int start,
int end)
|
java.util.List<WikiNode> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode[] |
findByCompanyId_PrevAndNext(long nodeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<WikiNode> |
findByCompanyId(long companyId)
|
java.util.List<WikiNode> |
findByCompanyId(long companyId,
int start,
int end)
|
java.util.List<WikiNode> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByG_N(long groupId,
java.lang.String name)
|
WikiNode |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode[] |
findByGroupId_PrevAndNext(long nodeId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<WikiNode> |
findByGroupId(long groupId)
|
java.util.List<WikiNode> |
findByGroupId(long groupId,
int start,
int end)
|
java.util.List<WikiNode> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByPrimaryKey(long nodeId)
|
WikiNode |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode |
findByUUID_G(java.lang.String uuid,
long groupId)
|
WikiNode |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
WikiNode[] |
findByUuid_PrevAndNext(long nodeId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<WikiNode> |
findByUuid(java.lang.String uuid)
|
java.util.List<WikiNode> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
java.util.List<WikiNode> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
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)
|
WikiNode |
remove(long nodeId)
|
WikiNode |
remove(WikiNode wikiNode)
|
void |
removeAll()
|
void |
removeByCompanyId(long companyId)
|
void |
removeByG_N(long groupId,
java.lang.String name)
|
void |
removeByGroupId(long groupId)
|
void |
removeByUUID_G(java.lang.String uuid,
long groupId)
|
void |
removeByUuid(java.lang.String uuid)
|
WikiNode |
update(WikiNode wikiNode)
Deprecated. Use update(WikiNode wikiNode, boolean merge) . |
WikiNode |
update(WikiNode wikiNode,
boolean merge)
Add, update, or merge, the entity. |
WikiNode |
updateImpl(WikiNode wikiNode,
boolean merge)
|
create
WikiNode create(long nodeId)
remove
WikiNode remove(long nodeId)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
remove
WikiNode remove(WikiNode wikiNode)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
WikiNode update(WikiNode wikiNode)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(WikiNode wikiNode, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
WikiNode update(WikiNode wikiNode,
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:
wikiNode
- 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 wikiNode 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
WikiNode updateImpl(WikiNode wikiNode,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByPrimaryKey(long nodeId)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
fetchByPrimaryKey
WikiNode fetchByPrimaryKey(long nodeId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByUuid_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByUuid_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode[] findByUuid_PrevAndNext(long nodeId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByUUID_G
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
fetchByUUID_G
WikiNode fetchByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByGroupId_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByGroupId_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode[] findByGroupId_PrevAndNext(long nodeId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> 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<WikiNode> 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)
WikiNode findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByCompanyId_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByCompanyId_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode[] findByCompanyId_PrevAndNext(long nodeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
findByG_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
WikiNode findByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
fetchByG_N
WikiNode fetchByG_N(long groupId,
java.lang.String name)
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<WikiNode> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<WikiNode> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUUID_G
void removeByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
removeByGroupId
void removeByGroupId(long groupId)
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
removeByG_N
void removeByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchNodeException
- Throws:
com.liferay.portal.SystemException
NoSuchNodeException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUUID_G
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByGroupId(long groupId)
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
countByG_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByG_N(long groupId,
java.lang.String name)
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