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.journal.service.persistence;
022:
023: /**
024: * <a href="JournalArticleResourcePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface JournalArticleResourcePersistence {
030: public com.liferay.portlet.journal.model.JournalArticleResource create(
031: long resourcePrimKey);
032:
033: public com.liferay.portlet.journal.model.JournalArticleResource remove(
034: long resourcePrimKey)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.journal.NoSuchArticleResourceException;
037:
038: public com.liferay.portlet.journal.model.JournalArticleResource remove(
039: com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.journal.model.JournalArticleResource update(
043: com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.journal.model.JournalArticleResource update(
047: com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
051: com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
055: long resourcePrimKey)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.journal.NoSuchArticleResourceException;
058:
059: public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
060: long resourcePrimKey)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.journal.NoSuchArticleResourceException;
079:
080: public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portlet.journal.NoSuchArticleResourceException;
085:
086: public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
087: long resourcePrimKey, long groupId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portlet.journal.NoSuchArticleResourceException;
091:
092: public com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
093: long groupId, java.lang.String articleId)
094: throws com.liferay.portal.SystemException,
095: com.liferay.portlet.journal.NoSuchArticleResourceException;
096:
097: public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
098: long groupId, java.lang.String articleId)
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findWithDynamicQuery(
102: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
103: throws com.liferay.portal.SystemException;
104:
105: public java.util.List findWithDynamicQuery(
106: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
107: int begin, int end)
108: throws com.liferay.portal.SystemException;
109:
110: public java.util.List findAll()
111: throws com.liferay.portal.SystemException;
112:
113: public java.util.List findAll(int begin, int end)
114: throws com.liferay.portal.SystemException;
115:
116: public java.util.List findAll(int begin, int end,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException;
119:
120: public void removeByGroupId(long groupId)
121: throws com.liferay.portal.SystemException;
122:
123: public void removeByG_A(long groupId, java.lang.String articleId)
124: throws com.liferay.portal.SystemException,
125: com.liferay.portlet.journal.NoSuchArticleResourceException;
126:
127: public void removeAll() throws com.liferay.portal.SystemException;
128:
129: public int countByGroupId(long groupId)
130: throws com.liferay.portal.SystemException;
131:
132: public int countByG_A(long groupId, java.lang.String articleId)
133: throws com.liferay.portal.SystemException;
134:
135: public int countAll() throws com.liferay.portal.SystemException;
136: }
|