001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.wiki.service.persistence;
022:
023: /**
024: * <a href="WikiPageResourcePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface WikiPageResourcePersistence {
030: public com.liferay.portlet.wiki.model.WikiPageResource create(
031: long resourcePrimKey);
032:
033: public com.liferay.portlet.wiki.model.WikiPageResource remove(
034: long resourcePrimKey)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.wiki.NoSuchPageResourceException;
037:
038: public com.liferay.portlet.wiki.model.WikiPageResource remove(
039: com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.wiki.model.WikiPageResource update(
043: com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.wiki.model.WikiPageResource update(
047: com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
051: com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
055: long resourcePrimKey)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.wiki.NoSuchPageResourceException;
058:
059: public com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
060: long resourcePrimKey)
061: throws com.liferay.portal.SystemException;
062:
063: public com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
064: long nodeId, java.lang.String title)
065: throws com.liferay.portal.SystemException,
066: com.liferay.portlet.wiki.NoSuchPageResourceException;
067:
068: public com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
069: long nodeId, java.lang.String title)
070: throws com.liferay.portal.SystemException;
071:
072: public java.util.List findWithDynamicQuery(
073: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
074: throws com.liferay.portal.SystemException;
075:
076: public java.util.List findWithDynamicQuery(
077: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
078: int begin, int end)
079: throws com.liferay.portal.SystemException;
080:
081: public java.util.List findAll()
082: throws com.liferay.portal.SystemException;
083:
084: public java.util.List findAll(int begin, int end)
085: throws com.liferay.portal.SystemException;
086:
087: public java.util.List findAll(int begin, int end,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException;
090:
091: public void removeByN_T(long nodeId, java.lang.String title)
092: throws com.liferay.portal.SystemException,
093: com.liferay.portlet.wiki.NoSuchPageResourceException;
094:
095: public void removeAll() throws com.liferay.portal.SystemException;
096:
097: public int countByN_T(long nodeId, java.lang.String title)
098: throws com.liferay.portal.SystemException;
099:
100: public int countAll() throws com.liferay.portal.SystemException;
101: }
|