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.messageboards.service.persistence;
022:
023: /**
024: * <a href="MBMessageFlagPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface MBMessageFlagPersistence {
030: public com.liferay.portlet.messageboards.model.MBMessageFlag create(
031: long messageFlagId);
032:
033: public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
034: long messageFlagId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
037:
038: public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
039: com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.messageboards.model.MBMessageFlag update(
043: com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.messageboards.model.MBMessageFlag update(
047: com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
051: com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
055: long messageFlagId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
058:
059: public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
060: long messageFlagId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUserId(long userId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUserId(long userId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByUserId(long userId, int begin, int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
074: long userId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
078:
079: public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
080: long userId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
084:
085: public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
086: long messageFlagId, long userId,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
090:
091: public java.util.List findByMessageId(long messageId)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByMessageId(long messageId, int begin,
095: int end) throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByMessageId(long messageId, int begin,
098: int end,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException;
101:
102: public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
103: long messageId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
107:
108: public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
109: long messageId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
113:
114: public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
115: long messageFlagId, long messageId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
119:
120: public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(
121: long userId, long messageId)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
124:
125: public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(
126: long userId, long messageId)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findWithDynamicQuery(
130: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findWithDynamicQuery(
134: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
135: int begin, int end)
136: throws com.liferay.portal.SystemException;
137:
138: public java.util.List findAll()
139: throws com.liferay.portal.SystemException;
140:
141: public java.util.List findAll(int begin, int end)
142: throws com.liferay.portal.SystemException;
143:
144: public java.util.List findAll(int begin, int end,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException;
147:
148: public void removeByUserId(long userId)
149: throws com.liferay.portal.SystemException;
150:
151: public void removeByMessageId(long messageId)
152: throws com.liferay.portal.SystemException;
153:
154: public void removeByU_M(long userId, long messageId)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.messageboards.NoSuchMessageFlagException;
157:
158: public void removeAll() throws com.liferay.portal.SystemException;
159:
160: public int countByUserId(long userId)
161: throws com.liferay.portal.SystemException;
162:
163: public int countByMessageId(long messageId)
164: throws com.liferay.portal.SystemException;
165:
166: public int countByU_M(long userId, long messageId)
167: throws com.liferay.portal.SystemException;
168:
169: public int countAll() throws com.liferay.portal.SystemException;
170: }
|